Skip to content

test: police MCP doc contracts for every tool - #1916

Merged
cyberlife-coder merged 1 commit into
developfrom
test/mcp-doc-contract-all-tools-1695
Aug 13, 2026
Merged

test: police MCP doc contracts for every tool#1916
cyberlife-coder merged 1 commit into
developfrom
test/mcp-doc-contract-all-tools-1695

Conversation

@cyberlife-coder

Copy link
Copy Markdown
Owner

Closes #1695

Summary

  • make structural section, source-method and list-item ownership authoritative before the proximity fallback
  • police all 23 tools in the published MCP capture across documentation, skills, Node, Python, WASM and TypeScript facades
  • distinguish nested item shapes, input/config envelopes and deliberate binding divergences with exact stale-checked contracts
  • pin every detected declaration so deletion cannot silently reduce coverage
  • add prose-enumeration coverage and one executable refusal mutation for each of the three rollout batches
  • repair the return-shape drift surfaced in why, compile_context, retrieve_context_source and extraction documentation

Validation

  • python3 -m unittest discover -s scripts/tests -p "test_*.py" -t . -v — 472 passed, 9 skipped (PowerShell unavailable)
  • MCP guard targeted suite — 74 passed
  • refusal and accepted-control vectors — passed
  • python3 scripts/check-mcp-doc-contract.py — 228 surfaces, passed
  • bash scripts/run-production-gates.sh — all 5 gates passed
  • native Node/Python/WASM checks and Clippy with RUSTFLAGS=-D warnings — passed
  • WASM no-default target check with RUSTFLAGS=-D warnings — passed
  • TypeScript typecheck and Vitest — 927 passed
  • cargo fmt --all -- --check, JSON/Python syntax and diff checks — passed

@cyberlife-coder
cyberlife-coder enabled auto-merge (squash) August 13, 2026 19:41
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@cyberlife-coder
cyberlife-coder merged commit 6108b13 into develop Aug 13, 2026
47 checks passed
@cyberlife-coder
cyberlife-coder deleted the test/mcp-doc-contract-all-tools-1695 branch August 13, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check-mcp-doc-contract : etendre le registre aux 19 autres outils

1 participant