Give Claude on the web (claude.ai), ChatGPT, and Grok read/edit access to files and a whitelisted shell on your local machine. Operates over HTTPS through a swappable public edge (Tailscale Funnel by default, or your own Cloudflare tunnel / any stable HTTPS edge), gated by OAuth 2.1. (Experimental support for Gemini — see Connecting from Grok and Gemini.)
No desktop app. No device lock-in. No install needed if you use the standalone launcher below.
Contents: Why this exists · When to use & Core Use-Cases · Install · Run · Connecting from Claude web · Connecting from ChatGPT · Connecting from Grok and Gemini · Autonomous Cloud Automation · Requirements · Architecture · Directory layout · Configuration · Exposing to the internet · Finding files · Security
Claude.ai's web/Pro quota is far cheaper than paying per token via the API for equivalent usage. But most real work is project work: reading, editing, and running commands against files on your machine, not open-ended chat.
The Claude Desktop app already does local file access, but ties usage to a device ID you don't control, and running multiple accounts means repeated login/logout. With this web-based approach, you get true multi-account flexibility instead: just switch browser profiles to pick up a different account (e.g. several Claude Pro subscriptions), all pointed at the same local machine, no device lock-in.
aki-mcp-sv routes around both problems: run an MCP server on your machine, expose it over HTTPS through Tailscale Funnel, and connect it to claude.ai as a custom connector.
The payoff:
- Use your web quota for local file and shell access, straight from the browser.
- True multi-account flexibility: switch browser profiles to instantly pick up a different account, all pointed at the same machine.
- Safe by default: a strict command whitelist, not a leaky blocklist — see Security.
- At your desk: a native Terminal/CLI (Claude Code, Antigravity CLI, Cursor) is still the fastest, most fluid option — use that.
- Away from your desk (mobile / web / a machine that isn't yours): use
aki-mcp-svvia Claude Web, ChatGPT Mobile, or Grok to check on a running job, read logs, clean up temp files, or pull the latest code on your home/office machine. - On a schedule, with nobody watching: pair Grok's scheduled prompts with
aki-mcp-svfor cloud-triggered local execution — see Autonomous Cloud Automation.
Note
Is this safe to run? The standalone launchers extract a private Node runtime and the app payload strictly into your OS's per-user app-data directory (~/Library/Application Support/aki-mcp-sv on macOS, %LOCALAPPDATA%\aki-mcp-sv on Windows, ${XDG_DATA_HOME:-~/.local/share}/aki-mcp-sv on Linux); your own settings/tokens live separately at ~/.aki/mcpsv/. Nothing is installed system-wide, no background service or daemon is created, and no sudo/administrator privileges are required. The shell tool is read-only by default (see Security). Closing the terminal window stops the server completely.
Download the launcher for your OS from the latest release — not the green "Code" button's "Download ZIP" above, which is just the source and won't run:
- macOS: double-click
aki-mcp-sv-<version>-macos.command(or run it from Terminal) - Linux:
chmod +x aki-mcp-sv-<version>-linux.run && ./aki-mcp-sv-<version>-linux.run(downloaded files aren't executable by default) - Windows: double-click
aki-mcp-sv-<version>-windows.cmd— still needs Git for Windows (or WSL) onPATH, see Requirements
Handling first-run OS security warnings — expected on an uncode-signed launcher, not a sign anything's wrong:
- Browser download warning (Chrome/Edge/Safari flagging
.command/.cmd/.runas an uncommon file type): click "Keep"/"Download anyway". - macOS Gatekeeper ("cannot be opened because the developer cannot be verified"): right-click the
.commandfile → Open once to bypass. If that option is missing (macOS 15+ dropped it), open System Settings → Privacy & Security, scroll down, and click Open Anyway — or runxattr -d com.apple.quarantine <path-to-file>in Terminal first, which works on every macOS version. - Windows SmartScreen ("Windows protected your PC"): click More info, then Run anyway.
Operational notes:
- First run downloads and checksum-verifies the Node runtime + app payload; later runs reuse what's already downloaded, so they start fast with no network access needed.
- To start it again later (after a reboot or closing the terminal): run the exact same launcher file again — it's still in your Downloads folder.
- Keep the terminal/console window open — it's the running server, not just a progress log. Closing it stops everything, including the control panel and any active connection.
git clone <repo-url> aki-mcp-sv
cd aki-mcp-sv
npm installThen see Run below.
Standalone package: the launcher already started the server for you — no command to type. Everything below (what gets printed, what the control panel shows, the default folder access) still applies to you, so skim it before jumping to Connecting from Claude web.
Git-clone path:
cp .env.example .env # optional: only if you need PUBLIC_ORIGIN or another non-default var
npm startNothing needs preparing beforehand; npm start handles it:
- Passphrase and OAuth client ID/secret in
~/.aki/mcpsv/: generated once, reused on every later run. - Funnel: checks
tailscale funnel status; if port9999isn't on yet, runstailscale funnel --bg 9999(idempotent: never toggles an already-enabled port). - Prints the 4 values you need: Remote MCP server URL, OAuth Client ID, OAuth Client Secret (paste into claude.ai), and Passphrase (enter on the confirmation page when you hit Connect).
- Opens the control panel at
http://127.0.0.1:9998/?t=<token>. A step header maps the flow (0 Setup · 1 Connectors · 2 Install rules · 3 Instructions · 4 Extension), then the sections follow it: 0 Setup (a 3-tab ingress picker: Tailscale + Funnel / Owned public origin / Hosted domain), 1 Connectors, 2 Install akidevrule, 3 Instructions prompt, 4 Browser utilities, 5 allowed Folders, 6 shell allowlist.
The default allowed root is your home directory ($HOME, or %USERPROFILE% on Windows): the one folder guaranteed to exist on any machine and to hold the projects you actually want Claude to reach. In plain terms, that means the whole home folder (Desktop, Documents, Downloads, Photos, everything under it), not just the projects you meant to share. Add/remove folders from panel section 5: click "+ Add folder…" and type an absolute path (/Users/you/projects or C:\Users\you\projects). Saving takes effect immediately for every tool — shell, find, search, and file read/write/edit alike — no restart. To change the root from the start: MCP_DATA_DIR=/other/path npm start (or set MCP_DATA_DIR=D:\work then npm start on Windows cmd).
Beyond $MCP_DATA_DIR, the filesystem tools are also granted ~/.aki (where akidevrule deploys) and ~/.claude, so claude.ai can read your native CLAUDE.md and skill router the same way Claude Code does, with no copying or staging.
~/.claude is granted at the folder level (the filesystem tools can't scope to individual files), so .claude.json/auth-cache.json (session tokens) and history.jsonl (chat history) inside it are also reachable through the connector. This row is locked in panel section 5, with no delete button by design so it can't be revoked by accident; the panel itself cannot remove it. If you don't want ~/.claude granted at all, edit ~/.aki/mcpsv/setting.json and remove the ~/.claude entry from its folders list before connecting; claude.ai then loses access to your CLAUDE.md too.
npm start runs in the foreground: Ctrl+C to stop, restart manually when needed. After editing code, Ctrl+C and npm start again (Node doesn't hot-reload).
- Go to claude.ai → Settings → Connectors → Add custom connector
- Remote MCP server URL: paste
https://your-machine.your-tailnet.ts.net/mcp(printed bynpm start) - Advanced settings → OAuth Client ID / OAuth Client Secret: paste the two values
npm startprinted - Click Connect: a local confirmation page opens; enter the passphrase shown in the control panel (section 1 · Connectors) to approve — or read it straight from
~/.aki/mcpsv/passphrase.txt
Why not token-in-URL: docs/ref/claude-connector.md, docs/research/claude-ai-oauth-connector.md.
claude.ai connects and calls the in-house local__* tool suite: local__find_path, local__search_content, local__run_cmd, local__agy_run, local__kiro_read, plus native file read/write/edit (local__read_text_file, local__write_file, local__edit_file, local__create_directory, local__move_file, local__get_file_info, local__list_allowed_directories).
Note on the connector icon: claude.ai doesn't read the icon from the MCP server. It queries Google's favicon service with the tailnet's apex domain, not your host: https://t2.gstatic.com/faviconV2?...&url=http://<tailnet>.ts.net&size=32. <tailnet>.ts.net has no public DNS record, so Google returns 404 and claude.ai falls back to a default letter icon. This server serves /favicon.ico publicly, but no file placed here can change that result: your subdomain never appears in the query Google receives.
Needs ChatGPT Plus/Pro (or Business/Enterprise/Edu) with Developer mode for custom connectors.
- ChatGPT → Settings → Apps & Connectors (or Security) → enable Developer mode
- Create a custom connector / app → paste the same MCP URL (
https://your-machine.your-tailnet.ts.net/mcp) - Auth: OAuth → Advanced OAuth settings → set Registration URL to
https://your-machine.your-tailnet.ts.net/register(the panel prints the exact value to copy). This is the step that enables DCR: ChatGPT self-registers its own client from it. Skip it and ChatGPT can't register, so it falls back to a user-defined client — and pasting Claude's Client ID there fails, because that client only allowsclaude.airedirects. - Leave registration method on DCR, token endpoint auth method none — do not paste Claude's Client ID/Secret here.
- Enter the same passphrase on the confirmation page
Same folder allowlist and shell allowlist as Claude. Restart npm start after upgrading so gatekeeper advertises registration_endpoint and serves /.well-known/openid-configuration (ChatGPT reads that to auto-fill the Registration URL).
Both ride the same MCP URL and passphrase flow — no separate transport or auth. They differ in how the client authenticates, and the connector panel (section 1) prints the exact copy fields for each.
Grok — verified, production-ready: self-registers via the /register DCR path like ChatGPT — paste only the MCP URL, no Client ID. Its real redirect_uri https://grok.com/connectors-oauth-exchange-code/ was observed live 2026-08-09 and is allowlisted via GROK_CALLBACK_PREFIX. Verified working end to end (authorize → token 200). If a future Grok change moves that callback, a rejected registration logs register REJECTED (redirect_uri not allowlisted): [...] so the new value can be re-allowlisted.
Gemini — experimental, connection works but tool use doesn't (yet) (paid tiers only — Pro / Business / Enterprise; the free tier may not expose custom apps): pastes a confidential client, exactly like Claude — set the custom app link to the MCP URL, then under Advanced Settings paste the same Client ID / Client secret. Gemini's redirect goes through Google's OAuth proxy https://oauth-redirect.googleusercontent.com/r/... (observed live 2026-08-09), allowlisted by isAllowedRedirect in scripts/oauth.js. Caveat: the OAuth handshake succeeds and Gemini accepts the instruction, but in repeated testing 2026-08-09 it did not reliably discover or drive the MCP tools — connection healthy, tool use unreliable. Claude and Grok are the dependable clients today.
Grok's scheduled prompts turn your machine into a headless "personal remote AI node": no browser tab, no desktop app, just npm start running in the background.
- Cloud-triggered local execution: set up a scheduled prompt in Grok (Automation) that fires at a fixed time.
- Headless: Grok's cloud service sends the request to
/mcpover your Tailscale Funnel URL, andaki-mcp-svruns the task — health check, log sweep,git pull, cleanup — with nothing open on your end. - Zero UI required: as long as the process is running, no browser or app needs to be open for the scheduled task to execute.
- Node.js, on Windows, Linux, or macOS. Don't have it? Skip straight to the standalone package below, no install needed — bootstrap launchers ship for Windows, Linux, and macOS.
- Windows only: Git for Windows (or WSL) on
PATH— the shell/search tools shell out to Unix binaries (ls cat pwd grep head tail wc file stat tree ps df du whoami uname), and akidevrule'sinstall.shneedsbash; Git for Windows'usr/binships the coreutils/findutils/grep/diffutils this needs. Same category of prerequisite as Tailscale below, not a code dependency. - Tailscale (one-time setup):
- Install Tailscale and sign in (on macOS, the app or
brew install tailscaleboth work as long astailscaleis on PATH) - Enable Funnel for your tailnet: free on every plan, a one-time toggle via the
login.tailscale.com/f/funnellinknpm startprints if it isn't on yet
- Install Tailscale and sign in (on macOS, the app or
After that, npm start enables Funnel on port 9999 automatically every run.
Claude web / ChatGPT
│ HTTPS + OAuth 2.1 (Claude: paste client ID/secret; ChatGPT: DCR self-register)
▼
Tailscale Funnel (https://your-machine.your-tailnet.ts.net)
│
▼
gatekeeper.js — public port 9999
│ /.well-known/oauth-* + openid-configuration metadata (openid is an alias for ChatGPT discovery)
│ /authorize, /token minimal authorization server (scripts/oauth.js)
│ /register RFC 7591 dynamic client registration (ChatGPT self-registers here)
│ /mcp requires a valid Bearer access token, else 401
│ POST → real Streamable HTTP (scripts/streamable-bridge.js)
▼
tools-server.js — one shared McpServer, in-process (InMemoryTransport, no child, no SSE), tools:
search-mcp.js (find_path/search_content, whole-tree in one call)
shell-mcp.js (allowlisted commands, curated to read-only)
agy-mcp.js (Antigravity CLI, read-only plan mode)
kiro-mcp.js (kiro_read, read-only, needs kiro-cli on PATH)
filesystem-mcp.js (native read/write/edit inside the allowed folders)
panel.js — 127.0.0.1:9998, never exposed via Funnel
control UI: allowed folders, shell allowlist,
install akidevrule, generate the connector prompt
The ingress layer is swappable: Tailscale Funnel is the zero-config default, but the same /mcp endpoint can instead be served through your own Cloudflare named tunnel or any stable public HTTPS edge you already run — see Exposing to the internet. Everything below the ingress line (gatekeeper, OAuth) is unchanged whichever edge you pick.
OAuth (not token-in-URL) is used because claude.ai always attempts Dynamic Client Registration regardless of configuration (docs/research/claude-ai-oauth-connector.md). ChatGPT also expects OAuth; this server advertises /register (RFC 7591 DCR) so ChatGPT can self-register while Claude can keep using the pre-issued Client ID/Secret.
aki-mcp-sv/
├── package.json
├── scripts/
│ ├── start.js # orchestrates gatekeeper + panel, single process
│ ├── open-browser.js # cross-platform "open default browser" — the one per-OS seam, no external dep
│ ├── gatekeeper.js # OAuth-gated reverse proxy, public port
│ ├── oauth.js # minimal authorization server (pre-registered client + RFC 7591 DCR)
│ ├── streamable-bridge.js # Streamable HTTP shim <-> the in-process tools server (InMemoryTransport)
│ ├── tools-server.js # builds the one shared McpServer mounting shell/agy/kiro/search/filesystem
│ ├── http.js # shared HTTP helpers: readBody / json / serveStatic (+ MIME)
│ ├── shell-mcp.js # allowlist-gated shell tool (curated to read-only)
│ ├── agy-mcp.js # register() module for the agy CLI (mounted by tools-server.js)
│ ├── kiro-mcp.js # Kiro arm: kiro_read (read-only) tool, sonnet-4.5 locked, needs kiro-cli on PATH
│ ├── filesystem-mcp.js # native read/write/edit tools, symlink-safe path containment
│ ├── mcp-tool.js # shared MCP tool-result envelope: ok / err / fail
│ ├── allowlist.js # default command set + settings reader — shared by server and panel
│ ├── search-mcp.js # find_path / search_content — whole tree in one call
│ ├── roots.js # path containment shared by every filesystem-touching tool
│ ├── tailscale.js # reads Funnel status — shared by start.js and panel
│ ├── update-check.js # checks for newer aki-mcp-sv/akidevrule versions, shown in the panel
│ ├── log.js # shared timestamped logger
│ ├── panel.js # loopback-only control panel (:9998), token-gated
│ ├── config-page.js # renders the panel page
│ ├── html.js # HTML escaper (esc) — shared by oauth confirm page and panel
│ ├── userdata.js # user data location (~/.aki/mcpsv) — single source of truth
│ └── build/ # standalone release builder: payload/launchers/checksums, smoke-test, release-gate
└── public/ # panel CSS/JS, favicon + images, served publicly by gatekeeper
Your data lives outside the repo, at ~/.aki/mcpsv/ (the same convention CLIs like ~/.aws or ~/.docker use):
~/.aki/mcpsv/
├── setting.json # allowed folders + shell allowlist, edited from the panel
├── oauth-client.json # pre-issued client ID + secret, for Claude (0600)
├── oauth-dcr-clients.json # clients that self-registered via /register, one per ChatGPT connector (0600)
├── passphrase.txt # passphrase for the /authorize consent screen (0600)
└── tokens.json # access/refresh tokens (0600)
A clone stays exactly as checked out: editing folders/allowlist from the panel never produces a diff in the repo.
Copy .env.example to .env and uncomment what you need — start.js loads it automatically on boot (falls back silently to defaults when .env is absent, so the default Tailscale flow is unaffected). Supported vars: PUBLIC_ORIGIN, GATEKEEPER_PORT, PANEL_PORT, MCP_HUB_PORT, MCP_DATA_DIR, MCP_REQUEST_TIMEOUT_MS. For a one-off alternate profile, pass node --env-file=.env.user ./scripts/start.js instead.
Standalone package: .env.example isn't part of the downloaded payload, so create .env by hand instead, in the same per-version app directory the launcher runs from (not the folder you downloaded the launcher into):
- macOS:
~/Library/Application Support/aki-mcp-sv/app/<version>/.env - Linux:
${XDG_DATA_HOME:-~/.local/share}/aki-mcp-sv/app/<version>/.env - Windows:
%LOCALAPPDATA%\aki-mcp-sv\app\<version>\.env
Tailscale Funnel is the default, zero-config path and stays the recommended flow. If Funnel is unreliable for you, two alternative ingress options let you bring your own public edge instead — see Alternative ingress below.
npm start enables Funnel automatically when needed (see above), no manual step. Funnel is state stored in tailscaled (survives reboots), independent of npm start's own lifecycle; disable it entirely with tailscale funnel 9999 off.
Know before enabling Funnel:
- Free on every Tailscale plan, but the tailnet needs a one-time opt-in first (the
login.tailscale.com/f/funnel?node=...linktailscale funnel --bgprints if it's missing). - Only 3 ports are fundeable:
443,8443,10000; you can't expose an arbitrary port. - Bandwidth is limited; Tailscale doesn't publish an exact number.
- Don't toggle Funnel on/off repeatedly: re-issuing the certificate too often can hit Let's Encrypt's rate limit (~34h lockout).
start.jsavoids this by checkingWeb[].Handlers[].Proxyfor port 9999 intailscale funnel status --jsonbefore deciding Funnel is off (not theAllowFunnelkey, which reflects the public port 443, not 9999).
Diagnosing "claude.ai can't connect" while tailscale funnel status says "on": the serve-config can save locally but fail to sync to Tailscale's control plane, so a real client on the open internet is blocked at the TLS layer while the host machine, routed through the internal mesh, sees everything as fine. Don't test with a bare curl https://<host> from the machine running npm start: that machine is in the tailnet and silently takes the mesh shortcut. Test the real path instead:
dig @8.8.8.8 <host> A +short # real public IP
curl --resolve <host>:443:<IP-from-above> https://<host>/.well-known/oauth-authorization-serverIf that returns SSL_ERROR_SYSCALL/timeout despite tailscale funnel status saying "on", re-run tailscale funnel --bg 9999 to force a config re-push (not a code bug). Full writeup: docs/research/claude-ai-oauth-connector.md, section "Debug round 5".
The Funnel edge can intermittently drop individual requests in some regions. The drop-rate difference against Cloudflare is still unmeasured, so these are not a proven upgrade — reach for them only if Funnel is unreliable for you. Both replace the Tailscale edge entirely; the OAuth server and tool suite are unchanged. Precedence when more than one is set: --tunnel > PUBLIC_ORIGIN > saved panel config (section 0 → "Owned public origin") > Tailscale Funnel. Full rationale: docs/plan/done/cloudflare-tunnel-ingress.md.
Bring your own edge (PUBLIC_ORIGIN): point an env var at a stable public HTTPS origin you run and terminate yourself, and npm start skips Tailscale entirely, serving at that origin:
PUBLIC_ORIGIN=https://your-host npm startCloudflare named tunnel (--tunnel): the server launches a Cloudflare named tunnel for you, reading TunnelID from a cloudflared credentials JSON and running cloudflared tunnel run forwarding to 127.0.0.1:9999:
npm start -- --tunnel <cred.json> --origin https://your-host--origin is required because a credentials JSON carries no hostname. This is JSON-credentials mode only — no yml config, no token. Before it works you need a Cloudflare account, a named tunnel already created (cloudflared tunnel create), its credentials JSON, and a DNS route pointing the hostname at that tunnel.
Someone gave you a tunnel JSON: if a host who owns the domain already created the tunnel and DNS route and sent you the credentials JSON, you need no Cloudflare account of your own — just install cloudflared, then run with the origin they assigned:
npm start -- --tunnel <the-json-they-sent> --origin https://the-subdomain-they-gave-youTo get a subdomain under a host's domain, arrange it with them directly; there is no self-serve signup.
From the panel (no CLI flags): open the control panel → section 0 → "Owned public origin" tab → upload your cloudflared credentials JSON and the hostname you routed it to → Save. Takes effect on the next npm start (restart required, not a live switch); a "Use Tailscale Funnel instead" button reverts it.
When a custom ingress is active, the panel's section 0 skips the Tailscale checks and instead shows the active ingress and the serving origin — so the absent Tailscale UI is expected, not a fault.
Use local__find_path to locate a file or directory — it scans the whole tree in one call (measured: ~0.2s across 164k files / 11.7k directories), returns both files and directories, and skips node_modules/.git/build output automatically. query is a case-insensitive substring, or a glob when it contains */?.
Minimal OAuth 2.1: Claude uses a pre-issued confidential Client ID/Secret; ChatGPT uses DCR (POST /register) as a public client (token_endpoint_auth_method: none) with chatgpt.com redirect URIs allowlisted. Full writeup: docs/ref/security-model.md.
$MCP_DATA_DIR(default$HOME, reaching your whole home folder: Desktop, Documents, Downloads, Photos, everything under it, not just projects) is every tool's main root, plus~/.akiand~/.claude(for native rule files) — read fresh from~/.aki/mcpsv/setting.jsonon every call, so a panel edit takes effect on the next call, no restart.~/.claudeis granted at the folder level, so session tokens and chat history inside it are also in the connector's reach (a known tradeoff; the panel row is locked and can't be removed there: edit~/.aki/mcpsv/setting.json'sfolderslist directly if you want it out).- The shell MCP is hand-written (
shell-mcp.js), enforcing the allowlist in code (execFile, never through a shell,; & | \`` blocked). The default set is read-only, defined inallowlist.js— flag-rich binaries whose own flags escape read-only (find -delete/-exec,sort -o) are deliberately kept out of it (issue #2), so a default connector cannot write, delete, or exec through the shell tool; thefind_path/search_contenttools cover the read-only lookup they were used for. The panel shows exactly that set as your starting point for edits, saved to~/.aki/mcpsv/setting.json→shell.allowlist. **Any command you add is your own responsibility**: adding an obvious write command (e.g.git commit) widens the surface further. A command can run in any directory under the allowed roots via thecwdparameter, used instead ofcd/-C` to target a specific repo. gatekeeper.jsis the single public entry point; every tool runs in-process behind it, nothing else listens on any port.panel.jswrites config and runs commands on your machine, so it only binds to127.0.0.1and is never exposed via Funnel. Its token is regenerated everynpm startand required both in the page's query string and in thex-panel-tokenheader on every API call, blocking other browser tabs from POSTing to it.~/.aki/mcpsv/passphrase.txt(the/authorizeconsent passphrase) and~/.aki/mcpsv/oauth-client.json(client ID/secret) are mode 0600, live outside the repo (never reach git), and are only ever shared once, pasted into the connector dialog.- Access/refresh tokens live in
~/.aki/mcpsv/tokens.json(mode 0600) and survive restarts: a connector is long-lived file access, not a login session, so losing tokens on everynpm startwould just force pointless re-authentication. Access token TTL is 1 year, refresh tokens don't expire. Revoke by deleting~/.aki/mcpsv/tokens.jsonand restarting. - Each ChatGPT connector instance self-registers one client into
~/.aki/mcpsv/oauth-dcr-clients.json(mode 0600). Registration is open but not a way in on its own: onlyclaude.aiandchatgpt.comredirect URIs are accepted, and a registered client still has to pass the passphrase consent screen and PKCE before it gets a token. Revoke those registrations by deleting that file and restarting. - Funnel stays enabled in the background for the whole project;
npm startis the only thing you actively start/stop.
Desktop Commander is the most widely used MCP terminal server. It runs locally for Claude Desktop and guards shell access with a blocklist (blockedCommands, an explicit list of forbidden commands). A blocklist is inherently leaky: you can't enumerate every dangerous command and variant, and the default is allow: anything not on the list gets through.
This project targets a different scenario: exposing local access to Claude on the web, across the open internet via Funnel. It makes the opposite default choice: a whitelist. Nothing runs unless it's explicitly allowed.
- Fail-safe: an unfamiliar or new command is blocked automatically, no guessing required.
- Minimal attack surface: only the exact commands you've approved can run, nothing more.
- Granular down to the subcommand:
gitis scoped tostatus/log/diff/show, something a blocklist can't express cleanly. - Neutralizes prompt injection: exposed to the open internet, a hard whitelist means a malicious or injected instruction has nothing to escalate to — there's no unlisted command for it to reach for.
- Read-only by construction: the built-in set is read-only — flag-rich binaries that could escape it via their own flags (
find,sort) are kept out (issue #2); adding a write command is a deliberate edit to~/.aki/mcpsv/setting.json, not the removal of a ban.