stdio transport: a request over the maximum line length gets no answer
維護者通常 3 天內回覆
@gocamille 已經在處理了。
開始於 2026年10月26日。
評估
這個 Issue 還沒有評估資料。
描述
Since #1049 (rmcp 3.6.0) AsyncRwTransport drops a line that is longer than the maximum line length (16 MiB by default). It only writes a log entry. When that line is a request, the peer never gets an answer and waits until its own timeout. From the client side this looks like a server that hangs.
I found this while writing an MCP server that takes large inline files. A tools/call with a large base64 file in the arguments is enough.
To reproduce:
- Start any stdio server built on rmcp 3.7.0.
- Send
initializeandnotifications/initialized. - Send one
tools/callrequest whose line is larger than 16 MiB, for example with a 17 MiB string inarguments. - The server logs "Incoming message exceeded the maximum line length, discarding it". The client gets nothing for this id.
Expected: an error answer for the request id, like the -32600 Invalid Request answer rmcp already sends for valid JSON with the wrong shape.
Lines without an id, responses and input that is not JSON should stay unanswered, so this does not bring back the error storm from #938.
I have a fix ready that builds on #1370. I can open it after that PR is merged.
- 主要語言
- Rust
- 星號
- 4.1k
- 分支
- 680
- 平均合併
- 3 天 20 小時
- 30 天內合併 PR
- 32
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
modelcontextprotocol/rust-sdk 的其他 Issue
-
auth: refresh_token() requests offline_access that was never granted, so refreshes fail with invalid_scope可能已有人在做 @jstar0 於 21 天前認領。 未關閉bug P1 ready for work T-security T-transport
難度 2/5 1-3 小時 新手友好度 65/100
modelcontextprotocol/rust-sdk#1330 ·
維護者通常 3 天內回覆
-
Enterprise-managed auth: ID-JAG `resource` claim should be optional可能已有人在做 @gocamille 於 1 天前認領。 未關閉bug P1 ready for work T-security T-transport
modelcontextprotocol/rust-sdk#1404 · 2 則留言 · 已指派 1 人 ·
維護者通常 3 天內回覆
-
Auto discovery timeout rejects a late probe response during legacy initialization可能已有人在做 @gocamille 於 2 天前認領。 未關閉bug P1 ready for work T-service
modelcontextprotocol/rust-sdk#1400 · 1 則留言 · 已指派 1 人 ·
維護者通常 3 天內回覆
-
URL mode elicitation requires elicitationId, which the 2026-07-28 schema removed可能已有人在做 @gocamille 於 2 天前認領。 未關閉bug P1 ready for work T-model
modelcontextprotocol/rust-sdk#1399 · 1 則留言 · 已指派 1 人 ·
維護者通常 3 天內回覆
-
docs: ClientHandler list_changed callbacks don't mention Peer::listen (2026-07-28)可能已有人在做 @DaleSeo 於 6 天前認領。 未關閉enhancement P2 ready for work T-documentation
modelcontextprotocol/rust-sdk#1394 · 1 則留言 · 已指派 1 人 ·
維護者通常 3 天內回覆
查看 modelcontextprotocol/rust-sdk 的全部 Issue
相似的 Issue
-
good first issue help wanted r-docs
難度 2/5 1-3 小時 新手友好度 72/100
servo/rust-smallvec#824 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆
-
priority middle
難度 1/5 1 小時以內 新手友好度 62/100
KATO-Hiro/AtCoderClans#12940 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆
-
o8 next debug build aborts on Glass to Dark appearance switch (nil identifier messaged before check)未關閉bug
難度 2/5 1-3 小時 新手友好度 78/100
hurttlocker/o8#5112 ·