AgentGo logo

AgentGo

Runs Codex and Claude Code locally through MCP, with workspace browsing, run tracking, and session continuation.

Install AgentGo

Run the project’s own setup commands, in order.

Setup steps from the project

AgentGo installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g agentgo-mcp
    
  2. 2. Check the setup
    agentgo doctor
    
  3. 3. Configure
    agentgo workspace add-folder ~/code
    
  4. 4. Configure
    agentgo workspace add notes ~/Documents/notes
    
  5. 5. Start the server
    agentgo start
    
  6. 6. Start the server
    agentgo restart
    

Overview

AgentGo MCP server connects an MCP client to locally installed Codex and Claude Code command-line agents. It exposes workspace browsing, file search, agent execution, run monitoring, output retrieval, cancellation, and session continuation tools. The server can run over Streamable HTTP through a Cloudflare tunnel for remote access or over stdio for a local client. Reach for it when an assistant needs to delegate coding tasks to agents that already have access to your projects and CLI logins.

Use cases

  • Delegate coding tasks to local Codex or Claude Code sessions
  • Inspect approved project files before starting an agent run
  • Poll asynchronous coding runs and retrieve their output
  • Continue a finished agent session with a follow-up prompt
  • Access local coding agents from a remote MCP client

Key features

  • Runs Codex and Claude Code through MCP
  • Supports Streamable HTTP and stdio transports
  • Provides workspace file browsing and ripgrep search
  • Tracks, cancels, and continues agent runs
  • Supports Cloudflare Quick Tunnels and custom tunnel setups
  • Uses existing local CLI logins without API keys

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 48d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How AgentGo works

What AgentGo does

AgentGo MCP server lets an MCP-connected assistant inspect approved project workspaces and delegate coding tasks to Codex or Claude Code running on the same computer. The agents use the local files, logins, and Git credentials available to the user. AgentGo does not request API keys; it relies on the existing CLI installations and their authenticated sessions.

Workspaces are explicitly added by folder or as individual paths. A folder-based workspace configuration turns each eligible child folder into a separate project, while hidden directories are skipped. Workspace changes take effect on subsequent requests without restarting the server.

How it works

For remote access, AgentGo starts an MCP endpoint behind a Cloudflare tunnel and prints the endpoint URL plus an Authorization bearer value. The default Quick Tunnel does not require a Cloudflare account, but its address can change after a restart or reconnection. A fixed Cloudflare hostname or a user-managed tunnel can be configured instead.

For local clients, AgentGo can run as a stdio MCP process. This mode avoids the tunnel and password, but active runs end if the client closes the process. The background server and stdio mode cannot share a state directory at the same time unless separate directories are assigned.

Starting an agent run returns task and session identifiers immediately. The client can poll status, retrieve output, cancel the task, list historical runs, or send a follow-up prompt to the same session.

Setup and configuration

AgentGo requires macOS or Linux, Node.js 24.13 or newer, and at least one of the codex and claude commands installed and logged in. ripgrep must be available on PATH for file search tools. A cloudflared installation is needed for tunnel mode; AgentGo can download the official release when started with the relevant approval option.

Install the package globally, then run the diagnostic command to check agent, search, and tunnel dependencies. Add workspaces with the workspace commands before starting the daemon. The first background start creates a password, which can later be replaced with the token rotation command. status, stop, and restart manage the background process, and --json makes command output suitable for scripts.

The server can listen locally without a tunnel, use a Cloudflare Quick Tunnel, use a custom Cloudflare-managed domain, or connect to a tunnel token supplied in a file. A custom state directory is available for stdio mode.

Tools and capabilities

The AgentGo MCP server provides 13 tools in two groups:

  • Workspace inspection: listWorkspaces, listDirectory, readFile, globFiles, and grepFiles.
  • Agent operations: getAgentCapabilities, getSupportedModels, startAgentRun, getAgentRunStatus, getAgentRunOutput, listAgentRuns, cancelAgentRun, and continueAgentSession.

The inspection tools can list directories, read text files, find paths by pattern, and search file contents with ripgrep. Agent tools expose installed providers, supported models and options, asynchronous run state, output, cancellation, and follow-up prompts. An idempotency key can be supplied when creating a run.

Limitations and notes

AgentGo MCP server gives remote clients access to agents running with the user's permissions. Codex uses its workspace-write sandbox and automatic review, while Claude Code runs in automatic mode with permission prompts disabled. Neither agent has a person available to answer an interactive question; a Codex run that requires input fails with INPUT_REQUIRED.

The browsing tools stay within the selected workspace, do not follow symlinks, and block sensitive paths and files such as .env, .ssh, .aws, .git, .npmrc, and private keys. Searches operate on one workspace at a time, follow .gitignore, skip hidden files and common dependency or build directories, and are limited to 100,000 files. Agents may have broader access subject to their own sandbox and review rules.

Stopping the server interrupts active runs. Changes already made by an agent remain, and interrupted work is not automatically resumed. Anyone with the AgentGo password can invoke the available agent actions, so the password and workspace selection require careful access control.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about AgentGo

AgentGo is an MCP server that connects MCP clients to locally installed Codex and Claude Code command-line agents. Its main tools browse approved workspaces, search and read files, start and monitor coding runs, retrieve output, cancel runs, list past runs, and continue agent sessions with follow-up prompts.

Install it with `npm install -g agentgo-mcp`, then run `agentgo doctor` to check Node.js, Codex, Claude Code, ripgrep, and cloudflared requirements. Add project folders with `agentgo workspace add-folder`, then start the background server with `agentgo start`.

Yes. Configure the MCP client to launch `agentgo stdio` directly, or start the background server with local listening enabled. Stdio mode uses no tunnel or password, but active runs stop when the client disconnects.

Yes. Cursor can connect to AgentGo as an MCP server using its Streamable HTTP endpoint or a local stdio configuration. For remote mode, provide the URL printed by `agentgo start` and the corresponding `Authorization: Bearer` value.

Add the project with `agentgo workspace add-folder <folder>` or register one path with `agentgo workspace add <name> <path>`. `agentgo workspace list` shows the projects available to the agents, and workspace changes apply without restarting the server.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgentGo AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agentgo?style=directory)](https://allmcps.com/mcp/agentgo)
HTML Embed
<a href="https://allmcps.com/mcp/agentgo"><img src="https://allmcps.com/api/badge/agentgo?style=directory" alt="AgentGo on AllMCPs" /></a>