Codex Security Cloud MCP
The Codex Security Cloud MCP server allows AI agents to interact with Codex Security Cloud to inspect, manage, and remediate security findings across your repositories.
List Security Metadata: Retrieve accessible repositories and author filters within your Codex Security Cloud account.
List Findings: Browse open or closed security findings with filtering by repository, severity/criticality, author, patch availability, sort order, and pagination via cursor.
Get Finding Details: Fetch detailed information about a specific finding, optionally including the full description, generated patch diff, or deeper evidence (source content, validation reports, attack-path evidence).
Close a Finding: Mark a finding as resolved with a status of
fixed,wontfix,duplicate, orfalse_positive, along with a reason.Reopen a Finding: Reopen a previously closed finding, resetting its status to
new.Request a Site-Side PR: Trigger Codex Security Cloud to generate a patch and open a pull request on the remote repository, then poll for the resulting PR URL and state.
Apply a Generated Patch Locally: Apply a generated security patch to a local git repository, automatically commit it, and optionally close the finding as fixed — with safety checks for staged/dirty files and a dry-run before applying.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Codex Security Cloud MCP list open findings for repo my-app"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Codex Security Cloud MCP
MCP server for the Codex Security Cloud service exposed by ChatGPT/Codex Cloud.
The server assumes the user already has Codex installed and authenticated. It reads the existing Codex auth file and does not implement a separate login flow. By default it reads ~/.codex/auth.json; set CODEX_AUTH_JSON_PATH only if your Codex auth file lives somewhere else. It never asks users to paste tokens.
Install
Prerequisites:
Node.js 20 or newer
Codex installed and authenticated with
codex loginAccess to Codex Security Cloud for the repositories you want to inspect
Install for Codex:
codex mcp add codex-security-cloud -- npx -y codex-security-cloud-mcp@latestManual Codex configuration:
[mcp_servers.codex-security-cloud]
command = "npx"
args = ["-y", "codex-security-cloud-mcp@latest"]
enabled = trueFor other MCP clients, configure a stdio server command:
npx -y codex-security-cloud-mcp@latestQuick smoke test after installing:
Use the Codex Security Cloud MCP to list one open finding for my repositories.Related MCP server: sq-cli-gpt-mcp
Safety
This MCP can read Codex Security Cloud findings, close/reopen findings, request site-side PRs, and apply generated patches to local git repositories. apply_generated_patch refuses staged changes, refuses touched files with local changes, runs git apply --check first, and creates a local commit for rollback if the patch applies.
Tools
list_security_metadata: lists accessible repos and author filters.list_findings: lists open or closed findings with repo, severity, patch, author, sort, cursor, and limit filters.get_finding: fetches normalized finding detail, including generated patch metadata when present.close_finding: closes a finding asfixed,wontfix,duplicate, orfalse_positive.reopen_finding: reopens a closed finding asnew.request_site_pr: asks the cloud service to start its site-side patch/PR workflow, then briefly polls the finding for PR URL/state metadata.apply_generated_patch: applies an already-generated patch locally, commits it, and optionally closes the finding as fixed.
Use the findingId returned by list_findings for get_finding, close/reopen, PR, and patch tools. The MCP intentionally omits backend-only ids and raw payloads from normal responses.
list_findings is intentionally compact so an agent can choose what to inspect without loading every finding body. get_finding is also compact by default: it includes a derived summary, compact relevant-line locations, generated patch metadata, and site PR metadata. The summary is extracted from an explicit Summary/Overview section when present, otherwise from the first paragraph with a bounded length. Use includeDescription: true when an agent needs the exact full description from the endpoint. Use includePatchDiff: true only when an agent needs to inspect or manually repair the generated patch. Use includeEvidence: true only when an agent needs relevant-line source content, validation/fix reports, or attack-path evidence. apply_generated_patch fetches the generated diff internally, so applying a clean generated patch does not require loading the diff into model context.
apply_generated_patch fails before applying if the generated patch is missing, the repository has staged changes, the patch touches dirty files, or git apply --check fails. On failure it returns the phase, a compact finding reference, current HEAD, expected base commit, touched files, git stderr, and the suggested commit message so an agent can take over manually.
If autoClose is true, the close happens only after a successful local commit. The close reason uses neutral wording:
An agent applied and committed the generated patch on <date time>.
Commit: <sha>Development
npm install
npm run build
node ./dist/server.jsAvailable Tools
7 toolsapply_generated_patchApply Generated PatchA
Apply an already-generated Codex Security Cloud patch to a local git repo, commit it, and optionally close the finding as fixed.
Inputs: findingId (required), repoPath (required), autoClose.
close_findingClose FindingB
Close a Codex Security Cloud finding as fixed, won't fix, duplicate, or false positive.
Inputs: findingId (required), version (required), status (required), reason (required).
get_findingGet FindingA
Fetch one Codex Security Cloud finding. Compact by default; opt into generated patch diff or deeper evidence only when needed.
Inputs: findingId (required), includePatchDiff, includeEvidence, includeDescription.
list_findingsList FindingsC
List Codex Security Cloud findings in the open or closed section with filters.
Inputs: section, repos, criticality, hasPatch, +4 more.
list_security_metadataList Security MetadataC
List accessible Codex Security Cloud repositories and author filters.
Inputs: forceRefreshRepos, repo.
reopen_findingReopen FindingC
Reopen a closed Codex Security Cloud finding.
Inputs: findingId (required), version (required).
request_site_prRequest Site PRA
Ask Codex Security Cloud to generate its site-side patch/PR workflow for a finding.
Inputs: findingId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct action (listing, fetching, closing, reopening, applying patches, requesting PRs, listing metadata) with no overlapping purposes, making agent selection unambiguous.
All tool names follow a consistent snake_case verb_noun pattern (e.g., list_findings, close_finding), providing predictable and readable naming.
Seven tools is well-scoped for a security findings server, covering essential operations without being too few (each tool has a clear role) or too many (no redundancy).
The tool set covers the full finding lifecycle: list, get, close, reopen, apply patch, and request site-side PR. Missing creation is natural (findings generated by system), and no dead ends exist.
Maintenance
Related MCP Connectors
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceSecurity scanning MCP server that connects Claude to RepoMend findings, enabling vulnerability management and automated fix drafting.MIT- FlicenseNot gradedqualityDmaintenancePrivate MCP server that enables a single GitHub identity to run Codex Security CLI scans on registered repositories, with OAuth authentication and a web-based cockpit UI.-
- AlicenseNot gradedqualityCmaintenanceMCP server that provides coding agents with structured repository context, including graph-based navigation, dependency analysis, runtime flow tracing, and configuration surface across supported stacks.63 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server that lets MCP clients inspect, create, update, and deploy ChatGPT Sites through a local Codex installation.MIT