Connect Claude Code

Add the onefold MCP server to Claude Code and sign in.

Claude Code signs in. There is nothing to register and no secret to paste.

Supports sign-inYes. It identifies itself with a Client ID Metadata Document
Server addresshttps://onefold.eitozx.com/api/mcp
Configurationclaude mcp add, or a .mcp.json file in the project

Add the server

claude mcp add --transport http onefold https://onefold.eitozx.com/api/mcp

By default the server is added for you, in the current project. Add --scope user to have it in every project, or --scope project to write it to .mcp.json so everyone working on the project gets it too:

.mcp.json
{
  "mcpServers": {
    "onefold": {
      "type": "http",
      "url": "https://onefold.eitozx.com/api/mcp"
    }
  }
}

Sign in

claude mcp login onefold

Run this in an interactive terminal. It does not complete from a script or a pipe. Inside a Claude Code session, /mcp starts the same sign-in.

Your browser opens on the onefold sign-in page. Sign in, then choose Authorize on the consent screen, which names Claude Code and lists what it is asking for. The terminal prints Authenticated with "onefold".

Verify

claude mcp get onefold
StatusMeaning
✔ ConnectedThe server accepted the client
! Needs authenticationSign-in has not completed, or the connection was disconnected
✘ Failed to connectThe server refused the request. With a credential set, HTTP 401 means it is wrong, expired or revoked

Then ask Claude Code to list your onefold applications.

Use an agent credential instead

For a machine where nobody can open a browser, create an agent credential and pass it as a header:

claude mcp add --transport http onefold https://onefold.eitozx.com/api/mcp \
  --header "Authorization: Bearer eitozx_dev_YOUR_CREDENTIAL"

With a header set, Claude Code does not fall back to sign-in when the credential is refused.

In .mcp.json, read the credential from the environment so the file can be committed:

.mcp.json
{
  "mcpServers": {
    "onefold": {
      "type": "http",
      "url": "https://onefold.eitozx.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${ONEFOLD_MCP_CREDENTIAL}"
      }
    }
  }
}

Disconnect and reconnect

Choose Disconnect on the Claude Code card on the Agents tab of an application it reaches. claude mcp get onefold then reports Needs authentication. Run claude mcp login onefold to connect again; you are asked to approve it again.

To clear the client's side:

claude mcp logout onefold
claude mcp remove onefold

logout clears the stored token, and remove forgets the server; run them in that order, since removing a server first leaves its stored token behind. To end the connection on onefold, choose Disconnect.

Limitations

  • claude mcp login needs an interactive terminal.
  • The ${…} form in .mcp.json is described in Claude Code's documentation and is not checked here. For a remote server's url and headers, Claude Code leaves a variable it recognises as one of its own or a common credential (such as NPM_TOKEN) empty; a name of your own, such as ONEFOLD_MCP_CREDENTIAL, expands as written.

Status: verified with Claude Code 2.1.289

Sign-in through consent, a tool call, the client listed in the portal, and Needs authentication after Disconnect. An agent credential passed with --header: connection, a tool call, and HTTP 401 after the agent is revoked. The documentation server: connection and a tool call. Commands checked against Claude Code's MCP documentation on 2026-11-25.

On this page