Test: enforce local MCP tool annotations and bounded responses

オープン
#165 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
node.js, typescript
領域
cli, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
4
フォーク
3
平均マージ
1日 22時間
マージ済み PR(30日)
76

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vibgrate/cli のほかの issue

vibgrate/cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。