Skip to main content

Claude Code Setup

terminal

Claude Code supports direct HTTP Streaming connections to Civic — no local bridge required. Follow the steps below to connect in a few minutes. Hub Bridge is also available as a fallback if needed.

Overview

Claude Code (Anthropic's command-line coding assistant) uses Model Context Protocol (MCP) to talk to external tools. Claude Code supports direct HTTP connections to Civic — no local bridge required.

Prerequisites

note

How authentication works

Civic supports two methods depending on how your client connects:

Client typeMethodHow it works
Interactive clients (Claude Desktop, Cursor, VS Code, Gemini CLI, Goose, Windsurf)OAuthWhen you connect, your client opens a browser window to app.civic.com. Sign in once — no manual token needed.
Automated agents (LangChain, custom scripts, OpenAI SDK, Anthropic SDK)Civic TokenGenerate a bearer token at app.civic.com → Install → MCP URL. Pass it as an Authorization: Bearer header.

See Get Your Credentials for full details.

Quick Setup

Claude Code supports two connection methods. Choose the one that works best for you:

Direct Connection via HTTP

Claude Code now supports direct HTTP connections to Civic without needing a local bridge.

  1. 1
    Register the Civic server with HTTP transport

    Run this command to add Civic via HTTP:

    claude mcp add --transport http civic https://app.civic.com/hub/mcp

    This configures Claude Code to connect directly to Civic over HTTP.

  2. 2
    Launch Claude Code

    Start the Claude CLI session:

    claude

    Tip: add the --debug flag if you want to watch MCP logs while connecting.

  3. 3
    Connect and sign in

    Inside the Claude session, run the MCP menu command:

    /mcp

    Select the civic server. A browser window opens to app.civic.com — sign in with your Civic account. Once complete, Claude confirms the server is connected and ready to use.

Claude CLI connected to the Civic MCP server

Verify the Connection

  • In Claude, run /mcp again to check that civic shows as connected
  • Test a Civic command (for example, request a tool list) to confirm the session is authorized

Troubleshooting

  • If the connection shows failed, re-run claude --debug to view detailed logs in your terminal
  • Ensure you have an active Civic session in your default browser; the MCP flow opens a new window for login
  • Delete and re-add the server with claude mcp remove civic followed by the setup command if you need to refresh credentials

Resources