[BUG] Claude Code is not able to provide required argument for MCP command

Resolved 💬 3 comments Opened Jul 30, 2025 by lebe-dev Closed Aug 15, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.63
  • Operating System: MacOS 15.5
  • Terminal: Alacritty

Bug Description

Claude Code is unable to use MCP method for some reason:

Error: MCP error -32602: invalid parameters: missing field current_path

Method:

async fn update_task(
        &self,
        current_path: String, // << HERE IS
        branch: String,
        task_id: u32,
        title: Option<String>,
        description: Option<String>,
        status: Option<String>,
        priority: Option<String>,
        dependencies: Option<Vec<u32>>,
        details: Option<String>,
        test_strategy: Option<String>,
        tags: Option<Vec<String>>,
    ) -> Json<Result<SuccessResponse, ErrorResponse>>

And for some reason wasn't able to provide current_path argument :(

But another method works just fine:

async fn show_task(
        &self,
        current_path: String, // << THE SAME ARGUMENT
        branch: String,
        task_id: u32,
    ) -> Json<Result<TaskResponse, ErrorResponse>> {

Steps to Reproduce

Described above.

Expected Behavior

CC is able to provide all required arguments to method/command

Actual Behavior

CC shows an error:

Error: MCP error -32602: invalid parameters: missing field current_path

And stuck in infinite loop.

Additional context

MCP type: stdio

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗