agentleFS

Documentation

Connect your harness

Quick setup

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.

  1. 1In a terminal, before starting Claude Code:
    claude mcp add --transport http --scope user agentlefs https://agentlefsmcp-server-dev.up.railway.app/mcp
  2. 2Sign in through the browser:
    claude mcp login agentlefs
  3. 3Start claude; /mcp shows its tools. Already ran mcp add inside 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/mcp
Claude Code MCP documentation

Stuck? Ask whoever runs this deployment, with what you tried and what came back.

Troubleshooting and headless setup

Agent-readable setup: /connect.md

Connected, but the wrong account or Organization

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.

ClientStepsStatus
Claude Code/mcp → agentlefs → Clear authentication → AuthenticateVerified
Claude Desktop / Claude (web)Disconnect the connector, then reconnectUnverified
Codex CLIRe-run codex mcp login agentlefs (or remove the server and re-add)Unverified
Codex appSettings → MCP servers → remove, then Add server / AuthenticateUnverified
Gemini CLI/mcp auth agentlefs again; on consent, Use another account if the wrong email is shownUnverified
ChatGPT (custom MCP)Remove the plugin, add the server with OAuth againUnverified
CursorMCP settings → clear auth → re-authenticateUnverified

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".

Agents with no browser

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.

Give each agent its own identity. Add it on the folder it works in (Access, Add an agent). Its access is yours, cut down to that folder, which keeps the audit trail attributable and lets you retire one agent without touching the others.
A client that only sends a static header

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" }
    }
  }
}
Every call is authorized and audited. Reads are filtered by the caller's grants — on the file, or on a folder above it — before results leave the server.