create_sandbox, run_command and get_url.
This page is about your agent using sandboxes. To have your agent write code that uses Fibre, give it these
docs instead: see use Fibre from your coding agent.
Before you start
The MCP server is part of the Fibre CLI. Install it and sign in once:Terminal
Add it to your agent
Run the command for your agent. Each one adds the server for all your projects; add--project to add it only for
the project in the current folder.
mcp add command for you, so the server is set up
exactly the way that agent expects. For Cursor, it adds the server to ~/.cursor/mcp.json and keeps every other
server in the file.
Start a new session of your agent afterwards: agents read their MCP servers when a session starts.
Any other agent
Most agents that support MCP read the same JSON block.fibre mcp config prints it for you to paste into the agent’s
settings. With --project, the command is plain fibre, which suits a settings file you commit and share:
Terminal
Output
Output
output
Add the Fibre skill
A skill is a short guide an agent reads when a task calls for it. The Fibre skill tells your agent when a sandbox is the better place to run something, the usual steps, and the rules that keep it cheap, such as deleting sandboxes when the work is done. It also covers the CLI, the TypeScript and Python SDKs and the HTTP API, for agents that write code against Fibre.Terminal
~/.agents/skills/fibre, which Codex, Cursor, OpenCode and VS Code read, and to
~/.claude/skills/fibre, which Claude Code reads. With --project, it goes into the current project instead, so you
can commit it for your team.
Try it
Ask your agent in plain words. For example:- “Run the test suite in a Fibre sandbox and tell me what fails.”
- “Try this pull request’s install script in a sandbox before I run it here.”
- “Start the app in a sandbox and give me a link I can send to the designer.”
- “Run these five benchmark configurations in parallel sandboxes and compare them.”
The tools
The tools that delete something are marked as destructive, and the ones that only read are marked read-only, so
your agent can treat them differently when it asks for your approval.
Long commands
Some agents stop waiting for a tool after about a minute. Sorun_command waits up to 45 seconds by default. If the
command is still running then, it keeps running in the sandbox, and the result tells the agent its ID. The agent
then reads the rest with get_command, from where it left off, until the command ends. For servers and watchers,
the agent starts the command in the background and gets the ID straight away.
Long output is cut in the middle, keeping the start and the end, so one noisy build does not fill the agent’s
context.
What the agent can reach
- Your files:
uploadanddownloadwork only inside the folder the agent started the server in, which is usually your project. A path outside it is refused. - Your account: the server can do what your signed-in key can do. To give an agent less, create a key with fewer
permissions (see API keys) and set it for the server only, as
FIBRE_API_KEYin the server’senvin your agent’s settings. - Your spending: sandboxes cost money while they run, and their storage while they sleep. Each one the agent
creates is kept until it is deleted, unless the agent gives it a lifetime, and the skill tells the agent to delete
sandboxes it no longer needs.
fibre listshows every sandbox you have.
Check that it works
fibre mcp is what your agent runs. You can start it yourself to see that it signs in and starts:
Terminal
fibre login again. To call the tools by hand, the MCP Inspector
starts the server and lists them in your browser:
Terminal