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
The schema-arg forms of request()/setRequestHandler()/setNotificationHandler()
are a parallel supported style, not superseded: request(req, schema) is the only
typed form for non-spec method results, and the schema-first handler form gives
full-envelope validation. Replaces the @deprecated tags with plain JSDoc guidance
so the PR's own custom-method examples no longer render with strikethrough.
Also inlines _registerCompatRequestHandler (single callsite) and fixes the stale
'schema parameter removed' note in migration.md.
Copy file name to clipboardExpand all lines: docs/migration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -903,7 +903,7 @@ import { CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/server/valida
903
903
904
904
The following APIs are unchanged between v1 and v2 (only the import paths changed):
905
905
906
-
-`Client` constructor and most client methods (`connect`, `listTools`, `listPrompts`, `listResources`, `readResource`, etc.) — note: `callTool()`signature changed (schema parameter removed)
906
+
-`Client` constructor and most client methods (`connect`, `listTools`, `listPrompts`, `listResources`, `readResource`, etc.) — note: `callTool()` schema parameter is now optional
/** @deprecatedFor spec methods, pass the methodstring instead. */
346
+
/** For spec methodsthe method-string form is more concise; this overload is the supported call form for non-spec methods or when you want full-envelope validation. */
/** @deprecatedThe result schema is resolved internally; use `callTool(params)`. The second argument is accepted for v1 source compatibility and ignored. */
894
+
/** The `resultSchema` argument is accepted for v1 source compatibility and ignored; output validation uses the tool's declared `outputSchema`. Prefer `callTool(params, options)`. */
/** @deprecatedFor spec methods, pass the methodstring instead. */
1046
+
/** For spec methodsthe method-string form is more concise; this overload is the supported call form for non-spec methods or when you want full-envelope validation. */
/** @deprecatedFor spec methods, pass the methodstring instead. */
1104
+
/** For spec methodsthe method-string form is more concise; this overload is the supported call form for non-spec methods or when you want full-envelope validation. */
/** @deprecatedFor spec methods, pass the methodstring instead. */
234
+
/** For spec methodsthe method-string form is more concise; this overload is the supported call form for non-spec methods or when you want full-envelope validation. */
0 commit comments