feat(cli): expose application commands over MCP - #690
Open
kmbroai wants to merge 2 commits into
Open
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MCP clients can currently run scans but must switch to the CLI for the rest of the security workflow. This adds the remaining application commands to the same MCP server, so agents can inspect saved scans, import and triage findings, validate or patch them, export results, and publish findings.
Stacked on #682. This PR targets
dev/kyleb/mcp-scansand leaves #682 unchanged.Changes
args,options, and optionalworkingDirectory; command group names use underscores. Existingscanandinfoinputs stay unchanged. No CLI commands, flags, environment variables, or defaults change.Testing
12345and3403824858).infocall, and confirmed clean shutdown. The temporary-directory test also passed with a symlinkedTMPDIR.docker build --target packagepassed, including the complete installed-package and MCP smoke checks in the minimal build image.core.hooksPath; its existing shared hook remained untouched.Tests use isolated synthetic fixtures; no billable scans, changes to existing credentials, or external issue publication were performed.
Risk and rollout
#682 must merge first; this PR can then be retargeted to
mainand rebased as needed. Neither PR is merged by this change.The new tools have the same local filesystem and credential access as the CLI. Some commands can make billable model calls, modify files or stored findings, remove stored sign-in, or publish external issues and pull requests; tool annotations and server instructions describe those effects. Cancellation stops work but does not roll back completed side effects. Authentication setup remains outside MCP, and commands that normally offer terminal pickers need explicit inputs.
Public disclosure review