diff --git a/src/app.ts b/src/app.ts index 42e30573..4905e1e9 100644 --- a/src/app.ts +++ b/src/app.ts @@ -597,17 +597,11 @@ export class App extends Protocol { params: CallToolRequest["params"], options?: RequestOptions, ): Promise { - const response = await this.request( + return await this.request( { method: "tools/call", params }, CallToolResultSchema, options, ); - // TEMPORAL HACK: Some host implementations incorrectly return the full - // JSON-RPC envelope instead of just the result. Unwrap if needed. - if (response && "result" in response && "jsonrpc" in response) { - return (response as unknown as { result: CallToolResult }).result; - } - return response; } /**