stdio transport: a request over the maximum line length gets no answer
Maintainer thường phản hồi trong vòng 3 ngày
@gocamille đang làm issue này rồi.
Từ ngày 26/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 4.1k
- Fork
- 680
- Merge trung bình
- 3 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 34
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/rust-sdk
-
auth: refresh_token() requests offline_access that was never granted, so refreshes fail with invalid_scopeCó thể đã có người làm @jstar0 đã nhận 21 ngày trước. Đang mởbug P1 ready for work T-security T-transport
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
modelcontextprotocol/rust-sdk#1330 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Return merged cache hints from list_all_* client methodsCó thể đã có người làm @gocamille đã nhận hôm nay. Đang mởenhancement P2 ready for work T-service
modelcontextprotocol/rust-sdk#1411 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
auth: refresh_token() always sends `scope`, so refresh fails against Salesforce ("scope parameter not supported")Có thể đã có người làm @gocamille đã nhận 1 ngày trước. Đang mởbug P1 ready for work T-security T-transport
modelcontextprotocol/rust-sdk#1408 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Enterprise-managed auth: ID-JAG `resource` claim should be optionalCó thể đã có người làm @gocamille đã nhận 1 ngày trước. Đang mởbug P1 ready for work T-security T-transport
modelcontextprotocol/rust-sdk#1404 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Auto discovery timeout rejects a late probe response during legacy initializationCó thể đã có người làm @gocamille đã nhận 2 ngày trước. Đang mởbug P1 ready for work T-service
modelcontextprotocol/rust-sdk#1400 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của modelcontextprotocol/rust-sdk
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
compiler P4 perf
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
HerringtonDarkholme/hd-lang#1044 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted r-docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
servo/rust-smallvec#824 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
akitaonrails/ai-usagebar#552 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100