This example uses Continue's stdio MCP transport to start mcp-audit, then
lets mcp-audit launch the real upstream MCP server.
stdio — Continue spawns mcp-audit as a subprocess. mcp-audit speaks MCP
on stdin/stdout with Continue and proxies JSON-RPC to the upstream server defined
in proxy.upstream.
- Install
mcp-auditon yourPATH(releases). - Edit
examples/continue/config.yamland setproxy.upstreamto your MCP server command. - Replace
/path/to/allowed/rootwith a real directory if you use the filesystem server. - Set
AUDIT_SECRETto a long random value (see below).
Create .continue/mcpServers/filesystem-audited.yaml in your project root:
name: Filesystem Audited
version: 0.0.1
schema: v1
mcpServers:
- name: Filesystem Audited
type: stdio
command: mcp-audit
args:
- --config
- examples/continue/config.yaml
env:
AUDIT_SECRET: replace-with-a-long-random-secretUse a path to config.yaml that is correct from your project root. If you copy
the example elsewhere, update the --config argument accordingly.
Add the same mcpServers entry to your user config:
| Platform | Config path |
|---|---|
| macOS / Linux | ~/.continue/config.yaml |
| Windows | %USERPROFILE%\.continue\config.yaml |
export AUDIT_SECRET="$(openssl rand -hex 32)"On Windows PowerShell:
$env:AUDIT_SECRET = -join ((1..32) | ForEach-Object { '{0:x2}' -f (Get-Random -Max 256) })Use the same value in your Continue env block (or export it in the shell that
launches Continue if your setup inherits the environment).
- Reload Continue (or restart the extension host).
- Confirm the MCP server appears in Continue's MCP tools list.
- Optional: set
dashboard.enabled: trueinconfig.yamland openhttp://localhost:9090to inspect audit entries.
Audit records are written to ./continue-audit.jsonl relative to the working
directory where mcp-audit starts (usually your project root).