Overview
Returns a function to invoke other MCP tools registered on the server. Useful for multi-step workflows where one app needs to trigger another tool.Wraps callServerTool
MCP Apps SDK reference
Import
Signature
CallServerToolParams
Returns
Function to call an MCP server tool.
CallServerToolResult
Tool response content (human-readable text for the host model).
JSON data from the tool response. Version 2 permits objects, arrays, and primitive JSON values when the tool’s output schema allows them.
sunpeak’s handshake-based HTTP server wrappers preserve compatibility with the
2025-11-25
protocol, which represents a non-object structured result as { result: value } on that wire.Whether the tool call resulted in an error. Only set for actual execution failures — not for expected outcomes like cancellations.