You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(app): align registerTool runtime with declared types
- Handler reads registeredTool.{input,output}Schema so update() takes effect
- Call cb(extra) when no inputSchema, matching AppToolCallback<undefined>
- Throw on duplicate name; guard list_changed pre-connect; notify on register
- Drop misleading zod optional peer (still required by generated/schema.ts)
- examples: fix pdf search/find stale match count; threejs set-scene-source re-render
- spec: Zod → Standard Schema; clarify tools availability via tools/list after init
@@ -2292,7 +2292,7 @@ This specification defines the Minimum Viable Product (MVP) for MCP Apps.
2292
2292
- **App-Provided Tools:** Apps can register tools via `app.registerTool()` that agents can call
2293
2293
- Bidirectional tool flow (Apps consume server tools AND provide app tools)
2294
2294
- Full lifecycle management (enable/disable/update/remove)
2295
-
- Schema validation with Zod
2295
+
- Schema validation via [Standard Schema](https://standardschema.dev/) (Zod, ArkType, Valibot, …)
2296
2296
- Tool list change notifications
2297
2297
2298
2298
**Content Types (deferred from MVP):**
@@ -2602,7 +2602,7 @@ Hosts MAY implement different permission levels based on tool annotations:
2602
2602
2603
2603
App tools MUST be tied to the app's lifecycle:
2604
2604
2605
-
- Tools become available only after app sends`notifications/tools/list_changed`
2605
+
- Tools become available once the app advertises the `tools` capability in`ui/initialize` and the host issues `tools/list`; subsequent changes are signaled via`notifications/tools/list_changed`
2606
2606
- Tools automatically disappear when app iframe is torn down
2607
2607
- Hosts MUSTNOT persist app tool registrations across sessions
2608
2608
- Calling a tool from a closed app MUSTreturn an error
0 commit comments