Skip to content
Search docs
Search the docs and jump to the section
Sign in

MCP

An assistant that speaks MCP can start and follow work in your Werker, at /mcp on its address. There is nothing to install.

Connecting

Make a key in Settings → API keys (API keys) and keep it in an environment variable, such as WERKER_API_KEY.

Claude Code, in a project's .mcp.json:

{
	"mcpServers": {
		"werker": {
			"type": "http",
			"url": "https://werker.example.com/mcp",
			"headers": { "Authorization": "Bearer ${WERKER_API_KEY}" }
		}
	}
}

Codex, in ~/.codex/config.toml:

[mcp_servers.werker]
url = "https://werker.example.com/mcp"
bearer_token_env_var = "WERKER_API_KEY"

What it can do

The assistant writes a short script instead of calling one tool at a time.

ToolWhat it does
docsShows the functions a script can call
readRuns a script that only reads
writeRuns a script that can start, change and stop work
  • write can spend money.

  • A key that only reads is not offered write. Answering a run needs a key that may answer for you.

  • What a script did before it failed stays done.

  • A script has 30 seconds, so the assistant starts work and looks again later.

What has been tested

On one machine: Claude Code listing runs and starting a saved agent, and Codex counting runs. Cursor has not been tried. A client that only signs in with OAuth, such as ChatGPT's connectors, cannot connect yet.

This page as markdown apps/site/src/content/docs/mcp.md