secure-mcp
A security and data privacy audit skill for coding agents, focused on Swift apps, with an optional strict MCP v2 server for read-only heuristic assistance.
Swift first Skill fileA security audit skill for coding agents
secure-mcp is a security and data privacy audit skill for coding agents, focused on Swift and SwiftUI. It targets local-first iOS, macOS, and Expo / React Native apps, with particular attention to SQLite and local storage, backups, imports, permissions, and data exposure. The skill is one Markdown file. It needs no build, no Node.js, and no client configuration.
The repository also includes an optional local MCP server. The server gives agents read-only heuristic tools for the same kind of review, plus TypeScript / Next.js support. The maintainer uses only the skill, so you do not need the server to run an audit.
Install the skill
Clone the repository and link one folder into your agent’s skills directory.
Run an audit
Ask your agent for an audit by name, and see how the optional server’s staged workflow fits in.
Optional: MCP server
Build the server from a checkout and connect a strict v2 stdio client.
Client compatibility
Configuration shapes for Codex, Cursor, Claude Desktop, Claude Code, VS Code / Copilot, pi, and generic stdio clients.
Server tools
What each tool of the optional server reads and returns.
Host these docs
Build and verify the Blume site locally, then publish it through a separate Vercel, Cloudflare Pages, or Workers configuration.
The operating model
Start from the data
Map the app’s sensitive data, storage, and trust boundaries before looking at individual files.
Report clearly
Keep confirmed findings, open questions, and dismissed candidates separate. An audit covers inspection, not fixes.
Verify before reporting
Heuristic hits are candidates. Confirm the data flow in source before you call something a finding.
What it covers today
| Surface | Coverage |
|---|---|
| Apple platforms | Swift, SwiftUI, Keychain, ATS, WebView bridges, deep links, and macOS controls |
| React Native | Expo config, SecureStore, OTA boundaries, deep links, and token storage |
| Web | TypeScript, Next.js App Router, API handlers, cookies, CSRF, and NEXT_PUBLIC_ exposure |
| Cross-cutting | Authentication, injection risks, secrets, threat modeling, and report rollup |
The optional server’s detectors and knowledge packs cover the same surfaces. Without the server, nothing in this repository enforces read-only access, path limits, or redaction. Those depend on the agent following the skill and on the permissions you give it.
Read the design notes
Understand the server’s process boundaries, filesystem policy, progressive knowledge packs, and extension points.