everything: add focused annotation-presence registration tests
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 62/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- nodejs, typescript
- Área
- testing-qa
Línea de trabajo
Empieza con __tests__/registrations.test.ts en el workspace del servidor everything y lee surface.test.ts para ver el snapshot existente de las anotaciones. Añade aserciones que comprueben que cada registro de herramienta estándar, condicional y de tarea establece readOnlyHint, destructiveHint, idempotentHint y openWorldHint como booleanos, sin cambiar los snapshots ni los valores de los hints. Está terminado cuando npm test --workspace @modelcontextprotocol/server-everything -- __tests__/registrations.test.ts pasa y npm run validate sigue en verde.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Which server?
everything (@modelcontextprotocol/server-everything)
Protocol era
Both, or not era-specific. The local verification below covers SDK 1 only; the request should be evaluated against the current v2/main registration paths.
MCP client
Automated Vitest tests. No external or LLM client was used for this test-only change.
The problem
Following the current issue-only contribution policy, I am converting the suggestion in #4529 into a registration-test coverage request, without attaching a patch.
The existing surface.test.ts already snapshots advertised annotations. The smaller gap is that the registration suite does not explicitly check the presence and boolean type of all four hints across every supported standard, capability-dependent, and task registration path. A focused assertion would give a more local failure when a refactor drops metadata at registration.
This is not a report that current tools lack annotations. Annotation presence also does not establish tool safety or prove that a hint accurately describes its behavior.
Solution you have in mind (optional)
Add registration-level regression checks for readOnlyHint, destructiveHint, idempotentHint, and openWorldHint, with the capabilities needed to exercise conditional/task paths enabled. Preserve the existing surface snapshots, capability tests, hint values, and validation gates. No runtime changes or provider-specific integration.
For current SDK 2 development, derive expectations from its modern/legacy registration paths rather than copying the SDK 1 counts below.
Which MCP feature does it demonstrate? (optional)
Existing MCP tool-annotation metadata and its registration paths.
Alternatives or workarounds you have tried
Relying on the existing wire-level snapshots alone remains a reasonable alternative if maintainers consider the additional registration check redundant.
I searched existing issues. #3401 concerns missing annotations in an older version, while #4854 tracks the completed broader coverage effort. This request does not repeat the older zero-annotations claim.
Already built it locally?
Yes, a test-only prototype against main at bbb701e7ac1e57f3edd1c2836b94c5457eaf7b9c (Everything 1.0.0, SDK 1). It preserves the ten existing registration test cases and adds two checks covering the 12 standard, six conditional, and one task registration in that snapshot. No production source changed. Those counts are not asserted for SDK 2.
Verified on 2026-10-15 with Node 22.18.0, npm 10.9.3 and Vitest 4.1.11:
npm test --workspace @modelcontextprotocol/server-everything -- __tests__/registrations.test.ts: 12 passed.npm run validate --workspace @modelcontextprotocol/server-everything: formatting, lint, type checking, build, and 260 tests passed.npm run coverage --workspace @modelcontextprotocol/server-everything: 260 tests passed and per-file coverage thresholds cleared.git diff --check: passed.
These are scoped test/build results, not a claim that the repository-wide submission gate passed. The old PR's original commit predates the current DCO workflow. I have not rewritten that history or pushed the local repair.
Original repair prompt (exact quotation except two redacted local paths)
These historical instructions explain the local reproduction; this issue follows the current contribution policy instead of requesting a PR merge.
You own ONLY the existing clone [LOCAL_SERVERS_CLONE] for repairing https://github.com/modelcontextprotocol/servers/pull/4529 (author jw-ond). User authorized beginning the upstream repair plan. Parent handles promptfoo, CrewAI, Langfuse. Do not edit [UNRELATED_LOCAL_PROJECT] or other clones. No new worktree. First inspect git status/branch/remotes, applicable AGENTS/CONTRIBUTING, and live PR head. If unexpected conflicting user changes exist, stop/report. Fetch current base and fork PR head, preserve all existing commits; prefer a merge from upstream main rather than history rewriting/force. Reproduce the conflict, resolve preserving intended tool-annotation registration regression coverage and current upstream behavior. Use apply_patch for manual edits, run appropriate focused tests/build plus git diff --check. This is restoring compatibility, no feature expansion and no test weakening. You may make a scoped normal commit on the verified PR feature branch; DO NOT PUSH or POST until parent reviews. Return old/new SHAs, exact changed file set, test commands/results, and any blockers. Work directly in that clone and preserve unrelated files. Do not disable hooks/security gates or use --no-verify.
Before you submit
- I searched existing issues and this is not a duplicate.
- This is a request for this repository or one of its servers, not a new server, the MCP specification or an SDK.
- Lenguaje dominante
- JavaScript
- Estrellas
- 91.2k
- Forks
- 11.8k
- Merge medio
- 6 h 20 min
- PR fusionados (30 d)
- 117
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de modelcontextprotocol/servers
-
memory: create_entities, create_relations and add_observations could declare idempotentHint: trueAbiertoenhancement v2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
modelcontextprotocol/servers#5153 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
modelcontextprotocol/servers#5134 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
modelcontextprotocol/servers#5071 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
git: git_create_branch is marked non-destructive but silently resets an existing packed branchAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
modelcontextprotocol/servers#5059 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
mcp-server-fetch: `fetch` prompt returns JSON-RPC error code 0 with the raw exception text for an invalid URLQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
modelcontextprotocol/servers#4914 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de modelcontextprotocol/servers
Issues similares
-
change request evaluating
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sindresorhus/eslint-plugin-unicorn#3907 ·
Los mantenedores suelen responder en 1 día
-
Android bug feature/error-tracking react-native team/error-tracking
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
PostHog/posthog-js#5310 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add Prettier and a format-check CI jobPosiblemente ocupada @ezekielnathaniel070-ai la tomó hoy. Abiertobackend frontend good first issue Stellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
OlaGreat/starbound-realms#98 · 1 comentario ·
-
Add AudiobookshelfAbiertoapp request good first issue help wanted self-hosted app
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Secra-Solutions/Conector#15 ·
-
Complexity: See issue making label epic good first issue Issue Making: Level 1 P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt time sensitive
Dificultad 2/5 Menos de una hora Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día