Give your coding agent a workspace. Keep the receipts.
venira-mcp is an MCP server for Claude Desktop, OpenCode, Cursor, VS Code and Codex. It reads, edits and runs commands inside one project folder, records every call in an audit trail, and rolls back with checkpoints, no git required.
Install in your project, then restart your client
npx --yes venira-mcp@latest --install auto --workspace .Needs Node 20 or newer. One native dependency (better-sqlite3), no external binary.
| No. | Tool | What happened | Verdict |
|---|---|---|---|
| 1 | read_file | Eight files in one batch call | allowed |
| 2 | snapshot | Checkpoint snap-20261113-001500-3f9ac2 before the refactor | allowed |
| 3 | edit_file | Rename loadConfig to readConfig. The reason is stored with the call | allowed |
| 4 | shell_run | Remove-Item -Recurse -Force build | needs approval |
| 5 | shell_run | rm -rf / | denied |
| 6 | snapshot | Restore the checkpoint, previewed with dry_run first | allowed |
Illustrative. Verdicts follow the default balanced security profile.
Built to be checked
An agent with write access needs a paper trail. These are the parts venira-mcp gives you for that.
Every call is audited
Each tool call lands in a SQLite audit trail. Mutations can carry a reason, so read_audit shows what the agent changed and why.
Undo without git
snapshot creates content-addressed checkpoints and restores them atomically, file by file. Preview a restore with dry_run before you commit to it.
Rules run before the shell does
Commands are classified as allow, ask or deny before they execute. In the default profile rm -rf / is denied and recursive force deletes need your approval.
Stale edits are refused
write_file and edit_file take expected_sha256. If the file changed in the meantime the call fails with stale_content instead of overwriting newer work.
Choose how much to expose
Every tool schema costs tokens on every prompt, so the tool set is a setting. Switch it with VENIRA_TOOL_MODE.
| Mode | Tools | Good for | Contents |
|---|---|---|---|
minimal | 2 | Tightest context; one door | execute_js plus shell_status (~2 737 B) |
core | 18 | Small models and tight context | Shell, read, search, edit, snapshot, git, memory |
default | 31 | Everyday coding | Core plus code intelligence, no CI/CD |
expert | 44 | Full workflows | Default plus pull requests and CI |
Each mode has one tool fewer when execute_js is switched off (minimal drops to 1). Details in tool modes.
Fewer round trips
Batch reads and a persistent connection beat starting a fresh shell for every lookup. Median times from one Windows 11 machine, compared with Codex exec_command, 20 paired samples per phase.
| Workload | Cache | venira-mcp | exec_command | Faster by |
|---|---|---|---|---|
| First lines of 8 files, one batch | miss | 53.5 ms | 962 ms | 18.0x |
| First lines of 8 files, one batch | warm | 39 ms | 1,103.5 ms | 28.3x |
| Search the workspace, 49 hits | miss | 118.5 ms | 1,034.5 ms | 8.7x |
| Search the workspace, 49 hits | warm | 34.5 ms | 1,018 ms | 29.5x |
One machine and a small sample, so read it as a direction and not a guarantee. Method and raw samples are published. See the write-up.
Connect it to your client
The installer finds your client and writes the config for you. To do it by hand, pick yours.
OpenCode
~/.config/opencode/opencode.jsonc
{
"mcp": {
"venira": {
"type": "local",
"command": ["npx", "--yes", "--package=venira-mcp@latest", "venira-mcp"],
"enabled": true,
"environment": {
"VENIRA_WORKSPACE": "/absolute/path/to/project",
"VENIRA_TOOL_MODE": "expert"
}
}
}
}
VS Code
<workspace>/.vscode/mcp.json
{
"servers": {
"venira": {
"type": "stdio",
"command": "npx",
"args": ["--yes", "--package=venira-mcp@latest", "venira-mcp"],
"env": {
"VENIRA_WORKSPACE": "${workspaceFolder}",
"VENIRA_TOOL_MODE": "expert"
}
}
}
}
Claude Desktop / Cursor
claude_desktop_config.json, ~/.cursor/mcp.json
{
"mcpServers": {
"venira": {
"command": "npx",
"args": ["--yes", "--package=venira-mcp@latest", "venira-mcp"],
"env": {
"VENIRA_WORKSPACE": "/absolute/path/to/project",
"VENIRA_TOOL_MODE": "expert"
}
}
}
}
Codex
~/.codex/config.toml
[m[m[ mcp_servers.venira ]
command = "npx"
args = ["--yes", "--package=venira-mcp@latest", "venira-mcp"]
[m[m[ mcp_servers.venira.env ]
VENIRA_WORKSPACE = "C:\\path\\to\\project"
VENIRA_TOOL_MODE = "expert"
Replace the path with your project folder, restart the client, then call health to check the server.
From the blog
-
venira-mcp 6.0.0: one workspace variable, a memory lock
Breaking cleanup of the workspace env axis, plus optimistic locking for the shared memory note.
-
venira-mcp 5.1.0: git push lands in the tool set
One branch, one configured remote, no force - plus switch_workspace joins the core allowlist.
-
Benchmark: the agent tool path on Windows
A persistent MCP connection against a fresh PowerShell per call - 20 paired samples per phase, exact output parity.