Skip to content
foxdeployDocsSign up

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.

View as Markdown

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:

Shell
export FOXDEPLOY_API_KEY=YOUR_KEY

Claude Code

Shell
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.

JSON
{
  "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:

Text
Transport: streamable HTTP
URL: https://mcp.foxdeploy.ai/mcp
Header: Authorization: Bearer YOUR_KEY

The 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:

Shell
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

ToolWhat it doesScope needed
create_computerStarts a computer from a warm snapshot and answers its idFull, Create and exec
list_computersLists the organisation's computers with state and sizeFull, Read only
execRuns a command and waits for it; a string runs in /bin/sh, a list runs as it isFull, Create and exec
write_fileWrites a text file; its folders must existFull, Create and exec
read_fileReads a text fileFull, Create and exec, Read only
list_portsLists the TCP ports listening in the computerFull, Create and exec, Read only
open_previewPublishes one listening port at a private HTTPS linkFull
pausePauses to a snapshot; billing drops to storage onlyFull, Create and exec
resumeResumes from the last snapshot or a named oneFull
snapshotTakes a named snapshot while the computer keeps runningFull
destroyDestroys the computer with its disk and snapshotsFull

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

  • exec output and read_file content are capped at 64 KiB each, with a truncated flag 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.