Documentation

Connect an agent

Helen's Foundry exposes your whole workspace over the Model Context Protocol (MCP), so an agent can read the strategy behind a ticket before it writes a line of code. Point any MCP client at your workspace URL and authenticate.

Your workspace endpoint

Use the workspace-scoped MCP URL. It limits every call to this workspace. Settings > MCP clients shows the URL for your active workspace. The shared URL /mcp works across all your workspaces: the agent calls workspaces_list, then passes workspace_id on each tool call. A workspace URL or an API key stays pinned to one workspace.

https://hf.dev/mcp/w/<workspace-id>

Authentication

API key

Best for CI, scripts, and server-to-server agents.

A workspace admin creates a key under Settings > API keys. Send it as a bearer token. Keys start with hfk_ and are scoped to one workspace.

OAuth

Best for interactive clients such as Claude Code, VS Code, and Codex.

Add the workspace URL without an Authorization header. Most clients open the browser when they connect: sign in to Helen's Foundry and allow the client. Codex requires one codex mcp login helens-foundry command first. The client then stores the resulting token.

Configure your client

Copy the workspace-specific configuration from Settings > MCP clients. The examples below use <workspace-id> only to show the configuration shape; use the ready-made snippet instead of replacing it manually. These examples use OAuth, so do not add an Authorization header.

Claude Code

  1. 1. Create or update .mcp.json (project root).
  2. 2. Paste this workspace-scoped configuration:
    {
      "mcpServers": {
        "<workspace-name> (<workspace-id>)": {
          "type": "http",
          "url": "https://hf.dev/mcp/w/<workspace-id>"
        }
      }
    }
  3. 3. Start the client, complete the browser sign-in, and verify the connection: Run claude in the project, find the "<workspace-name> (<workspace-id>)" server after OAuth completes, and call workspace_summary to verify its workspace name and ID.

VSCode / Copilot

  1. 1. Create or update .vscode/mcp.json.
  2. 2. Paste this workspace-scoped configuration:
    {
      "servers": {
        "<workspace-name> (<workspace-id>)": {
          "type": "http",
          "url": "https://hf.dev/mcp/w/<workspace-id>"
        }
      }
    }
  3. 3. Start the client, complete the browser sign-in, and verify the connection: Open the Copilot Chat panel and confirm "<workspace-name> (<workspace-id>)" appears in the MCP server list.

Codex

  1. 1. Create or update .codex/config.toml.
  2. 2. Paste this workspace-scoped configuration:
    [mcp_servers."<workspace-name> (<workspace-id>)"]
    url = "https://hf.dev/mcp/w/<workspace-id>"
  3. 3. Start the client, complete the browser sign-in, and verify the connection: Run codex mcp login with the connection name shown above to complete OAuth. Then start a Codex session and call workspace_summary to verify the workspace name and ID.

Tool reference

Browse the MCP tool reference to inspect every registered tool, its purpose, and its parameters. It is generated from the same tool registry clients receive, so the reference always matches the tools the server exposes.

Access and permissions

The workspace in your MCP URL is the access boundary. After OAuth or API-key authentication, the client can read that workspace and call the write tools exposed by the MCP server, including tools that create, update, link, or reconcile artifacts. Only connect clients you trust with that access.

The GitHub App is separate from MCP. It requests read access to repository contents and metadata, plus write access to checks, issues, and pull requests. Helen uses those permissions to inspect PR diffs and context, post check runs and review feedback, and manage its PR labels. The app does not have permission to push commits or change repository contents.

What your agent can do

Once connected, an agent can search and read artifacts, read the context chain of a ticket, see what is ready to work on, and propose changes. Everything stays in the workspace you pinned. Start it with a workspace summary, then have it read the context chain of whatever it is about to touch.