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.
- The app opens a page in your browser. Sign in to Underpass if asked.
- If your account has two-factor authentication, you're asked for your authenticator code first.
- 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
| Tool | What it does | Inputs | Returns |
|---|---|---|---|
list_workspaces | The workspaces you belong to, with your role in each. The first is your personal one | none | ID, name, role, and whether it's personal |
onboarding_status | Where you are in setting up (first device, second device, both online, reaching each other) and the one next step | workspace | The steps done, the next step, your machines and a link to the dashboard |
list_machines | Every machine in the workspace | workspace | Name, address, OS, online, owner, last seen, and whether it waits for approval or is signed out |
get_install_command | Install steps for a device, with a fresh auth key in them that works once, for 24 hours | os (macos, windows or linux), ephemeral (optional: remove the device when it goes offline), workspace | The steps, when the key expires, and since for wait_for_machine |
wait_for_machine | Waits until a machine that joined after since comes online (or waits for approval) | since, timeoutSeconds (5 to 240, default 90), workspace | The machine, or joined: false to call again |
approve_machine | Asks to let a machine waiting for device approval join. A person allows it in the dashboard first. Owners and admins only | machine, reason, workspace | A job to pass to wait_for_job |
check_connection | Whether two machines reach each other: direct, relay, or not yet, and what to do | from, to, workspace | The path, latency and last handshake, or the fix |
check_access | Whether 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 offline | from, to, port (optional), protocol (tcp or udp, default tcp), workspace | allowed, the ports allowed, and what to change when it isn't |
how_to_connect | Steps to use one machine from another, with their real names and OS | from, to, use (ping, ssh, files, remote_desktop or web), workspace | Ready-to-follow steps |
machine, from and to take a machine's name, full name, address or ID.
Looking after machines
| Tool | What it does | Inputs | Needs approval | Returns |
|---|---|---|---|---|
diagnose_machine | What'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 on | machine, workspace | No | A summary, each finding with its fix, and the facts (version, clock, connections, routes, tags) |
machine_info | Reads from the machine itself: OS and build, model, uptime, memory, disks and free space, clock and time zone, who's signed in, recent updates | machine, workspace | No | The details, after waiting up to 60 seconds for the machine (then wait_for_job) |
run_command | Runs a command as the Underpass service: PowerShell as SYSTEM on Windows, sh as root on macOS and Linux | machine, command (up to 8 KB), reason, timeoutSeconds (1 to 600, default 60), workspace | Yes | A job to wait for |
read_file | Reads a text file, up to 1 MB | machine, path, reason, workspace | Yes | A job to wait for |
write_file | Replaces a file's contents, or creates it, up to 1 MB of text. The person allowing it sees the new contents | machine, path, content, reason, workspace | Yes | A job to wait for |
wake_machine | Wakes a computer that's asleep or off: another online device on its network sends it the Wake-on-LAN packet. See Wake-on-LAN | machine, workspace | No | The devices sending the packet, or why none can |
restart_machine | Restarts an online computer, optionally into another of its systems once (dual boot). See Restart and dual boot | machine, into (optional: a system's name), reason, workspace | Yes | A job to wait for |
update_machine | Updates 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 only | machine, workspace | No | The versions, or why it can't (offline, older than 0.8.3) |
fixed_ip_status | The workspace's fixed IP: the address, whether its gateway works, the addresses that go through it, and whether the access rules let anyone use it | workspace | No | The status and anything to fix |
wait_for_job | Waits for a job until it's allowed or denied and the machine finishes | job, timeoutSeconds (5 to 240, default 120), workspace | No | The 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
| Tool | What it does | Inputs | Returns |
|---|---|---|---|
rename_machine | Gives a machine a new name, which is also its easy name. Members rename only their own | machine, name (1 to 63 characters), workspace | The machine |
invite_user | Asks 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 admin | email, role (member or admin, default member), reason, workspace | A job to pass to wait_for_job |
share_machine | Asks 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 only | machine, email, reason, workspace | A 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.
| Tool | What it does | Inputs | Needs approval |
|---|---|---|---|
list_machines | This computer and your other computers, with addresses and whether they're online, and what the workspace lets agents do | none | No |
machine_info | Same as the dashboard's | machine | No |
run_command | Same as the dashboard's, and returns the output when it's done | machine, command, reason, timeoutSeconds (1 to 600, default 60) | Yes |
read_file | Same as the dashboard's | machine, path, reason | Yes |
write_file | Same as the dashboard's | machine, path, content, reason | Yes |
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 says | Why | What 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 2FA | In 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 it | Turn 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 first | The machine is on an older version | Update it |
this workspace lets agents only look at machines; an owner or admin can allow more in Settings → AI agents | The workspace is on Look only | An 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 machines | An owner or admin changes Settings → AI agents |
agents are turned off on <machine> itself | Someone turned agents off on that machine | On the machine, run underpass agents on, or turn on AI agents in its app (Windows) |
<machine> is offline or signed out | Jobs need the machine online | Turn 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 tool | Ask an owner or admin |
… denied it. Don't retry it unchanged… | A person clicked Deny | Tell 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 minutes | Ask again when someone can answer, with the machine online |
too many agent requests are waiting or running in this workspace; answer some first | Up to 200 jobs are kept per workspace, and none of them has finished | Allow or deny the waiting ones |
No machine called "<name>". | The name doesn't match | The message lists the machines; or ask the agent to call list_machines |
From the local server you may also see:
| What the agent says | What 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 others | Connect 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 first | Update the target machine |
Nobody allowed it within 5m0s… | Allow it sooner, in the dashboard |