Allow injecting a notifier factory for notification filtering and checks
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
- #1210 de @tarun-agarwal1044 — fechado sem integrar
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- java
- Domínio
- backend-api-design
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Java
- Estrelas
- 3.8k
- Forks
- 1.1k
- Merge médio
- 1d 3h
- PRs com merge (30d)
- 38
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de modelcontextprotocol/java-sdk
-
Modern `HttpServletMcpTransport` does not check `Mcp-Name` when `params.name` or `params.uri` is not a JSON stringTalvez já em andamento @starryeye assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
modelcontextprotocol/java-sdk#1352 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Unknown tool error always says "Unknown tool: invalid_tool_name" instead of the name that was calledAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
modelcontextprotocol/java-sdk#1346 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
modelcontextprotocol/java-sdk#1345 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Tool result _meta is lost when the server automatically adds text content for structured outputAbertaarea/server legacy P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
modelcontextprotocol/java-sdk#1330 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Client request handlers that complete empty send no JSON-RPC responseTalvez já em andamento @1fanwang assumiu há 83 dias. Abertaarea/client bug P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
modelcontextprotocol/java-sdk#1124 · 6 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de modelcontextprotocol/java-sdk
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
-
crash
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
-
account bug course exam iris lecture
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia