Server logs a fabricated 'initialize' (with synthesized rmcp/3.8.0 peer identity) for no-initialize SEP-2567 requests, ignoring clientInfo from _meta
Les mainteneurs répondent en général sous 3 jours
@jamadeo y travaille déjà.
Depuis le 3/11/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Summary
On rmcp 3.8.0, a streamable-HTTP server emits a Service initialized as server peer_info=Some(InitializeRequestParams { ... }) INFO log line for every no-initialize (SEP-2567, protocol 2026-07-28) request, as though an initialize handshake had occurred. The logged peer identity is a synthesized Implementation { name: "rmcp", version: "3.8.0" }, and a clientInfo explicitly provided in the request's _meta (io.modelcontextprotocol/clientInfo) is ignored — never surfaced in the log.
This makes server-side logs actively misleading for client-behavior analysis: a sessionless 2.0 client appears in logs as a legacy initialize handshake from an rmcp client.
Environment
- rmcp 3.8.0, server role,
transport-streamable-http-server(StreamableHttpService+LocalSessionManager::default(), axumnest_service("/mcp", ...)) - Client: any no-initialize 2.0 caller (curl below; also observed with a real third-party client identifying as
zcode/0.17.1)
Reproduction
- Start any streamable-HTTP server built on rmcp 3.8 (e.g. the counter example) and note its stderr/journal.
- Send a no-initialize request (no
initializeever sent):
curl -sS -X POST http://127.0.0.1:8000/mcp \
-H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2026-07-28' -H 'Mcp-Method: tools/list' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{"_meta":{
"io.modelcontextprotocol/protocolVersion":"2026-07-28",
"io.modelcontextprotocol/clientInfo":{"name":"distinctive-probe-XYZ","version":"9.9.9"},
"io.modelcontextprotocol/clientCapabilities":{}}}}'
- The request succeeds (HTTP 200, tool list returned), and the server logs:
INFO serve_inner: rmcp::service: Service initialized as server peer_info=Some(InitializeRequestParams {
meta: None,
protocol_version: ProtocolVersion("2026-07-28"),
capabilities: ClientCapabilities { ... all None ... },
client_info: Implementation { name: "rmcp", title: None, version: "3.8.0", ... }
})
Two discrepancies vs. what actually happened on the wire:
- No
initializerequest was ever sent; the log fabricates one. - The client identified itself as
distinctive-probe-XYZ/9.9.9in_meta; the log showsrmcp/3.8.0.
Real-world impact
We spent three rounds of diagnosis mis-attributing a third-party client's behavior because its sessionless 2.0 requests were logged as initialize handshakes from "rmcp 3.8.0". This included incorrectly concluding the client used a legacy handshake and had a clientInfo of rmcp/3.8.0 (wire capture later disproved both). Details and retraction: zai-org/feedback#1372.
Suggested direction
- For no-initialize requests, log something that reflects the actual lifecycle (e.g.
stateless request served), notService initialized ... InitializeRequestParams. - Surface
io.modelcontextprotocol/clientInfofrom_metawhen present, so per-request identities are observable; if absent, make the synthesized default obviously synthetic (or omit identity from the log).
Happy to provide full tcpdump captures or a minimal repro project if useful.
- Langage dominant
- Rust
- Étoiles
- 4.1k
- Forks
- 694
- Merge moyen
- 4 j 16 h
- PR mergées (30 j)
- 43
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de modelcontextprotocol/rust-sdk
-
Return MergedList<T> from list_all_* and drop the _with_cache_hint variantsPeut-être pris @DaleSeo l’a pris il y a 3 jours. Ouverteenhancement P3 ready for work T-service v4
modelcontextprotocol/rust-sdk#1430 · 1 personne assignée ·
Les mainteneurs répondent en général sous 3 jours
-
OAuth discovery drops explicit default ports from advertised issuer identifiersPeut-être pris @gocamille l’a pris il y a 6 jours. Ouvertebug P1 ready for work T-security T-transport
modelcontextprotocol/rust-sdk#1420 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 3 jours
-
`register_client` drops `client_secret_expires_at` from the registration responsePeut-être pris @gocamille l’a pris il y a 7 jours. Ouvertebug P2 ready for work T-security
modelcontextprotocol/rust-sdk#1416 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 3 jours
-
Typed client calls drop the parse error when a reply misses a required fieldPeut-être pris @gocamille l’a pris il y a 7 jours. Ouverteenhancement P2 ready for work T-core T-service
modelcontextprotocol/rust-sdk#1415 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 3 jours
-
Return merged cache hints from list_all_* client methodsPeut-être pris @DaleSeo l’a pris il y a 2 jours. Ouverteenhancement P2 ready for work T-service
modelcontextprotocol/rust-sdk#1411 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de modelcontextprotocol/rust-sdk
Issues similaires
-
binding:python bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
coollabsio/orbit#72 ·
Les mainteneurs répondent en général sous 1 jour
-
Synth suite fails unless run from the repo root: signal_flow's default machine path is cwd-relativeOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
Nimblesite/osprey#370 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
bug order-flow studies ui
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
userFRM/egui-charts#2417 ·
Les mainteneurs répondent en général sous 1 jour