Skip to content

docs(secure): use the security tools Hosted MCP really has - #138

Draft
nehal-a2z wants to merge 2 commits into
autobox/mcp-envoy/docs-secure-export-toolfrom
autobox/mcp-envoy/secure-tool-names
Draft

nehal-a2z wants to merge 2 commits into
autobox/mcp-envoy/docs-secure-export-toolfrom
autobox/mcp-envoy/secure-tool-names

Conversation

@nehal-a2z

Copy link
Copy Markdown
Collaborator

Stacked on #135 (base autobox/mcp-envoy/docs-secure-export-tool).

What changed

The coderabbit-secure skill told agents to call 21 MCP tools that Hosted CodeRabbit MCP does not have. Hosted MCP exposes five Security tools. This points the skill at those five, uses their real input fields, and says plainly when a step is done in the CodeRabbit dashboard instead.

  • SKILL.md (triage steps 1 and 4 only; lines 24-27 untouched for docs(secure): document Codex security scope sign-in #134): scan status comes from list_security_scans with scan_id; finding details come from the list_security_findings item. Also drops "use its ID on every findings page", because list_security_findings has no scan_id filter.
  • references/capabilities.md, references/findings.md, references/scans.md: rewritten against the contract.
  • Also fixed: start_security_scans returns scan_id, not codeScanId.

Old name → real tool

Old name Now
get_security_scan list_security_scans with scan_id
get_security_finding list_security_findings item (re-read: page with search, match id)
set_security_finding_severity update_security_finding severity
dismiss_security_finding update_security_finding state: "dismissed" + dismiss_reason
reopen_security_finding update_security_finding state: "open" (dismissed only)
resolve_security_finding update_security_finding state: "fixed" + fixed_context (manual resolution, not verified)
get_security_scan_quote dashboard
get_security_scan_schedule / save_security_scan_schedule / delete_security_scan_schedule dashboard
recover_security_scan dashboard (a new start_security_scans call is a new run)
recheck_security_finding dashboard
fix_security_finding dashboard (chat reads fix_status, fix_task_id, fix_pr_url)
preview_security_finding_ticket dashboard, or a draft composed in chat from the finding
get_security_runtime_validation_capability / list_security_runtime_validations / get_security_runtime_validation dashboard
create_security_finding_learning / list_security_learnings / update_security_learning / delete_security_learning dashboard
(new) attack-surface coverage get_security_posture

Evidence (mono origin/main e6ec4602fa2)

  • Registered hosted Security tools: packages/mcp/src/hosted-types.ts:89-98 (list_security_findings, list_security_scans, get_security_posture, update_security_finding, start_security_scans).
  • update_security_finding: packages/contracts/src/platform-security.ts:42-66 (severity, state, dismiss_reason, fixed_context rules), route at :435.
  • list_security_findings: input :245-279 (no scan_id, no finding-ID filter), route at :452.
  • list_security_scans: input with scan_id and output fields at :473-512.
  • start_security_scans: input :101-122, route and scan_id output at :525-547.
  • get_security_posture: coderabbitHandler/src/services/mcp/security-reads.ts:379-403 (input repository_id; output coverage fields).
  • Every one of the 21 old names: git grep -nw <name> -- packages/mcp/src packages/contracts/src returns 0 matches.

Check, before and after

$ grep -rnowFf fake-names.txt skills/coderabbit-secure | wc -l
before: 47
after:  0
$ git diff --check            # clean
$ python3 .github/scripts/sync_skill_references.py --check
Shared skill references are current
$ python3 -m unittest discover -s .github/tests
Ran 119 tests ... OK

No version bump, by decision. validate versions and artifacts is expected to fail for that reason, as on #134 and #135.

Follow-ups (not edited here)

These still name the nonexistent tools:

  • evals/execution/cases.py, evals/execution/run.py, .github/tests/test_execution_evals.py
  • evals/secure-triage/mocks/coderabbit/_tools.json, evals/secure-fix-in-progress/mocks/coderabbit/_tools.json, evals/secure-paid-scan/mocks/coderabbit/_tools.json
  • skills/coderabbit-secure/SKILL.md outside the lines in scope: the frontmatter description (line 3) claims schedules and Security learnings through hosted MCP. Lines 58 and 67-70 still send readers to findings.md/scans.md for runtime evidence, ticket previews, fixes, learnings, quotes, recovery and schedules. Those sections now say these are done in the dashboard.

🤖 Generated with Claude Code

Point coderabbit-secure at the five Security tools Hosted CodeRabbit MCP
exposes (list_security_scans, start_security_scans, list_security_findings,
update_security_finding, get_security_posture) and describe their real
input fields. Replace 21 nonexistent tool names with the real tool that
covers them or a plain statement that the step is done in the dashboard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Hosted start_security_scans uses creditOnlySecurityStartInputSchema, which
omits paid_usage_confirmation and allow_cap_overage. Drop those fields from
the scan guidance, say insufficient credits return blocked with
blocked_reason, and send paid runs to the dashboard. Regenerate the
skills/index.json content hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant