@apiosk/mcp 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,24 @@
1
+ <p align="center">
2
+ <img src="https://apiosk.com/logo.svg" alt="Apiosk" width="120" />
3
+ </p>
4
+
1
5
  # Apiosk MCP Server
2
6
 
7
+ **AI-native payments for tools and APIs.** Discover, pay for, execute, and publish monetized APIs directly from your agent — over USDC/x402 or prepaid credits — through the Model Context Protocol.
8
+
9
+ `payments` · `finance` · `x402` · `commerce` · `crypto`
10
+
11
+ [![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.obcraft%2Fapiosk--mcp-2ea44f)](https://registry.modelcontextprotocol.io)
12
+ [![npm](https://img.shields.io/npm/v/@apiosk/mcp?label=npm%20%40apiosk%2Fmcp)](https://www.npmjs.com/package/@apiosk/mcp)
13
+ [![PyPI](https://img.shields.io/pypi/v/apiosk-mcp?label=PyPI%20apiosk-mcp)](https://pypi.org/project/apiosk-mcp/)
14
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](#license)
15
+
3
16
  Official MCP server for discovering, paying for, and publishing Apiosk APIs.
4
17
 
18
+ - **Listed in the [official MCP Registry](https://registry.modelcontextprotocol.io)** as `io.github.obcraft/apiosk-mcp`.
19
+ - **Hosted endpoint:** `https://mcp.apiosk.com/mcp` (streamable HTTP, OAuth-protected for paid tools).
20
+ - **Local stdio package:** `npx -y @apiosk/mcp` or `uvx apiosk-mcp` for wallet + publish tools.
21
+
5
22
  ## Quick Start
6
23
 
7
24
  ### Package names
@@ -46,7 +63,7 @@ uvx apiosk-mcp
46
63
  ```
47
64
 
48
65
  The PyPI launcher requires Node.js 20+ and `npx` on `PATH`. By default it runs
49
- `npx -y @apiosk/mcp@1.3.0`; set `APIOSK_MCP_NPM_PACKAGE=@apiosk/mcp@next` to
66
+ `npx -y @apiosk/mcp@1.3.1`; set `APIOSK_MCP_NPM_PACKAGE=@apiosk/mcp@next` to
50
67
  override the npm package spec.
51
68
 
52
69
  ### Publishing packages
@@ -61,7 +78,7 @@ npm publish --access public
61
78
  ```bash
62
79
  python3 -m pip install --upgrade build twine
63
80
  python3 -m build
64
- python3 -m twine upload dist/apiosk_mcp-1.3.0*
81
+ python3 -m twine upload dist/apiosk_mcp-1.3.1*
65
82
  ```
66
83
 
67
84
  After both uploads are live, the MCP registry package fields are:
@@ -126,6 +143,40 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
126
143
  }
127
144
  ```
128
145
 
146
+ ### VS Code
147
+
148
+ Add the server with the CLI:
149
+
150
+ ```bash
151
+ code --add-mcp '{"name":"apiosk","command":"npx","args":["-y","@apiosk/mcp"]}'
152
+ ```
153
+
154
+ Or create `.vscode/mcp.json` in your workspace (VS Code uses a `servers` key):
155
+
156
+ ```json
157
+ {
158
+ "servers": {
159
+ "apiosk": {
160
+ "command": "npx",
161
+ "args": ["-y", "@apiosk/mcp"]
162
+ }
163
+ }
164
+ }
165
+ ```
166
+
167
+ To use the hosted endpoint instead of the local package:
168
+
169
+ ```json
170
+ {
171
+ "servers": {
172
+ "apiosk": {
173
+ "type": "http",
174
+ "url": "https://mcp.apiosk.com/mcp"
175
+ }
176
+ }
177
+ }
178
+ ```
179
+
129
180
  ### Cursor
130
181
 
131
182
  ```json
package/dxt.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "apiosk-mcp",
3
- "version": "1.3.0",
4
- "description": "Official MCP server for browsing, paying for, and publishing Apiosk APIs",
3
+ "version": "1.3.1",
4
+ "description": "AI-native payments: discover, pay for, execute, and publish monetized APIs through MCP.",
5
5
  "author": "Apiosk",
6
6
  "license": "MIT",
7
- "repository": "https://github.com/apiosk/apiosk-mcp",
7
+ "homepage": "https://apiosk.com",
8
+ "icon": "https://apiosk.com/logo.svg",
9
+ "keywords": ["payments", "finance", "x402", "commerce", "crypto"],
10
+ "repository": "https://github.com/obcraft/apiosk-mcp",
8
11
  "mcp": {
9
12
  "command": "node",
10
13
  "args": ["index.mjs"]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apiosk/mcp",
3
- "version": "1.3.0",
4
- "description": "Official MCP server for browsing, paying for, and publishing Apiosk APIs",
3
+ "version": "1.3.1",
4
+ "description": "AI-native payments: discover, pay for, execute, and publish monetized APIs through MCP.",
5
5
  "mcpName": "io.github.obcraft/apiosk-mcp",
6
6
  "main": "index.mjs",
7
7
  "exports": {
@@ -28,9 +28,12 @@
28
28
  "apiosk",
29
29
  "api",
30
30
  "model-context-protocol",
31
- "x402",
32
31
  "agent-tools",
33
- "payments"
32
+ "payments",
33
+ "finance",
34
+ "x402",
35
+ "commerce",
36
+ "crypto"
34
37
  ],
35
38
  "author": "Apiosk",
36
39
  "license": "MIT",
@@ -41,10 +44,10 @@
41
44
  "homepage": "https://apiosk.com",
42
45
  "repository": {
43
46
  "type": "git",
44
- "url": "https://github.com/apiosk/mcp.git"
47
+ "url": "https://github.com/obcraft/apiosk-mcp.git"
45
48
  },
46
49
  "bugs": {
47
- "url": "https://github.com/apiosk/mcp/issues"
50
+ "url": "https://github.com/obcraft/apiosk-mcp/issues"
48
51
  },
49
52
  "publishConfig": {
50
53
  "access": "public"
package/server.json CHANGED
@@ -2,8 +2,21 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.obcraft/apiosk-mcp",
4
4
  "title": "Apiosk",
5
- "description": "Discover, pay for, execute, and publish Apiosk APIs through MCP.",
6
- "version": "1.3.0",
5
+ "description": "AI-native payments: discover, pay for, execute, and publish monetized APIs through MCP.",
6
+ "version": "1.3.1",
7
+ "websiteUrl": "https://apiosk.com",
8
+ "icons": [
9
+ {
10
+ "src": "https://apiosk.com/logo.svg",
11
+ "mimeType": "image/svg+xml",
12
+ "sizes": ["any"]
13
+ },
14
+ {
15
+ "src": "https://apiosk.com/apple-touch-icon.png",
16
+ "mimeType": "image/png",
17
+ "sizes": ["180x180"]
18
+ }
19
+ ],
7
20
  "repository": {
8
21
  "url": "https://github.com/obcraft/apiosk-mcp",
9
22
  "source": "github"
@@ -13,5 +26,11 @@
13
26
  "type": "streamable-http",
14
27
  "url": "https://mcp.apiosk.com/mcp"
15
28
  }
16
- ]
29
+ ],
30
+ "_meta": {
31
+ "com.apiosk": {
32
+ "tags": ["payments", "finance", "x402", "commerce", "crypto"],
33
+ "categories": ["payments", "finance"]
34
+ }
35
+ }
17
36
  }
@@ -7,7 +7,7 @@ import { createApioskMcpRuntime } from "./runtime.mjs";
7
7
 
8
8
  export const SERVER_INFO = {
9
9
  name: "apiosk-mcp",
10
- version: "1.3.0",
10
+ version: "1.3.1",
11
11
  };
12
12
 
13
13
  function resolveRuntime(options = {}) {
package/src/runtime.mjs CHANGED
@@ -824,6 +824,18 @@ function buildCatalogEntry(api, toolName) {
824
824
  function buildDynamicTools(catalog, reservedTools) {
825
825
  const tools = [];
826
826
  const toolIndex = new Map();
827
+
828
+ // Per-API "dynamic" tools surface one MCP tool per gateway listing, which
829
+ // DUPLICATES every paid API. Exposing them also lets the provider-portal MCP
830
+ // import create separate /tools/<slug> gateway endpoints that undercut (or
831
+ // give away for free) the real API listings. Agents must instead discover via
832
+ // apiosk_search / apiosk_explore and call any API through apiosk_execute,
833
+ // which settles the real per-call price. So these are OFF by default; set
834
+ // APIOSK_MCP_DYNAMIC_TOOLS=true to opt back in.
835
+ if (process.env.APIOSK_MCP_DYNAMIC_TOOLS !== "true") {
836
+ return { tools, toolIndex };
837
+ }
838
+
827
839
  const usedNames = new Set(reservedTools.map((tool) => tool.name));
828
840
 
829
841
  for (const api of catalog) {