Features / MCP server and agent skill
Sandboxes as tools for your agent.
The pols CLI includes an MCP server. Your client starts it with pols mcp and talks to it over stdin and stdout, and the agent can create, fork and delete sandboxes, run commands, move files, use the desktop and publish sites. The pols skill teaches agents that use the CLI directly.
€10 of usage for 30 days · No credit card
curl -fsSL https://pols.so/install.sh | sh- pols mcp runs on your machine, started by your client
- stdio
- Clients with documented setup: Claude Code, Cursor and Codex
- 3
- The longest pols signup waits for the email approval
- 15 min
A tool turret on a gantry
The agent works through one tool at a time. The turret turns the tool it needs to the bottom: create a sandbox, run a command in it, click on its desktop. Five stations carry blank caps, because egress policies, templates, published ports, desktop links and SSH have no MCP tool. The card on the carriage is the skill.
- The agent skillOne SKILL.md that teaches an agent the CLI, the MCP tools, egress, ports, sites, quotas and error codes. pols skill install puts it in place, and each CLI release rewrites it to match.
- Not over MCPEgress policies, templates, published ports, desktop links and SSH have no tool. Use pols new --egress, pols template, pols host, pols desktop and pols ssh.
- The toolsCreate, stop, resume, fork, resize and delete sandboxes, run commands, read and write files, drive the desktop and Chrome over CDP, and publish sites. Lifecycle tools wait until the sandbox has arrived.
- pols mcpThe server ships with the CLI. Your client starts it on your machine and talks to it over stdin and stdout; it calls the pols API with your key.
- Sign-up by emailWithout a key, account_signup emails the person a link and a code. They approve with one click, and account_signup_wait stores the new key like pols login does. Nothing is created before they approve.
- The agentClaude Code, Cursor, Codex, or any client that runs stdio servers, with the command pols mcp. The key comes from pols login or POLS_API_KEY, never from its configuration file.
- The sandboxNamed by ID or name. A key limited to one sandbox lets an agent work there and nowhere else: tools that act on the org answer forbidden.
- The gantrysandbox_exec returns at most 512 KiB per output stream. A result over the MCP size limit, like a very long list, comes back as an error; use the CLI or the API for those.
Set it up once
Every client runs the same command, pols mcp, with the key that pols login stored, so the client's configuration holds no secret. If Claude Code is installed, the install script offers to register the server and install the skill for you.
Without a key, the agent can sign the person up or log them in by email: pols sends them a link and a code, they approve with one click, and the agent stores the new key. Nothing is created before they approve.
# Claude Code
$ claude mcp add --scope user pols -- pols mcp
# Codex
$ codex mcp add pols -- pols mcp
# the skill, for agents that use the CLI directly
$ pols skill install
# no key yet: log in by approving an email
$ pols signup --email ada@example.comMCP server or skill?
| MCP server | Agent skill | |
|---|---|---|
| For | Clients that prefer tools | Agents with a shell that drive the pols CLI |
| What it is | pols mcp, started by the client over stdio | One SKILL.md, installed with pols skill install |
| Covers | Sandboxes, commands, files, Linux users, desktop and Chrome, sites and their domains, timeline, vault names | The whole CLI, the MCP tools, egress, ports, sites, quotas and error codes |
| Not included | Egress policies, templates, published ports, desktop links and SSH | An API key: run pols login or set POLS_API_KEY |
They work well together. The skill ships inside the CLI and is rewritten to match whenever a new CLI release runs.
€10 of usage for 30 days · No credit card
Questions
Does it work with clients other than Claude Code, Cursor and Codex?
Yes, with any client that runs stdio servers: the command is pols with the argument mcp. Desktop apps often do not see your shell's PATH; then use the full path that command -v pols prints.
Can I keep an agent to one sandbox?
Yes. Give it an API key limited to that sandbox, made with Create key for this sandbox on the sandbox's page. The tools for that sandbox work as usual, while sandbox_create, sandbox_fork, sandbox_delete, vault_list and the site_* tools answer forbidden.
What happens with large outputs?
sandbox_exec returns up to 512 KiB per output stream and says when it cut one, and file_read reads up to 1 MiB. A result over the MCP response size limit, like a very large screenshot or sandbox list, comes back as an error; use the CLI or the API for those.
Can an agent run up costs?
Creating, forking and resuming start billed running time. sandbox_create and sandbox_fork take ttl_seconds, so a sandbox the agent forgets is deleted on its own. Ask the agent to stop or delete sandboxes it no longer needs.
How long do the lifecycle tools wait?
Until the sandbox has arrived, up to wait_timeout_seconds, which is 300 by default. Set no_wait to return at once and check with sandbox_get.
Start with one machine.
Install the CLI, sign up, and give your agent somewhere to work.
curl -fsSL https://pols.so/install.sh | sh€10 of usage for 30 days · No credit card