Feature: Contract verification panel (pin tool contracts, diff on reconnect)
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
- 45/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ệ
- typescript
- Lĩnh vực
- developer-experience, security, testing-qa
Hướng nghiên cứu
Start by tracing the Inspector’s existing tools, resources, prompts, and reconnect flows, then read the linked PIN-SPEC and reference implementation for hashing and comparison behavior. Identify the UI entry point and existing test locations for connection and inspection features. Done means a connected server can pin canonicalized contract hashes, compare them after reconnect, and display added, removed, and changed tools with the proposed direction grading.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature: Contract verification panel (pin tool contracts, diff on reconnect)
Problem
The Inspector shows a server's current tools, resources, and prompts at a point in time. But there is no way to know if the tool contracts changed between sessions. MCP servers can silently add, remove, or modify tool definitions between connections (deploy, version bump, feature flag), and the Inspector has no mechanism to surface this.
We ran a drift watch over 24 popular MCP servers for two months and found 336 silent contract changes, including silent tool removals (Shopify dropped two validators, HubSpot removed a tool with no release notes channel). Full corpus: rugsnare drift-watch.
Proposal
Add a "Contract" tab or panel that:
- Pins the surface on first connect: hash each tool's
{name, description, inputSchema}by canonicalized sha-256 - Compares on reconnect: after a server restart/reconnect, diff the current tools/list against the pinned snapshot
- Surfaces changes: show added / removed / changed tools with direction grading (breaking, loosened, expanded, cosmetic)
This would complement the Inspector's existing inspection capabilities with a temporal dimension: not just "what does this server expose" but "has what it exposes changed since I last looked."
Reference implementation
We ship a standalone CLI that does exactly this (rugsnare, Apache-2.0, zero dependencies). The Inspector could either integrate the hashing/comparison logic directly or shell out to rugsnare as an optional dependency. The pin format is an open spec (PIN-SPEC) with a POLICY class for verifier upgrades and an IDENTITY class for deployment changes.
Use cases
- Developer: connect to a dev server, pin, upgrade the server, reconnect, see what changed before your agent does
- Security reviewer: pin a production server, monitor for contract drift as part of an audit
- CI gate: the same pins can be used in CI to fail builds on breaking contract changes
The OWASP MCP Security Cheat Sheet now recommends pinning tool contracts (PR #2764, merged; cheat sheet), so this aligns with where the ecosystem is heading.
- Ngôn ngữ chính
- TypeScript
- Star
- 11.1k
- Fork
- 1.6k
- Merge trung bình
- 4 giờ 32 phút
- Pull request đã merge (30 ngày)
- 136
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/inspector
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
modelcontextprotocol/inspector#2725 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
modelcontextprotocol/inspector#2723 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
modelcontextprotocol/inspector#2726 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
insufficient_scope challenge retry doesn't detect expired access token, gives up after one identical retryCó thể đã có người làm @its-nott-me đã nhận 3 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
modelcontextprotocol/inspector#2724 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Modern subscriptions: a subscriptions/listen refused with HTTP 403 is retried eight times in silenceĐang mởbug v2
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
modelcontextprotocol/inspector#2722 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của modelcontextprotocol/inspector
Issue tương tự
-
[Android] Nested transforms are composed in reverse orderCó thể đã có người làm @Danyalo đã nhận hôm nay. Đang mởRepro provided
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
software-mansion/react-native-svg#3090 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
radix-ui/primitives#4228 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
rocketride-org/rocketride-server#2705 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
archon-ready archon-size-s archon-type-bug area: web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
coleam00/Archon#4707 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
HarperFast/grafana-datasource#177 ·