Test: enforce local MCP tool annotations and bounded responses

Abierto
#165 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
node.js, typescript
Área
cli, testing

Línea de trabajo

Start by reading the MCP tool registry and response helpers in-tree, then inspect the existing MCP tests to see how registered tools and local-mode behavior are exercised. Add table-driven contract coverage for tool annotations, bounded responses, and network-free --local paths, documenting intentional exceptions. Done means exclusions are explained, oversized output demonstrates honest truncation, stateful tools are not mislabeled read-only, and existing MCP tests pass.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement help wanted

Context

vg serve exposes many tools to agents. Response compaction and token ceilings exist, but a registry-level contract test would stop a new tool from becoming unbounded or mis-advertising side effects (readOnlyHint, network/open-world hints).

What to do

Add a table-driven test over registered tools that verifies, as applicable to the shipped server:

  • graph/read tools advertise honest read-only hints
  • tools do not falsely claim “no side effects” if they write local short-lived state
  • large list/object responses are bounded and report truncation/total (or equivalent)
  • --local paths do not invoke model downloads or hosted-doc fall-through in the test harness

Document intentional exceptions (e.g. compression/memory tools) in the test comments.

Acceptance

  • Covers registered tools or clearly explains exclusions
  • Oversized response demonstrates honest truncation
  • Stateful tools are not incorrectly labeled read-only
  • No real network access in the test
  • Existing MCP tests stay green; DCO sign-off

Mentoring notes

Start from MCP tool registry / response helpers in-tree. Contract tests only — not a tool redesign.

Lenguaje dominante
TypeScript
Estrellas
4
Forks
3
Merge medio
1 d 22 h
PR fusionados (30 d)
76

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de vibgrate/cli

Todos los issues de vibgrate/cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.