Documentation
Connect your harness
Quick setup
Install in one step
- Claude (claude.ai, Desktop) Customize → Connectors → Add custom connector, with this URL:
https://agentlefsmcp-server-dev.up.railway.app/mcp?ref=claude-custom-connector
Each one signs in through your browser on first use. No token to paste.
Choose your client, then follow the steps below. The plugin is selected where available.
- 1In a terminal, before starting Claude Code:
claude mcp add --transport http --scope user agentlefs https://agentlefsmcp-server-dev.up.railway.app/mcp - 2Sign in through the browser:
claude mcp login agentlefs - 3Start
claude;/mcpshows its tools. Already ranmcp addinside a session? Restart Claude Code first — that session will not see the new server.
Any other MCP client takes this URL directly — include the /mcp path.
https://agentlefsmcp-server-dev.up.railway.app/mcpStuck? Ask whoever runs this deployment, with what you tried and what came back.
Troubleshooting and headless setup
Agent-readable setup: /connect.md
A working connection can still be the wrong one — a different Organization under the same email, or a different email entirely. There is no error; the store just looks almost empty.
Organization (same email). Clear the client's stored authentication and authenticate again. On the consent page, pick the Organization from the dropdown.
Email. Clear the client's authentication and authenticate again. On the consent page click Use another account, sign in as the intended email, then Allow.
| Client | Steps | Status |
|---|---|---|
| Claude Code | /mcp → agentlefs → Clear authentication → Authenticate | Verified |
| Claude Desktop / Claude (web) | Disconnect the connector, then reconnect | Unverified |
| Codex CLI | Re-run codex mcp login agentlefs (or remove the server and re-add) | Unverified |
| Codex app | Settings → MCP servers → remove, then Add server / Authenticate | Unverified |
| Gemini CLI | /mcp auth agentlefs again; on consent, Use another account if the wrong email is shown | Unverified |
| ChatGPT (custom MCP) | Remove the plugin, add the server with OAuth again | Unverified |
| Cursor | MCP settings → clear auth → re-authenticate | Unverified |
For an email switch, use Use another account on consent after the client's clear/re-auth step. Afterwards, only a successful tool call proves the new principal — ask the agent to run browse with action: "folders".
Code with no browser to redirect (an agent your application runs, a scheduled job, CI) signs in without a key. On a machine, run afs-run login once and approve its code in the console; in GitHub Actions, trust the workflow on the folder's Access panel and set AGENTLEFS_TRUST. Then afs-run --agent @handle -- <command> starts an agent you added on that folder with a fifteen-minute token, renewed while it runs. Long-lived keys are no longer accepted.
Configure it with the launcher's stdio bridge instead of a URL and a token. It forwards each call to /mcp with the agent's current token, so nothing secret is in the client's settings:
{
"mcpServers": {
"agentlefs": {
"command": "afs-run",
"args": ["mcp", "--agent", "@your-agent"],
"env": { "AGENTLEFS_URL": "https://agentlefsmcp-server-dev.up.railway.app/mcp" }
}
}
}
