@fitchmultz/pi-mcp-adapter 7.0.0 → 7.1.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/CHANGELOG.md +22 -0
- package/OAUTH.md +3 -3
- package/README.md +31 -15
- package/dist/app-bridge.bundle.js +13 -13
- package/dist/direct-tools.js +1 -1
- package/dist/index.js +40 -67
- package/dist/mcp-output-guard.js +1 -1
- package/dist/proxy-modes.js +11 -10
- package/dist/server-manager.js +2 -1
- package/dist/tool-loader.d.ts +11 -21
- package/dist/tool-loader.js +85 -48
- package/dist/ui-server.js +1 -1
- package/package.json +12 -12
- package/skills/mcp-scripting/SKILL.md +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fitchmultz/pi-mcp-adapter",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "Fitch's independently maintained MCP adapter for Pi coding agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"build:bridge": "node ./scripts/build-app-bridge.mjs",
|
|
36
36
|
"prepare": "node ./scripts/prepare.mjs",
|
|
37
37
|
"check:compat": "node scripts/compat-host.mjs && npm run build && npm run typecheck && vitest run --exclude __tests__/interactive-visualizer-server.test.ts && npm run test:oauth && node scripts/compat-package-smoke.mjs",
|
|
38
|
-
"typecheck": "tsc --noEmit",
|
|
38
|
+
"typecheck": "node ./scripts/tsc.mjs --noEmit",
|
|
39
39
|
"test": "vitest run && npm run test:oauth",
|
|
40
40
|
"test:watch": "vitest",
|
|
41
41
|
"test:oauth": "PI_MCP_ADAPTER_TEST_AUTH_STORE=memory node --test --test-concurrency=1 mcp-auth.test.ts mcp-auth-flow.test.ts mcp-callback-server.test.ts mcp-oauth-provider.test.ts",
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"LICENSE"
|
|
77
77
|
],
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@modelcontextprotocol/client": "2.
|
|
80
|
-
"@modelcontextprotocol/core": "2.
|
|
81
|
-
"@modelcontextprotocol/ext-apps": "2.0.
|
|
79
|
+
"@modelcontextprotocol/client": "2.2.0",
|
|
80
|
+
"@modelcontextprotocol/core": "2.2.0",
|
|
81
|
+
"@modelcontextprotocol/ext-apps": "2.0.3",
|
|
82
82
|
"@napi-rs/keyring": "2.1.0",
|
|
83
83
|
"cross-spawn": "7.0.6",
|
|
84
84
|
"minisearch": "7.2.0",
|
|
@@ -108,16 +108,16 @@
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@earendil-works/pi-ai": "0.
|
|
112
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
113
|
-
"@earendil-works/pi-tui": "0.
|
|
114
|
-
"@modelcontextprotocol/server": "2.
|
|
111
|
+
"@earendil-works/pi-ai": "0.99.2",
|
|
112
|
+
"@earendil-works/pi-coding-agent": "0.99.2",
|
|
113
|
+
"@earendil-works/pi-tui": "0.99.2",
|
|
114
|
+
"@modelcontextprotocol/server": "2.2.0",
|
|
115
115
|
"@types/cross-spawn": "6.0.6",
|
|
116
116
|
"@types/node": "24.19.0",
|
|
117
117
|
"esbuild": "0.28.2",
|
|
118
|
-
"typebox": "1.3.
|
|
118
|
+
"typebox": "1.3.27",
|
|
119
119
|
"typescript": "7.0.2",
|
|
120
|
-
"vitest": "5.0.
|
|
120
|
+
"vitest": "5.0.3"
|
|
121
121
|
},
|
|
122
|
-
"packageManager": "npm@12.
|
|
122
|
+
"packageManager": "npm@12.2.0"
|
|
123
123
|
}
|
|
@@ -7,6 +7,8 @@ description: Write mcp_script JavaScript for discovering, inspecting, and callin
|
|
|
7
7
|
|
|
8
8
|
Use `mcp_script` for MCP calls with loops, filtering, chaining, fan-out, or other logic between calls. Pass ordinary JavaScript as its `code` argument. For a single call, use an already loaded typed tool. Use `mcp_search({ query, server?, limit?, offset? })` to discover and load typed tools for the next request, or explicit `mcp` actions for gateway-only workflows. Discovery never executes a search hit.
|
|
9
9
|
|
|
10
|
+
If `mcp_script` is inactive, first call `mcp_search({ enable: ["script"] })`. For gateway actions, load `mcp` with `mcp_search({ enable: ["gateway"] })`. Enable both in one call when needed. Enabling does not connect to a server or run an integration action; selections stay active for the session/branch. Hosts permitting only one gateway without the loader keep that tool eager.
|
|
11
|
+
|
|
10
12
|
## Discover, inspect, then call
|
|
11
13
|
|
|
12
14
|
```js
|