Troubleshooting
Diagnose startup and connection problems with the optional secure-mcp 2.x MCP server, including protocol rejections, allowlist failures, runtime versions, and unsupported platforms.
This page covers the optional MCP server. The audit skill has no connection, allowlist, or protocol to troubleshoot.
The client fails to connect with an unsupported-protocol-version error
secure-mcp 2.x speaks MCP protocol revision 2026-07-28 only and opens
with server/discover. A client that still opens a session with the legacy
2025-era initialize handshake is answered with the SDK’s
unsupported-protocol-version error (-32022) and never served. There is no
compatibility fallback by design.
- Check whether your client’s installed version negotiates
2026-07-28(see Client compatibility for per-client status). - Update or switch clients; do not downgrade the server.
- Grok Build TUI currently requests
2025-11-25and is unsupported until it negotiates v2, so do not add it to client config.
Filesystem tools reject every project_root
Filesystem access fails closed unless the process was started with a non-empty,
existing SECURE_MCP_ALLOWED_ROOTS.
- Confirm the env var reaches the server process: it must be set in the
client’s
mcpServers.envblock (or exported before the client launches the subprocess), not only in your shell. - Use
:between multiple roots on Linux/macOS, and existing absolute directories. Stale entries (deleted directories) stop granting access. - Pass an absolute
project_rootthat resolves under one of those roots; symlink and path-traversal escapes are rejected. - A warning like
SECURE_MCP_ALLOWED_ROOTS is not configuredat startup means the process started without any roots. Fix the env wiring above. - Append another parent later with
./scripts/install-agents.sh add-root /absolute/path, then restart agent sessions.
Nothing appears to happen after installing
- Restart agent sessions after running the installer so clients reload skills and MCP configuration.
- The server logs to stderr only; stdout is reserved for MCP JSON-RPC. A quiet terminal while connected is expected.
- Verify an install with
./scripts/install-agents.sh check, or runpnpm smokefrom a checkout to exercise the full tool sequence against the bundled fixtures.
Runtime and platform requirements
| Requirement | Detail |
|---|---|
| Node.js | 20 or newer (node --version) |
| Platform | Linux or macOS. Windows is not supported; the PowerShell installer scripts exist for installer-test parity only. |
| Allowlist | SECURE_MCP_ALLOWED_ROOTS must name at least one existing absolute directory |
| Client | Must negotiate MCP protocol revision 2026-07-28 |
If the server exits immediately, run it directly to see the stderr diagnostic:
SECURE_MCP_ALLOWED_ROOTS=/absolute/path/to/repositories node dist/index.js
Still stuck? Open an issue with your client, OS, Node version, and stderr output, never live credentials or private source.