Skip to main content
Response helpers are deprecated. Prefer returning the official MCP envelopes directly — { content: […] } for tools, { contents: […] } for resources, { messages: […] } for prompts. Helpers remain for upgrade compatibility and map to those same shapes.
Helpers build a tool-shaped CallToolResult. Resource and prompt callbacks may still return them; the server converts to ReadResourceResult / GetPromptResult. Use the Response helpers API reference for signatures.

Prefer raw returns

Migration map

Deprecated helpers (compat)

API details

Response helpers API reference

Look up every helper signature, parameter, return type, and structured-content behavior.