From 5ae292106cb82e9ce6df846a149d9ecb89849a75 Mon Sep 17 00:00:00 2001 From: Anton Pidkuiko <105124934+antonpk1@users.noreply.github.com> Date: Mon, 8 Dec 2025 15:32:15 +0000 Subject: [PATCH] Remove temporary JSON-RPC envelope unwrapping hack (#90) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The host implementation has been fixed to return the correct result format, so this workaround is no longer needed. Reverts the hack added in #82. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude --- src/app.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/app.ts b/src/app.ts index 7719667..c0be541 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; } /**