Skip to content

fix(tools): do not include resource in the tools payload#11

Merged
toumorokoshi merged 1 commit intoaep-dev:mainfrom
toumorokoshi:yft/fix-rescursive-schema
May 13, 2025
Merged

fix(tools): do not include resource in the tools payload#11
toumorokoshi merged 1 commit intoaep-dev:mainfrom
toumorokoshi:yft/fix-rescursive-schema

Conversation

@toumorokoshi
Copy link
Copy Markdown
Member

Including the full resources in the tools payload results in an extremely large resource size, which causes the mcp server response to time out (e.g. with this example from claude-desktop):

2025-05-12T05:04:56.699Z [bookstore] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":1,"reason":"Error: MCP error -32001: Request timed out"}}

The fix is to remove the resource from the payload, and map the tool to the request another way.

Including the full resources in the tools payload results in an 
extremely large resource size, which causes the mcp server
response to time out (e.g. with this example from claude-desktop):

```
2025-05-12T05:04:56.699Z [bookstore] [info] Message from client: {"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":1,"reason":"Error: MCP error -32001: Request timed out"}}
```

The fix is to remove the resource from the payload, and map the tool
to the request another way.
@toumorokoshi toumorokoshi merged commit 4dc98a6 into aep-dev:main May 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants