Connect an agent
Copy-paste setup for Claude Code, Codex, Cursor, VS Code, Gemini CLI, Windsurf, ChatGPT and any MCP client, plus the Claude and OpenAI APIs, so an agent can edit in caissons, open pull requests and read issues and CI.
Any agent, one address
Sailfork is one MCP server. Every agent that speaks remote MCP connects to the same address, and the first time it needs access it opens the browser so you can approve it, choose read only or read and write, and limit it to some repositories.
https://sailfork.com/mcp Add one Sailfork server per client. Then ask the agent for work in plain words, such as "pick up the next ready issue in fenil/ocean-landing and open a pull request". It claims the issue, edits in a caisson on the server with no clone, runs the tests on Drydock and opens the pull request.
Coding agents and editors
claude.ai
Settings, Connectors, Add custom connector. Paste the URL, then sign in when asked.
https://sailfork.com/mcp Claude Code
Run this in a terminal. Claude Code opens the browser the first time it needs access.
claude mcp add --transport http sailfork https://sailfork.com/mcp Codex
Run these in a terminal. The second opens the browser to sign in.
codex mcp add sailfork --url https://sailfork.com/mcp
codex mcp login sailfork Cursor
Add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"sailfork": {
"url": "https://sailfork.com/mcp"
}
}
} VS Code
Add this to .vscode/mcp.json.
{
"servers": {
"sailfork": {
"type": "http",
"url": "https://sailfork.com/mcp"
}
}
} Gemini CLI
Run this in a terminal. Gemini CLI opens the browser to sign in the first time it connects.
gemini mcp add --transport http sailfork https://sailfork.com/mcp Windsurf
Add this to ~/.codeium/windsurf/mcp_config.json.
{
"mcpServers": {
"sailfork": {
"serverUrl": "https://sailfork.com/mcp"
}
}
} ChatGPT
Settings, Apps & Connectors, Advanced: turn on developer mode. Then Create, paste the URL and choose OAuth.
https://sailfork.com/mcp Any other MCP client
Give it https://sailfork.com/mcp as a remote server over streamable HTTP with OAuth. A client that only runs local servers uses the CLI's login over stdio instead. Install the CLI, run sailfork auth login, then point the client at the command sailfork mcp:
{ "mcpServers": { "sailfork": { "command": "sailfork", "args": ["mcp"] } } } In Claude Code that is one line:
claude mcp add sailfork -- sailfork mcp Skills and one setup prompt
The skills teach an agent the Sailfork way of working: claim the issue, post progress, edit in a caisson, ship the pull request. They install into Claude Code by default, and into any agent's skills folder with --dir. Installed copies in the standard folders follow the CLI when it upgrades; SAILFORK_NO_SKILL_UPDATE=1 stops that.
sailfork skill install
sailfork skill install --dir ~/.codex/skills Or paste this into any coding agent to have it install the CLI and the skills and walk through setup, stopping where a person is needed:
Read https://sailfork.com/llms.txt.
Install the sailfork CLI with `curl -fsSL https://sailfork.com/install | sh`, run `sailfork skill install`, then run `sailfork onboard status --json` and follow the next command it gives until setup is done. From an API
A model API connects to remote MCP servers itself, but it cannot open a browser to sign in, so it sends a personal access token instead:
sailfork token create agent-api --scopes repo:read,repo:write --expires 30d Give it only the scopes the job needs, and --repos owner/name to keep it to some repositories. A token with only repo:read sees only tools that change nothing.
Claude API
The MCP connector, in beta behind mcp-client-2025-11-20:
curl https://api.anthropic.com/v1/messages \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: mcp-client-2025-11-20" \
-H "content-type: application/json" \
-d '{
"model": "claude-opus-5-5",
"max_tokens": 16000,
"mcp_servers": [{
"type": "url",
"url": "https://sailfork.com/mcp",
"name": "sailfork",
"authorization_token": "'"$SAILFORK_TOKEN"'"
}],
"tools": [{ "type": "mcp_toolset", "mcp_server_name": "sailfork" }],
"messages": [{ "role": "user", "content": "What needs me on Sailfork today?" }]
}' The same request from the Python SDK:
import os
import anthropic
client = anthropic.Anthropic()
response = client.beta.messages.create(
model="claude-opus-5-5",
max_tokens=16000,
betas=["mcp-client-2025-11-20"],
mcp_servers=[{
"type": "url",
"url": "https://sailfork.com/mcp",
"name": "sailfork",
"authorization_token": os.environ["SAILFORK_TOKEN"],
}],
tools=[{"type": "mcp_toolset", "mcp_server_name": "sailfork"}],
messages=[{"role": "user", "content": "What needs me on Sailfork today?"}],
)
print(response.content) And from the TypeScript SDK:
import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic();
const response = await client.beta.messages.create({
model: 'claude-opus-5-5',
max_tokens: 16000,
betas: ['mcp-client-2025-11-20'],
mcp_servers: [
{
type: 'url',
url: 'https://sailfork.com/mcp',
name: 'sailfork',
authorization_token: process.env.SAILFORK_TOKEN,
},
],
tools: [{ type: 'mcp_toolset', mcp_server_name: 'sailfork' }],
messages: [{ role: 'user', content: 'What needs me on Sailfork today?' }],
});
console.log(response.content); OpenAI Responses API
The remote MCP tool. require_approval set to always returns each tool call for you to approve before it runs.
curl https://api.openai.com/v1/responses \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "content-type: application/json" \
-d '{
"model": "gpt-5",
"tools": [{
"type": "mcp",
"server_label": "sailfork",
"server_url": "https://sailfork.com/mcp",
"authorization": "'"$SAILFORK_TOKEN"'",
"require_approval": "always"
}],
"input": "What needs me on Sailfork today?"
}' Your own agent
Any MCP client library connects to https://sailfork.com/mcp with the token as Authorization: Bearer. The TypeScript and Python SDKs wrap the same operations as typed calls if you would rather skip MCP.
Narrow what it can do
Point any client at a narrower address to hand the agent fewer tools, which also keeps its context smaller:
| Address | Tools |
|---|---|
https://sailfork.com/mcp/readonly | Only tools that never change anything |
https://sailfork.com/mcp/x/repos,issues | Only the toolsets named |
https://sailfork.com/mcp/x/caissons,issues,pulls | Enough to fix an issue and open the pull request |
Every toolset and what it is for is on MCP server.
What an agent can and cannot do
- Merges and sandbox previews in an organization's repositories can come back
HELD FOR A PERSON. Nothing changes until someone approves it under Settings, Agent requests. See Agent permission model. - Pull requests, comments and issue leases an agent makes are marked as agent work and name the client.
- Lockdown hides the text of people who cannot push from the agent on public repositories, where a prompt injection would sit.
- Revoke a browser connection under Settings, Connected apps, and an API token under Settings, Keys and tokens.
When a call fails, the MCP troubleshooting table lists each error and its fix.