Gemini CLI

Add the 1health MCP to Google Gemini CLI via settings.json.

Option 1: CLI Command

Run this command to add the 1health MCP:

bash
gemini mcp add --transport http 1health-docs https://mcp.dev.1hdev.io/mcp

Option 2: Edit settings.json

User settings: ~/.gemini/settings.json. Project settings: .gemini/settings.json in the project root.

Add the following to your settings.json file:

json
{
  "mcpServers": {
    "1health-docs": {
      "httpUrl": "https://mcp.dev.1hdev.io/mcp"
    }
  }
}

Transport Types

Gemini CLI supports three transport types:

  • httpUrl — HTTP streaming (recommended for 1health)
  • url — Server-Sent Events (SSE)
  • command — Local stdio process

Optional Settings

  • timeout — Request timeout in ms (default: 600000)
  • trust — Skip tool confirmations (default: false)
  • includeTools — Allowlist specific tools
  • excludeTools — Blocklist specific tools

What You Can Ask

  • "How do I authenticate with the 1health API?"
  • "Show me endpoints for patient management"
  • "Generate code to call the provider search endpoint"
  • "What's the workflow for placing lab orders?"