HostHandlers
Defined in: packages/mcp-query/src/core/types.ts:57
Handlers for server -> client requests. Registering one advertises the capability.
Properties
Section titled “Properties”elicitation?
Section titled “elicitation?”
optionalelicitation?: (req) =>Promise<{action:"accept"|"decline"|"cancel";content?:unknown; }>
Defined in: packages/mcp-query/src/core/types.ts:61
Server asks the user for structured input mid-call. Maps to a UI dialog.
Parameters
Section titled “Parameters”message
Section titled “message”string
requestedSchema
Section titled “requestedSchema”Record<string, unknown>
Returns
Section titled “Returns”Promise<{ action: "accept" | "decline" | "cancel"; content?: unknown; }>
roots?
Section titled “roots?”
optionalroots?: () =>object[]
Defined in: packages/mcp-query/src/core/types.ts:66
Filesystem/URI boundaries the client exposes to the server.
Returns
Section titled “Returns”object[]
sampling?
Section titled “sampling?”
optionalsampling?: (req) =>Promise<unknown>
Defined in: packages/mcp-query/src/core/types.ts:59
Server asks the host LLM to complete something. Omit in non-agentic apps.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”Promise<unknown>