Allow injecting a notifier factory for notification filtering and checks
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
- #1210 來自 @tarun-agarwal1044 —— 已關閉,未合併
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- java
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Java
- 星號
- 3.8k
- 分支
- 1.1k
- 平均合併
- 1 天 3 小時
- 30 天內合併 PR
- 38
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
modelcontextprotocol/java-sdk 的其他 Issue
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON string可能已有人在做 @starryeye 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
modelcontextprotocol/java-sdk#1352 · 1 則留言 ·
維護者通常 1 天內回覆
-
Unknown tool error always says "Unknown tool: invalid_tool_name" instead of the name that was called未關閉
難度 1/5 1 小時以內 新手友好度 85/100
modelcontextprotocol/java-sdk#1346 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 64/100
modelcontextprotocol/java-sdk#1345 · 1 則留言 ·
維護者通常 1 天內回覆
-
area/server legacy P3
難度 2/5 1-3 小時 新手友好度 72/100
modelcontextprotocol/java-sdk#1330 · 1 則留言 ·
維護者通常 1 天內回覆
-
Client request handlers that complete empty send no JSON-RPC response可能已有人在做 @1fanwang 於 83 天前認領。 未關閉area/client bug P2
難度 2/5 1-3 小時 新手友好度 84/100
modelcontextprotocol/java-sdk#1124 · 6 則留言 ·
維護者通常 1 天內回覆
查看 modelcontextprotocol/java-sdk 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 65/100
-
crash
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 74/100
-
account bug course exam iris lecture
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆