Skip to content

docs: note the mcp SDK stdin-EOF known limitation - #37

Merged
sairam0424 merged 1 commit into
mainfrom
docs/stdin-eof-known-limitation
Sep 14, 2026
Merged

sairam0424 merged 1 commit into
mainfrom
docs/stdin-eof-known-limitation

Conversation

@sairam0424

Copy link
Copy Markdown
Member

Summary

A full-repo audit reproduced a real defect in the underlying mcp SDK - it can drop an in-flight tool-call response if the client closes stdin before the tool finishes. A follow-up deep-research pass confirmed this is already tracked upstream (modelcontextprotocol/python-sdk#2678, open since 2026-05, 5+ unmerged fix attempts, no maintainer sign-off after ~4 months) and that real-world exposure is unquantified (every reproduction used artificial batch/file-redirected stdin, not a well-behaved persistent client like Claude Desktop or Claude Code).

Since the actual fix has to live inside the SDK internals and this project cannot patch a dependency, the recommendation from research was: comment on the existing upstream issue (this PR is paired with that) and document it as a known limitation here, rather than attempting a fragile application-level workaround or taking no action at all.

Test plan

  • Documentation-only change, no code affected.

🤖 Generated with Claude Code

A full-repo audit reproduced a real, already-tracked upstream defect
(modelcontextprotocol/python-sdk#2678, open since 2026-05, 5+ unmerged fix
attempts) - the SDK can drop an in-flight tool-call response if the client
closes stdin before the tool finishes. A follow-up deep-research pass
confirmed real-world exposure is unquantified (every reproduction used
artificial batch/file-redirected stdin, not a well-behaved persistent
client) and that the actual fix has to live inside the SDK, which this
project cannot patch. Documenting as a known limitation rather than
attempting a fragile application-level workaround.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 397d4886-4c26-4521-ba04-59fb4cc038fd


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sairam0424
sairam0424 merged commit a73500e into main Sep 14, 2026
10 checks passed
@sairam0424
sairam0424 deleted the docs/stdin-eof-known-limitation branch September 14, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants