Skip to content

Bricked session after a failed MCP call. #312

@HarlanGIT

Description

@HarlanGIT

Describe the bug

I got the same problem as this issue: #102 (comment)

It happend after a call to a MCP command failed, it says tool not found despite the MCP still running.

 │ > Random request , with succesful calls than a failed one.

 ✓ Get Strings by Similarity  {"startIndex":0,"requestedCount":20,"actualCount":20,"totalProcessed":20,"nex...

 ✗ Execution failed: Tool not found: Ghidra-get-symbols-by-similarity

 │ > Random request right after the execution failed                                                                                                                                            
 
 ✗ Model call failed: {"message":"messages.6: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01QUTxKsiPsfYjKD9eA91PP4. Each `tool_use` block must have a corresponding `tool_result` block in the next message.","code":"invalid_request_body"} (Request ID: D960:126657:B0F51A:C71455:68EF7EEA)

Tried to exit and resume but every request gets the "Model call failed" error message.

Should I provide the session logs file here ? ( 36 000 lines )

Affected version

0.0.340

Steps to reproduce the behavior

Not sure how to reproduce because the call failed after multiple successful ones.

Expected behavior

No response

Additional context

  • Operating System: Windows 11 24H2
  • Powershell 7
  • Node v22.12.0
  • MCP running on http
  • Model: Claude Sonnet 4.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions