Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions specification/draft/apps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,18 @@ interface HostCapabilities {
/** Host supports resources/list_changed notifications. */
listChanged?: boolean;
};
/**
* Host supports calling tools declared by the app (oncalltool/onlisttools).
* When present, the host MUST:
* 1. Call tools/list on the app after connect and surface results to the LLM.
* 2. Route LLM tool calls matching app-declared tool names back to the app via tools/call.
* 3. If listChanged is true: re-query tools/list when it receives a
* notifications/tools/list_changed notification from the app.
*/
tools?: {
/** Host will re-query tools/list when it receives notifications/tools/list_changed from the app. */
listChanged?: boolean;
};
/** Host accepts log messages. */
logging?: {};
/** Sandbox configuration applied by the host. */
Expand Down
5 changes: 5 additions & 0 deletions src/spec.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,11 @@ export interface McpUiHostCapabilities {
/** @description Host supports resources/list_changed notifications. */
listChanged?: boolean;
};
/** @description Host supports calling tools declared by the app (oncalltool/onlisttools). When present, the host will call tools/list on the app after connect, surface the results to the LLM, and route matching tool calls back to the app via tools/call. */
tools?: {
/** @description Host supports tools/list_changed notifications from the app and will re-query tools/list when received. */
listChanged?: boolean;
};
/** @description Host accepts log messages. */
logging?: {};
/** @description Sandbox configuration applied by the host. */
Expand Down