Skip to main content
HydroGo
AI & MCP Agent GuideConnecting AI Agents

Connecting AI Agents

Step-by-step instructions to configure Google Antigravity, Cursor, Claude Desktop, and Claude Code with HydroGo MCP in under 30 seconds.

1. Generate MCP Config

When running as a daemon (hydro serve), HydroGo exposes MCP over Streamable HTTP (`2025-03-26`) & SSE at GET /api/v1/mcp and POST /api/v1/mcp. Generate ready-to-paste mcpServers JSON snippets directly from your project root:

BASH
# Local stdio config (picks up config.yaml automatically if present)
hydro mcp config --config config.yaml

# Remote / local HTTP Streamable MCP config (for Antigravity & hosted instances)
hydro mcp config --url http://localhost:8080/api/v1/mcp

2. Client Configuration

Google Antigravity

Antigravity automatically discovers AGENTS.md and .agents/skills/*/SKILL.md in any workspace initialized with hydro new or hydro agents init. Add HydroGo MCP globally in ~/.gemini/config/mcp_config.json using either Streamable HTTP (recommended while hydro serve is running) or stdio:

JSON
{
  "mcpServers": {
    "hydrogo": {
      "url": "http://localhost:8080/api/v1/mcp"
    }
  }
}

Or use local stdio transport (hydro mcp config --config /abs/path/to/config.yaml) and check Additional Options (...) > MCP Servers inside Antigravity to verify connected tools.

Cursor

Add the configuration to .cursor/mcp.json in your project root or configure in Cursor Settings > Features > MCP:

  • Name: hydrogo
  • Type: command
  • Command: hydro mcp

Claude Desktop

Add the hydrogo server block to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Claude Code (CLI)

Connect HydroGo directly from the command line:

BASH
claude mcp add hydrogo -- hydro mcp --config config.yaml

3. Project Instructions & Agent Skills (hydro agents init)

hydro new automatically writes AGENTS.md, CLAUDE.md (@AGENTS.md), .mcp.json, and 5 focused skill files under .agents/skills/ so coding agents follow your exact project layout, database dialect, CSRF rules, and validation CLI.

Add or refresh these files in any existing workspace:

BASH
hydro agents init --preset saas
# Writes AGENTS.md, CLAUDE.md, .mcp.json, and:
#   .agents/skills/hydrogo-schemas/SKILL.md
#   .agents/skills/hydrogo-api-and-sdk/SKILL.md
#   .agents/skills/hydrogo-auth-and-security/SKILL.md
#   .agents/skills/hydrogo-databases-and-deploy/SKILL.md
#   .agents/skills/hydrogo-mcp-and-testing/SKILL.md