Skip to content

Commit c475dc3

Browse files
authored
Merge pull request #216 from modelcontextprotocol/antonp/toolinfo-id-optional
fix: make toolInfo.id optional per spec
2 parents 2411c71 + 4012136 commit c475dc3

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/generated/schema.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/schema.ts

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/spec.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export interface McpUiHostContext {
313313
/** @description Metadata of the tool call that instantiated this App. */
314314
toolInfo?: {
315315
/** @description JSON-RPC id of the tools/call request. */
316-
id: RequestId;
316+
id?: RequestId;
317317
/** @description Tool definition including name, inputSchema, etc. */
318318
tool: Tool;
319319
};

0 commit comments

Comments
 (0)