Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

stdio transport: a request over the maximum line length gets no answer

Đang mở
#1,395 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

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ả

bug P1 ready for work T-transport

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:

  1. Start any stdio server built on rmcp 3.7.0.
  2. Send initialize and notifications/initialized.
  3. Send one tools/call request whose line is larger than 16 MiB, for example with a 17 MiB string in arguments.
  4. 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

Mở trong Codespaces

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.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelcontextprotocol/rust-sdk

Tất cả issue của modelcontextprotocol/rust-sdk

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.