Connect an agent (MCP)
The MCP server gives an agent eleven tools to start, use and pause computers. Add it once per client with your API key.
The server is at https://mcp.foxdeploy.ai/mcp. It speaks the streamable HTTP transport, takes the API key as a bearer token in the Authorization header and nothing else, and answers protocol versions 2025-11-25, 2025-06-18 and 2025-03-26. Make the key on the API keys page first (Quick start, step 2).
Put the key in an environment variable rather than typing it into a command, so it stays out of your shell history:
export FOXDEPLOY_API_KEY=YOUR_KEYClaude Code
claude mcp add --transport http foxdeploy https://mcp.foxdeploy.ai/mcp \
--header "Authorization: Bearer $FOXDEPLOY_API_KEY"Then ask for what you want in plain words, for example "Start a computer, clone this repo into it and run the tests". Computers Claude Code starts show Claude Code under Created by in the dashboard.
Cursor
Add the server to ~/.cursor/mcp.json, or to .cursor/mcp.json in one project. Replace YOUR_KEY with the key, and keep that file out of version control.
{
"mcpServers": {
"foxdeploy": {
"url": "https://mcp.foxdeploy.ai/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}Any other MCP client
Any client that supports remote servers over streamable HTTP works with these three settings:
Transport: streamable HTTP
URL: https://mcp.foxdeploy.ai/mcp
Header: Authorization: Bearer YOUR_KEYThe server keeps no session between calls (no Mcp-Session-Id) and takes POST only. A client that can only start local servers over standard input cannot connect to it directly.
To see the server answer, list its tools by hand:
curl -s https://mcp.foxdeploy.ai/mcp \
-H "Authorization: Bearer $FOXDEPLOY_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'The tools
| Tool | What it does | Scope needed |
|---|---|---|
create_computer | Starts a computer from a warm snapshot and answers its id | Full, Create and exec |
list_computers | Lists the organisation's computers with state and size | Full, Read only |
exec | Runs a command and waits for it; a string runs in /bin/sh, a list runs as it is | Full, Create and exec |
write_file | Writes a text file; its folders must exist | Full, Create and exec |
read_file | Reads a text file | Full, Create and exec, Read only |
list_ports | Lists the TCP ports listening in the computer | Full, Create and exec, Read only |
open_preview | Publishes one listening port at a private HTTPS link | Full |
pause | Pauses to a snapshot; billing drops to storage only | Full, Create and exec |
resume | Resumes from the last snapshot or a named one | Full |
snapshot | Takes a named snapshot while the computer keeps running | Full |
destroy | Destroys the computer with its disk and snapshots | Full |
An agent sees only the tools its key's scope allows. A key with the scope Create and exec only suits an agent you want to keep from destroying anything or opening links to the outside.
What an agent should know
execoutput andread_filecontent are capped at 64 KiB each, with atruncatedflag when cut. Write long output to a file and read the part you need.- Every tool result ends with a line of the computer's cost so far, so the agent can reason about spend.
- A computer the agent forgets pauses by itself after 30 idle minutes.
- A start can be refused by a limit: the concurrent count, the largest size for your account, the monthly spend limit or empty credit. The tool result says which. Limits and quotas lists them.
- Each tool call is logged under the key that made it, in the computer's Logs tab under Agent calls.