Docs

Reference

MCP tools

Every tool an AI agent gets from Underpass, what it needs, what it returns, how signing in works, and what to do about the errors people hit.

Underpass has two MCP servers an AI agent can use:

  • The dashboard's, at https://app.getunderpass.com/mcp. Any agent app that adds remote MCP servers by URL can use it: Claude, ChatGPT, Cursor, VS Code and others. See Connect an AI agent.
  • The local one, underpass mcp, which an agent app on one of your computers starts itself. It needs Underpass 0.8.7 or later. See Agents on your own computer.

Signing in

The dashboard's server uses OAuth. Agent apps find the sign-in page by themselves (dynamic client registration), so there is no key or token to paste.

  1. The app opens a page in your browser. Sign in to Underpass if asked.
  2. If your account has two-factor authentication, you're asked for your authenticator code first.
  3. The page shows " wants to use your Underpass account": what it will be able to do, and the workspaces it can use with your role in each. Click Allow.

You go back to the app, connected. The agent then acts as you, with your role in each workspace: a member's agent can only do what that member can do.

It can't remove machines, change access rules, see your password, or run commands or change files on a machine without a person allowing it.

To disconnect an app, open Connect your agent in the dashboard and click Disconnect next to it under Connected apps. The same list is in Settings → Integrations → AI agents.

Workspaces

Every tool except list_workspaces takes an optional workspace: a workspace's name or ID. Leave it out for your personal workspace. list_workspaces lists the others.

Dashboard tools

Setting up

ToolWhat it doesInputsReturns
list_workspacesThe workspaces you belong to, with your role in each. The first is your personal onenoneID, name, role, and whether it's personal
onboarding_statusWhere you are in setting up (first device, second device, both online, reaching each other) and the one next stepworkspaceThe steps done, the next step, your machines and a link to the dashboard
list_machinesEvery machine in the workspaceworkspaceName, address, OS, online, owner, last seen, and whether it waits for approval or is signed out
get_install_commandInstall steps for a device, with a fresh auth key in them that works once, for 24 hoursos (macos, windows or linux), ephemeral (optional: remove the device when it goes offline), workspaceThe steps, when the key expires, and since for wait_for_machine
wait_for_machineWaits until a machine that joined after since comes online (or waits for approval)since, timeoutSeconds (5 to 240, default 90), workspaceThe machine, or joined: false to call again
approve_machineAsks to let a machine waiting for device approval join. A person allows it in the dashboard first. Owners and admins onlymachine, reason, workspaceA job to pass to wait_for_job
check_connectionWhether two machines reach each other: direct, relay, or not yet, and what to dofrom, to, workspaceThe path, latency and last handshake, or the fix
check_accessWhether the access rules let one machine reach another, on a port or at all, and SSH and remote control. Reads the rules, so it works while machines are offlinefrom, to, port (optional), protocol (tcp or udp, default tcp), workspaceallowed, the ports allowed, and what to change when it isn't
how_to_connectSteps to use one machine from another, with their real names and OSfrom, to, use (ping, ssh, files, remote_desktop or web), workspaceReady-to-follow steps

machine, from and to take a machine's name, full name, address or ID.

Looking after machines

ToolWhat it doesInputsNeeds approvalReturns
diagnose_machineWhat's wrong with a machine, in plain words with fixes: online, up to date, clock, whether the Underpass app is open, how it connects, what it listens onmachine, workspaceNoA summary, each finding with its fix, and the facts (version, clock, connections, routes, tags)
machine_infoReads from the machine itself: OS and build, model, uptime, memory, disks and free space, clock and time zone, who's signed in, recent updatesmachine, workspaceNoThe details, after waiting up to 60 seconds for the machine (then wait_for_job)
run_commandRuns a command as the Underpass service: PowerShell as SYSTEM on Windows, sh as root on macOS and Linuxmachine, command (up to 8 KB), reason, timeoutSeconds (1 to 600, default 60), workspaceYesA job to wait for
read_fileReads a text file, up to 1 MBmachine, path, reason, workspaceYesA job to wait for
write_fileReplaces a file's contents, or creates it, up to 1 MB of text. The person allowing it sees the new contentsmachine, path, content, reason, workspaceYesA job to wait for
wake_machineWakes a computer that's asleep or off: another online device on its network sends it the Wake-on-LAN packet. See Wake-on-LANmachine, workspaceNoThe devices sending the packet, or why none can
restart_machineRestarts an online computer, optionally into another of its systems once (dual boot). See Restart and dual bootmachine, into (optional: a system's name), reason, workspaceYesA job to wait for
update_machineUpdates Underpass on a machine to the newest version now, like Update on its page. It drops off the network for about 30 seconds. Owners and admins onlymachine, workspaceNoThe versions, or why it can't (offline, older than 0.8.3)
fixed_ip_statusThe workspace's fixed IP: the address, whether its gateway works, the addresses that go through it, and whether the access rules let anyone use itworkspaceNoThe status and anything to fix
wait_for_jobWaits for a job until it's allowed or denied and the machine finishesjob, timeoutSeconds (5 to 240, default 120), workspaceNoThe job's state and what it means; when done, the exit code, output and errors (each cut at 64 KB) and how long it took

reason is 3 to 500 characters: the sentence the person allowing it reads, like "Sync the clock: it's 9 hours ahead".

A job is pending (waiting for a person), approved, running, done, denied or expired. Results are kept for an hour.

Members can diagnose, read and ask for jobs only on their own machines; owners and admins on any machine in the workspace. What agents may do at all is set in Settings → AI agents (see AI agents), and machines need Underpass 0.8.6 or later for machine_info and jobs, and 0.8.7 or later for wake_machine and restart_machine. Members can wake and restart only their own machines too. wake_machine and update_machine change a machine without a job, so they work only when AI agents are set to Ask first.

People and names

ToolWhat it doesInputsReturns
rename_machineGives a machine a new name, which is also its easy name. Members rename only their ownmachine, name (1 to 63 characters), workspaceThe machine
invite_userAsks to invite someone by email. A person allows it in the dashboard first; the invite then works once, for 7 days. Owners and admins only; only the owner can allow inviting an adminemail, role (member or admin, default member), reason, workspaceA job to pass to wait_for_job
share_machineAsks to share one machine with someone outside the workspace. A person allows it in the dashboard first; the link then works for 7 days. Owners and admins onlymachine, email, reason, workspaceA job to pass to wait_for_job

Prompt

The server also offers one prompt, Set up Underpass (set_up_network): it asks the agent to take you from nothing to two connected devices, one step at a time.

Local tools (0.8.7 or later)

underpass mcp speaks MCP over stdin and stdout (on Windows, "C:\Program Files\Tailnet\tailnet.exe" mcp). It works only on your own computers: the one it runs on and the others you signed in to. Commands and files go straight between your computers over your Underpass network; their output never goes through Underpass's servers.

ToolWhat it doesInputsNeeds approval
list_machinesThis computer and your other computers, with addresses and whether they're online, and what the workspace lets agents dononeNo
machine_infoSame as the dashboard'smachineNo
run_commandSame as the dashboard's, and returns the output when it's donemachine, command, reason, timeoutSeconds (1 to 600, default 60)Yes
read_fileSame as the dashboard'smachine, path, reasonYes
write_fileSame as the dashboard'smachine, path, content, reasonYes

Leave machine out for the computer the agent runs on. There is no wait_for_job: each tool waits up to 5 minutes for a person to answer.

An owner or admin allows the request in the dashboard (Connect your agent, or the bell). It can't be allowed on a computer: there the answer would go through Underpass's local API, which an agent running on that computer could call too.

Errors and what to do

What the agent saysWhyWhat to do
Your account uses two-factor authentication, and this app was connected without it…The app was allowed from a session that hadn't done 2FAIn the dashboard, open Connect your agent, Disconnect the app, sign in with your authenticator code, then connect the app again
<workspace> requires two-factor authentication. Turn it on in your account, then reconnect this app.The workspace requires 2FA and you don't have it, or connected without itTurn on 2FA under Account, then disconnect and connect the app again
<machine> runs 0.8.5; agents need 0.8.6 or later there: update it firstThe machine is on an older versionUpdate it
this workspace lets agents only look at machines; an owner or admin can allow more in Settings → AI agentsThe workspace is on Look onlyAn owner or admin sets Settings → AI agents to Ask first
this workspace doesn't let agents work on <machine> (Settings → AI agents)Agents are Off, or the machine isn't under Which machinesAn owner or admin changes Settings → AI agents
agents are turned off on <machine> itselfSomeone turned agents off on that machineOn the machine, run underpass agents on, or turn on AI agents in its app (Windows)
<machine> is offline or signed outJobs need the machine onlineTurn it on, and check underpass status there
Only owners and admins of <workspace> can …A member asked for something on a machine that isn't theirs, or for an owner-or-admin toolAsk an owner or admin
… denied it. Don't retry it unchanged…A person clicked DenyTell the agent what you'd prefer
Nobody allowed it in time, or the machine didn't take it (offline?).Nobody decided within 30 minutes, or the machine didn't take an allowed job within 10 minutesAsk again when someone can answer, with the machine online
too many agent requests are waiting or running in this workspace; answer some firstUp to 200 jobs are kept per workspace, and none of them has finishedAllow or deny the waiting ones
No machine called "<name>".The name doesn't matchThe message lists the machines; or ask the agent to call list_machines

From the local server you may also see:

What the agent saysWhat to do
The Underpass service isn't running on this computer.Start Underpass on the computer the agent runs on
agents work only on your own machines here; use the dashboard's agent connection for othersConnect the agent to the dashboard for servers and other people's machines
<machine> runs …; agents working from another machine need 0.8.7 or later there: update it firstUpdate the target machine
Nobody allowed it within 5m0s…Allow it sooner, in the dashboard