Test: enforce local MCP tool annotations and bounded responses

Đang mở
#165 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js, typescript
Lĩnh vực
cli, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
4
Fork
3
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
76

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vibgrate/cli

Tất cả issue của vibgrate/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.