Getting started
Install the skill. Review in six phases.
Start with the skill, which needs no build. The optional server comes after, with commands from the current v2 build.
- 01
Install the skill
The skill is a single Markdown file, so it needs no build, Node.js, or MCP configuration. Run only the lines for the agent you use.
git clone https://github.com/brbndon/secure-mcp.git cd secure-mcp # Claude Code mkdir -p ~/.claude/skills ln -s "$PWD/.agents/skills/secure-mcp" ~/.claude/skills/secure-mcp # Other agents that read ~/.agents/skills mkdir -p ~/.agents/skills ln -s "$PWD/.agents/skills/secure-mcp" ~/.agents/skills/secure-mcp - 02
Start an audit
Restart the agent session, open the app you want reviewed, and ask for the skill by name. Use it for security and privacy audits, not routine feature work.
Use the secure-mcp skill to audit this app's local storage and data privacy. - 03
Optional: add the MCP server
For structured tools, run the setup script from the checkout on Linux or macOS. It needs Git, Node.js 20+, pnpm 10, Bash, and Python 3, builds the server, asks for an allowlist of parent directories, and wires pi, Cursor, and Codex. It also removes a Claude Code skill link to this checkout, so re-create that link afterward.
SECURE_MCP_ALLOWED_ROOTS=/abs/path/Code \ ./scripts/setup.sh - 04
Verify and restart
Check the client configuration, allowlist, and server startup, then restart agent sessions so they reload the integration. Skip this step if you did not install the server.
./scripts/install-agents.sh check
The audit workflow
Six phases, one mandate.
The sequence keeps scans bounded and findings confirmed before they reach a person. The skill follows it by hand. With the server, the tools named below handle the bounded steps.
- Phase 1
Inventory
The skill scopes the repository and records stacks, paths, and coverage. With the server, secure_mcp_list_project_structure reports them.
- Phase 2
Architecture and guidance
The agent classifies stacks from evidence. With the server, secure_mcp_analyze_architecture recommends knowledge packs and secure_mcp_get_knowledge_pack loads them on demand.
- Phase 3
Category checks
The skill checks authentication, injection, secrets, and local storage. With the server, the matching review tools return structured candidates.
- Phase 4
Confirmation
The agent opens each candidate's file at the cited line and confirms the data flow before anything is reported.
- Phase 5
Remediation report
The agent writes confirmed findings into a prioritized report. With the server, secure_mcp_produce_findings dedupes, filters, and prioritizes them. With no confirmed findings, the report says what was covered.
- Phase 6
Handoff
Executive summary, fix plan, methodology limits, and a retest checklist. No exploit content.
Coverage honesty
“Not observed” never means “not scanned”.
Every review should say which paths were included, ignored, excluded, or truncated, and why. The server returns this as structured coverage data.
Coverage distinguishes three situations that scanners usually blur together:
- No candidate found: every reviewed file was checked and nothing matched.
- Scan truncated: caps were hit and the remaining scope was not reviewed.
- Candidate pending: heuristics stay candidates until the data flow is confirmed in code.
An empty finding list is never presented as proof that a whole tree was clean. That keeps the report trustworthy and actionable.
Defensive use policy
Hardening only. By design.
secure-mcp is a defensive, remediation-focused review tool. Its mandate is to identify potential weaknesses, classify them, and recommend concrete remediation.
What a review never does
- Generate exploit code or proof-of-concept attack code
- Offer offensive bypass or weaponization guidance
- Use discovered secrets against any system
- Execute target-project code, scripts, or binaries(the skill runs existing checks only if you authorize it)
Use it only on code you own or are explicitly authorized to review.
Common questions
The details that matter.
Why does the server need a filesystem allowlist?
The allowlist keeps an agent prompt from turning the optional MCP server into a general filesystem reader. Set SECURE_MCP_ALLOWED_ROOTSto the narrowest parent directories that contain repositories you intend to review.
How do I confirm a finding in code?
Open the cited file at the cited line, trace the data flow from source to sink, and check runtime configuration. High and critical findings are never reported as confirmed until the evidence is verified this way.
Can I request a stack pack or a tool?
Yes. Stack packs and tool coverage evolve on a roadmap. Open a GitHub feature request with the stack or surface you need and where it fits in the defensive audit workflow.
How do I report a product issue?
Provide a minimal reproducible local fixture, the tool and input shape, and the structured coverage report. No live credentials, sensitive source, or exploit code. Keep reports focused on containment, read-only behavior, and misleading audit results.
Which stacks are supported?
Swift and SwiftUI first, then Expo and React Native, then TypeScript and Next.js (App Router, Server Actions, middleware). The skill targets local-first iOS, macOS, and Expo apps. More surfaces are planned.
Stuck on something specific? Contact support. Or read the full documentation.