modelcontextprotocol / modelcontextprotocol/servers

Claude Code Sonnet 4.5 randomly crash with sequentialthinking (MCP)

Open
#2,792 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug server-sequentialthinking
Dominant language
TypeScript
Stars
90.5k
Forks
11.7k
Avg merge
2d 2h
Merged PRs (30d)
5

Description

Describe the bug
When an Agent tries to use MCP, it crashes randomly sometimes.

To Reproduce
Steps to reproduce the behavior:

  1. Claude Code Sonnet 4.5
  2. Trigger sequentialthinking (MCP)

Expected behavior
It should be working the same as sonnet 4

Logs

sequential-thinking - sequentialthinking (MCP)(thought: XXX)

  Error: {
       "error": "Invalid thoughtNumber: must be a number",
       "status": "failed"
     }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the sequentialthinking MCP tool and trace the validation that produces “Invalid thoughtNumber: must be a number.” Reproduce the failure with Claude Code Sonnet 4.5 and compare it with Sonnet 4, then verify that valid sequential-thinking requests no longer crash or reject the thought number.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.