Skip to content

AI access: give an agent your servers, not your keys

ShellVibe runs a local MCP server for SSH on your desktop, so an AI agent such as Claude Code or Cursor can work on your saved servers through ShellVibe without ever holding a hostname, password or private key. Each host has its own ceiling, risky commands wait for your yes, and every command lands in an audit log, with one button to cut all agent access.

What the MCP server is

MCP (Model Context Protocol) is how coding agents call outside tools. ShellVibe's MCP server lives in the desktop app on macOS, Windows and Linux. It is off by default in every workspace, listens on 127.0.0.1 only, and refuses any request without the token the app minted for its shellvibe-mcp bridge, which is what your agent launches. Browser-originated requests are rejected by an Origin check. The app must be running and the vault unlocked: locking the vault stops the server.

In Settings → AI access, Claude Code, Claude Desktop, Cursor, Codex and Antigravity connect in one click. Any other MCP client works with the JSON block shown there. An agent is bound to one workspace and sees only its hosts.

The controls

Opaque host ids

list_hosts gives the agent an id, a label, group names and the access it holds. No tool returns a hostname, port, user name or credential. The agent asks for host 3f0c…, and ShellVibe connects with the identity you attached.

A switch and a ceiling on every host

Each host has an Allow AI agents switch (off means the agent never sees it) and a Max access level. New hosts start at Ask before changes.

Classified as Read only Ask before changes Full access
Read-only (ls, cat, df, systemctl status) runs runs runs
Deletes (rm, mkfs, sed -i, find -delete) refused asks asks
Privilege (sudo, su, doas) refused asks asks
Secret reads (.env, .ssh, /etc/shadow, printenv) refused asks every time asks every time
Unreadable (curl … | sh, eval, $(…), bash -c) refused refused asks every time
Services, packages, users, firewall, SQL, git history, containers refused asks runs
Anything not recognised refused asks runs

Interactive commands (vim, less, top, tail -f) are refused at every level, with a batch alternative the agent can retry. Note the last row: on Full access, a command that matches no pattern runs without asking. The check reads shell text with regular expressions. It is a guide, not a sandbox.

request_host_access grants

An agent starts with no access. It asks once, for every host the task needs, with a reason. In one window you approve or deny each host, lower its level, and pick how long the grants last: Once, 15 minutes, This session or Always. Deny and suspend client shuts that agent out until you turn AI access on again. No grant exceeds the host's max access, and it is checked again on every command. A host you refused cannot be asked for again by that agent for ten minutes.

Approval prompts, fail-closed

A command that needs your yes shows the command, the host, the agent and a plain label for what it does. You can remember a yes for 15 minutes, the session or always, tied to that exact agent, host, directory and command. Secret reads, unreadable commands and file transfers cannot be remembered.

A prompt left unanswered for two minutes is a refusal. Locking the vault or pressing the kill switch refuses every open prompt at once. Runbooks and snippets started by an agent always ask, whatever the level, and are refused on Read only hosts.

Output redaction

run_command, runbook and snippet output is scanned for known secret patterns before the agent reads it, and each match comes back as [REDACTED:type]:

  • PEM private keys, including half a key cut off by the output cap
  • AWS access key ids (AKIA…)
  • GitHub tokens (ghp_, gho_, ghu_, ghs_, ghr_)
  • sk- style API keys and JWTs
  • the user and password in postgres://, mysql:// and mongodb:// URLs
  • values of password, secret, token and api_key style assignments

download_file is not scanned: the bytes go to disk as they are, which is why a plain download asks even on Read only.

Audit log and kill switch

Host requests, sessions, commands, transfers, host adds and runbook runs are logged with the agent, host, category and decision, commands in redacted form. Filter it, export JSON or CSV, and keep it 7 to 365 days; rows cannot be deleted one by one. The activity panel lists live grants and remembered approvals, each revocable, and every agent session shows as a read-only terminal tab you can watch.

Cut all agent access closes every agent session, revokes every grant, remembered approval and client token in every workspace, and stops the server. It does not ask twice.

add_host, with your identity attached

Asked to work on a server you have not saved, an agent can propose one with add_host: a label, address, port and optional user name. You attach one of your own identities in the approval window, or none, and add or deny. The new host is not granted: access still goes through request_host_access.

The optional ssh hook

For Claude Code, Codex and Cursor on macOS and Linux, Settings → AI access can add a hook that turns the agent's own ssh, scp, sftp and remote rsync back towards ShellVibe's tools. It is off by default, and it is a nudge, not a lock: bash -c "ssh host" or a script walks past it.

The tools

Tool What it does
list_hosts, describe_host Hosts the agent can see, as ids
add_host Proposes a server for you to approve
request_host_access Asks for access to hosts
open_session, close_session, list_sessions Shell sessions on granted hosts
run_command Runs one command through the policy
interrupt Stops whatever is running
upload_file, download_file Copies one file each way
list_snippets, run_snippet Your snippets, run after approval
list_runbooks, run_runbook Your runbooks, run after approval
get_runbook_run, cancel_runbook_run Follows or stops a run

The limits

Said plainly:

  • The app marks AI access as experimental. Tools and approvals may change between releases.
  • The command check is not a boundary. A command can be dressed up to slip past it, and Full access runs anything it does not recognise.
  • Redaction catches known patterns, not every secret, and skips downloaded files. Whatever reaches the agent goes wherever the agent sends it.
  • An opaque id hides credentials, not the machine. hostname in an open session tells the agent where it is.
  • Desktop only. The app must be running with the vault unlocked.
  • New host keys need you. An agent cannot accept an unknown key, and a changed key is refused. Connect once yourself first.

What holds is your approval, a least-privilege SSH user with a narrow sudoers file, and the audit log with its kill switch. Set that up step by step, or read the security model.