Skip to content

mlarkin00/agentic-minions-tools

Repository files navigation

agentic-minions-tools

A local MCP (Model Context Protocol) server that connects Claude Code, Claude Desktop, Gemini CLI, or any MCP-compatible client to the agentic-minions fleet running on GCP.

Prerequisites

  • gcloud CLI installed and authenticated
  • Access to the mslarkin-agents GCP project (or your own deployment)

Authenticate so the MCP server can obtain ID tokens for Cloud Run:

gcloud auth application-default login

Install

Gemini CLI (extension)

gemini extensions install https://github.com/mlarkin00/agentic-minions-tools

Then configure the gateway URL:

gemini extensions config agentic-minions "Gateway URL"
# enter: https://gateway-845186993936.us-central1.run.app

Pre-built binaries are downloaded automatically — no Go required.

Claude Code (plugin)

Add the marketplace and install the plugin:

/plugin marketplace add mlarkin00/agentic-minions-tools
/plugin install agentic-minions@agentic-minions

You'll be prompted for the gateway URL during setup:

Gateway URL: https://gateway-845186993936.us-central1.run.app

The plugin registers the MCP server globally — the agentic-minions tools are available in every Claude Code session.

Local development (auto-detected)

When working inside this repo, Claude Code picks up the committed .mcp.json automatically — no plugin install needed.

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "agentic-minions": {
      "command": "go",
      "args": ["run", "."],
      "cwd": "/path/to/agentic-minions-tools",
      "env": {
        "GATEWAY_URL": "https://gateway-845186993936.us-central1.run.app"
      }
    }
  }
}

Gemini CLI (manual MCP)

If you prefer manual MCP config over the extension, add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "agentic-minions": {
      "command": "go",
      "args": ["run", "."],
      "cwd": "/path/to/agentic-minions-tools",
      "env": {
        "GATEWAY_URL": "https://gateway-845186993936.us-central1.run.app"
      }
    }
  }
}

Pre-built binary (optional)

go build -o mcp-server .

Then replace "command": "go" and "args": ["run", "."] with "command": "/path/to/mcp-server" and "args": [].

Configuration

Environment variable Required Description
GATEWAY_URL Yes Base URL of the gateway service (Cloud Run)

Authentication is automatic via:

  1. Service account credentials (if GOOGLE_APPLICATION_CREDENTIALS is set)
  2. Application Default Credentials (from gcloud auth application-default login)
  3. gcloud CLI fallback (calls gcloud auth print-identity-token)

MCP Tools

Tool Description
create_session Start a new conversation with an agent role
send_message Send a prompt and receive the agent's response
list_sessions List active sessions for a user/role
delete_session Clean up a session

Example usage (Claude Code)

> create a session with the coding-design agent

> ask it to design a rate limiter in Go

> list my active sessions

> delete the session when done

Available agent roles

Role Description Backend
coding-design System design, code architecture, implementation, code review Claude Opus 4.6 via Vertex AI

Troubleshooting

"GATEWAY_URL environment variable is required" The MCP server requires GATEWAY_URL in its env block. Check your MCP config.

"gcloud auth print-identity-token failed" Run gcloud auth application-default login to refresh credentials.

"create session failed (403)" Your Google identity doesn't have access to the Cloud Run gateway. Verify with: gcloud auth print-identity-token | head -c 20 (should print a token).

"send message failed (502/504)" The backend agent pod may be starting up. GKE pods take ~30s on cold start. Retry after a moment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages