Bug Report
When using threads-mcp-server with Claude Agent SDK, getting error:
API Error: 400 {"error":{"code":400,"message":"Duplicate function declaration found: mcp__threads__schedule_post","status":"INVALID_ARGUMENT"}}
Root Cause
In src/index.ts, the schedule_post tool is defined twice:
- Line 466: First definition
- Line 916: Second definition (duplicate)
This causes MCP clients to fail when loading the server.
Expected Behavior
Each tool should be defined only once.
Environment
- threads-mcp-server version: latest (npx -y)
- Claude Agent SDK
Bug Report
When using threads-mcp-server with Claude Agent SDK, getting error:
Root Cause
In
src/index.ts, theschedule_posttool is defined twice:This causes MCP clients to fail when loading the server.
Expected Behavior
Each tool should be defined only once.
Environment