ai-cli-mcp is designed to run on the operator's own machine, spawning local AI CLIs on their behalf. It is not a network service and has no authentication layer, because it is not intended to be reachable by anyone but the local user.
Two consequences follow, and they are the security-relevant facts about this project:
- It executes local binaries. A caller that can reach the MCP surface can start
the configured CLIs with attacker-chosen prompts and arguments. Do not expose the
MCP server, the
ai-clicommand, or the detached runner to untrusted input or to a network boundary. - It reads provider credentials. API keys for third-party OpenAI-compatible
providers live in
providers.jsonunder the user's data directory, in plaintext today. Anything that can read that file can use those keys.
If you are considering running this in a shared, multi-tenant, or CI context, the answer is that it was not built for that.
| Version | Supported |
|---|---|
| 6.x | ✅ |
| ≤ 5.x | ❌ |
Fixes land on master and ship in the next release. There are no backports.
Email tkflyc0509@gmail.com with [ai-cli-mcp security] in the subject.
Please include what you ran, what happened, and what you expected — a minimal reproduction is worth more than a severity rating. I am a solo maintainer, so expect an acknowledgement within about a week rather than within hours.
Please do not open a public issue for anything that lets an attacker read credentials or execute code outside the intended local-user boundary. For everything else, a normal issue is fine and usually faster.