Skip to content

Duplicate function declaration: schedule_post #1

Description

@6Kmfi6HP

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions