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-in | Yes. It identifies itself with a Client ID Metadata Document |
| Server address | https://onefold.eitozx.com/api/mcp |
| Configuration | claude mcp add, or a .mcp.json file in the project |
Add the server
claude mcp add --transport http onefold https://onefold.eitozx.com/api/mcpBy 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:
{
"mcpServers": {
"onefold": {
"type": "http",
"url": "https://onefold.eitozx.com/api/mcp"
}
}
}Sign in
claude mcp login onefoldRun 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| Status | Meaning |
|---|---|
✔ Connected | The server accepted the client |
! Needs authentication | Sign-in has not completed, or the connection was disconnected |
✘ Failed to connect | The 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:
{
"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 onefoldlogout 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 loginneeds an interactive terminal.- The
${…}form in.mcp.jsonis described in Claude Code's documentation and is not checked here. For a remote server'surlandheaders, Claude Code leaves a variable it recognises as one of its own or a common credential (such asNPM_TOKEN) empty; a name of your own, such asONEFOLD_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.