MVP-1.12 · MCP contract tools, token expiry, per-call audit + tests #273

Open
opened 2026-09-20 20:17:26 +00:00 by sharang · 0 comments
Owner

Goal

The MCP surface is the contract §6 integration point and the loop breakpilot-compliance consumes. It is incomplete, its tokens do not expire, calls are unaudited and there are no real tests. Closes #191.

What to change

  • Add the contract tools: list_targets, get_scan_results, get_sbom, list_cves, get_control_mapping (an alias of oscal_assessment) and run_scan.
  • Leave create_pentest_run out of the source-only catalog and update the §6 list in Collectives.
  • Token expiry, plus an entitlement and ladder check (MVP-1.2, MVP-1.3) and an audit record (MVP-1.6) on every call.
  • Real tests in compliance-mcp/tests/.

Acceptance

  • All six tools are implemented, listed in the catalog and covered by tests in compliance-mcp/tests/.
  • create_pentest_run is absent from the catalog when PW_FEATURES=source_only; the Collectives §6 list matches.
  • An expired MCP token is refused; expiry is configurable and audited on create/revoke.
  • Every call records an audit event and is subject to entitlement and ladder checks.
  • A cross-tenant MCP token cannot read another tenant's data (MVP-1.13).
  • #191 closed.
## Goal The MCP surface is the contract §6 integration point and the loop breakpilot-compliance consumes. It is incomplete, its tokens do not expire, calls are unaudited and there are no real tests. Closes **#191**. ## What to change - Add the contract tools: `list_targets`, `get_scan_results`, `get_sbom`, `list_cves`, `get_control_mapping` (an alias of `oscal_assessment`) and `run_scan`. - Leave `create_pentest_run` out of the source-only catalog and update the §6 list in Collectives. - Token expiry, plus an entitlement and ladder check (MVP-1.2, MVP-1.3) and an audit record (MVP-1.6) on every call. - Real tests in `compliance-mcp/tests/`. ## Acceptance - [ ] All six tools are implemented, listed in the catalog and covered by tests in `compliance-mcp/tests/`. - [ ] `create_pentest_run` is absent from the catalog when `PW_FEATURES=source_only`; the Collectives §6 list matches. - [ ] An expired MCP token is refused; expiry is configurable and audited on create/revoke. - [ ] Every call records an audit event and is subject to entitlement and ladder checks. - [ ] A cross-tenant MCP token cannot read another tenant's data (MVP-1.13). - [ ] #191 closed.
sharang added this to the Production MVP milestone 2026-09-20 20:17:26 +00:00
sharang added the onboardingenhancement labels 2026-09-20 20:17:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#273