Allow injecting a notifier factory for notification filtering and checks
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
- #1210 di @tarun-agarwal1044 — chiusa senza merge
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- backend-api-design
Direzione di ricerca
Start by locating McpAsyncNotifier and the server request and notification paths that create or use it; the issue does not name files or tests. Trace how request-scoped log levels and notification streams are represented, then assess how an injectable factory can fit while keeping the default permissive. Done means users can supply a factory for filtering notifications, with coverage for the described filtering cases.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Spec: Logging: Per-request log level
The server MUST NOT emit
notifications/messagefor a request that does not include this field. […]notifications/messageis request-scoped: the server MUST NOT deliver it on asubscriptions/listenstream or on any stream other than the one carrying the response to the request that set the log level.
Current behavior
McpAsyncNotifier.notify(method, params) sends any notification without checks. A handler can send notifications/message without a logLevel (or below the requested level), or notification types that don't belong to the request.
Proposal
Let users inject a notifier factory, so the policy is the user's choice and the framework doesn't hard-code one. A factory could:
- drop or reject notifications by method
- gate log messages on
logLeveland the requested threshold - check extension-specific rules
The default stays permissive – the factory is the place to add stricter rules.
- Lingua principale
- Java
- Stelle
- 3.8k
- Fork
- 1.1k
- Merge medio
- 1g 3h
- PR unite (30g)
- 38
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di modelcontextprotocol/java-sdk
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON stringForse già presa @starryeye l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
modelcontextprotocol/java-sdk#1352 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Unknown tool error always says "Unknown tool: invalid_tool_name" instead of the name that was calledAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
modelcontextprotocol/java-sdk#1346 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
modelcontextprotocol/java-sdk#1345 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Tool result _meta is lost when the server automatically adds text content for structured outputApertaarea/server legacy P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
modelcontextprotocol/java-sdk#1330 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Client request handlers that complete empty send no JSON-RPC responseForse già presa @1fanwang l’ha presa 83 giorni fa. Apertaarea/client bug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
modelcontextprotocol/java-sdk#1124 · 6 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di modelcontextprotocol/java-sdk
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
crash
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
account bug course exam iris lecture
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno