MCP gateway / Connect

Add Lug to any AI agent

Lug is one MCP URL, such as https://yourname.lug.dev/work, and every client below takes it. Install Corsair from a client's own directory, or paste your URL into its config. After you claim your URL, Corsair Hub shows the same steps with your URL and key filled in.

Install from a directory

These install Corsair's MCP server, https://mcp.corsair.dev/mcp. When you sign in, Corsair asks which of your Lug paths the client gets.

Claude Code

claude plugin marketplace add corsairdev/agent-plugins
claude plugin install corsair@corsair
  1. Run /mcp in Claude Code to sign in and pick a path. The plugin also adds Corsair's skills.
corsairdev/agent-plugins (opens in a new tab)

Paste your URL into any client

Clients that sign in send you to Corsair, and you allow that one path. Clients that can't sign in send the path's API key in a header; it's on the path's page in Corsair Hub. A secret URL connects with neither, so treat it like a password.

Claude app

Signs in with Corsair
Server URL
https://yourname.lug.dev/work
  1. In Claude, open Customize → Connectors → Add custom connector.
  2. Name it Corsair, paste the URL, and add it.
  3. You'll be sent to Corsair to sign in and allow this one link.

On a Team or Enterprise plan, an owner adds connectors under Organization settings.

Claude Code

Sign-in or API key
Run in a terminal
claude mcp add --transport http corsair https://yourname.lug.dev/work --header "Authorization: Bearer <your API key>"

Or leave off --header, then run /mcp in Claude Code to sign in.

  1. Add --scope user to have it in every project.

ChatGPT

Signs in with Corsair
MCP server URL
https://yourname.lug.dev/work
  1. In ChatGPT, open Plugins, select +, then Add custom MCP server, and paste the URL.
  2. Choose OAuth. You'll be sent to Corsair to sign in and allow this one link.

Cursor

Sign-in or API key
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "corsair": {
      "url": "https://yourname.lug.dev/work"
    }
  }
}

opencode

Sign-in or API key
Add to opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "corsair": {
      "type": "remote",
      "url": "https://yourname.lug.dev/work",
      "oauth": false,
      "headers": {
        "Authorization": "Bearer <your API key>"
      }
    }
  }
}

Or leave out oauth and headers, then run opencode mcp auth corsair to sign in.

Hermes Agent

Sign-in or API key
Add to ~/.hermes/config.yaml
mcp_servers:
  corsair:
    url: "https://yourname.lug.dev/work"
    headers:
      Authorization: "Bearer <your API key>"

Or swap headers for auth: oauth and run hermes mcp login corsair to sign in.

Codex CLI

Sign-in or API key
Add to ~/.codex/config.toml
[mcp_servers.corsair]
url = "https://yourname.lug.dev/work"
http_headers = { "Authorization" = "Bearer <your API key>" }

Or run codex mcp add corsair --url https://yourname.lug.dev/work, then codex mcp login corsair to sign in.

VS Code

Sign-in or API key
Add to .vscode/mcp.json
{
  "servers": {
    "corsair": {
      "type": "http",
      "url": "https://yourname.lug.dev/work",
      "headers": {
        "Authorization": "Bearer <your API key>"
      }
    }
  }
}

Or run “MCP: Add Server” → HTTP and paste the URL. VS Code signs you in.

Windsurf

API key in a header
Add to mcp_config.json (Cascade → MCPs)
{
  "mcpServers": {
    "corsair": {
      "serverUrl": "https://yourname.lug.dev/work",
      "headers": {
        "Authorization": "Bearer <your API key>"
      }
    }
  }
}

Gemini CLI

Sign-in or API key
Run in a terminal
gemini mcp add --transport http --header "Authorization: Bearer <your API key>" corsair https://yourname.lug.dev/work

Or leave off --header and run /mcp auth corsair to sign in.

Kiro

Sign-in or API key
Add to ~/.kiro/settings/mcp.json
{
  "mcpServers": {
    "corsair": {
      "url": "https://yourname.lug.dev/work",
      "headers": {
        "Authorization": "Bearer <your API key>"
      }
    }
  }
}

Or leave out headers and Kiro signs you in.

Copilot coding agent

API key in a header
Repository → Settings → Copilot → MCP configuration
{
  "mcpServers": {
    "corsair": {
      "type": "http",
      "url": "https://yourname.lug.dev/work",
      "headers": {
        "Authorization": "Bearer $COPILOT_MCP_CORSAIR_KEY"
      },
      "tools": [
        "*"
      ]
    }
  }
}
  1. Save the API key as an environment secret.Name: COPILOT_MCP_CORSAIR_KEYValue: <your API key>

The coding agent can't sign in, so it always needs the key.

Zed

Sign-in or API key
Add to Zed settings
{
  "context_servers": {
    "corsair": {
      "url": "https://yourname.lug.dev/work",
      "headers": {
        "Authorization": "Bearer <your API key>"
      }
    }
  }
}

Or leave out headers and Zed signs you in.

Cline

API key in a header
MCP Servers → Remote Servers → edit config
{
  "mcpServers": {
    "corsair": {
      "type": "streamableHttp",
      "url": "https://yourname.lug.dev/work",
      "headers": {
        "Authorization": "Bearer <your API key>"
      }
    }
  }
}

Amp

Sign-in or API key
Add to Amp's settings.json
{
  "amp.mcpServers": {
    "corsair": {
      "url": "https://yourname.lug.dev/work",
      "headers": {
        "Authorization": "Bearer <your API key>"
      }
    }
  }
}

Or leave out headers and Amp signs you in when it starts.

Goose

Signs in with Corsair
Server URL
https://yourname.lug.dev/work
  1. Run goose configure → Add Extension → Remote Extension (Streamable HTTP). Or in the app, open Extensions → Add custom extension.
  2. You'll be sent to Corsair to sign in and allow this one link.

GitHub Copilot CLI

API key in a header
Run in a terminal
copilot mcp add --transport http corsair https://yourname.lug.dev/work --header "Authorization: Bearer <your API key>"

Roo Code

API key in a header
Add to Roo Code's MCP settings
{
  "mcpServers": {
    "corsair": {
      "type": "streamable-http",
      "url": "https://yourname.lug.dev/work",
      "headers": {
        "Authorization": "Bearer <your API key>"
      }
    }
  }
}

LibreChat

Sign-in or API key
Add to librechat.yaml
mcpServers:
  corsair:
    type: streamable-http
    url: https://yourname.lug.dev/work
    headers:
      Authorization: "Bearer <your API key>"
  1. Restart LibreChat to load it.

LM Studio

API key in a header
Program → Install → Edit mcp.json
{
  "mcpServers": {
    "corsair": {
      "url": "https://yourname.lug.dev/work",
      "headers": {
        "Authorization": "Bearer <your API key>"
      }
    }
  }
}

Needs LM Studio 0.3.17 or later.

Amazon Q Developer

Sign-in or API key
Server URL
https://yourname.lug.dev/work
  1. In the Amazon Q panel, open the MCP configuration and add an http server with this URL.
  2. Add the header.Header: Authorization: Bearer <your API key> Or leave it out and sign in when the browser opens.

Raycast

Sign-in or API key
Server URL
https://yourname.lug.dev/work
  1. Run the Install MCP Server command and paste the URL.
  2. Add the HTTP header.Header: Authorization: Bearer <your API key> Or pick OAuth → Dynamic and sign in.

Warp

Sign-in or API key
Settings → Agents → MCP servers → Add
{
  "corsair": {
    "url": "https://yourname.lug.dev/work",
    "headers": {
      "Authorization": "Bearer <your API key>"
    }
  }
}

Continue

API key in a header
Server URL
https://yourname.lug.dev/work
  1. Add a streamable-http MCP server in your Continue config with this URL.
  2. Send the key in requestOptions.headers.Authorization: Bearer <your API key>

JetBrains AI Assistant

Secret URL
Secret URL
<your secret URL, from Corsair Hub>
  1. In the IDE, open Settings → Tools → AI Assistant → Model Context Protocol → Add → HTTP and paste the URL.

JetBrains doesn't document custom headers or sign-in, so use the secret URL. Treat it like a password.

Cherry Studio

Secret URL
Secret URL
<your secret URL, from Corsair Hub>
  1. In Cherry Studio, open Settings → MCP → Add server → Streamable HTTP and paste the URL.

Cherry Studio's own docs don't cover headers or sign-in, so use the secret URL. Treat it like a password.

In your own code

Agent frameworks connect with the path's API key, kept in an environment variable.

Mastra

API key in a header
In your code
import { MCPClient } from "@mastra/mcp";

const corsair = new MCPClient({
  servers: {
    corsair: {
      url: new URL("https://yourname.lug.dev/work"),
      requestInit: { headers: { Authorization: `Bearer ${process.env.CORSAIR_API_KEY}` } },
    },
  },
});
const tools = await corsair.listTools();
  1. Set the key in your environment.Name: CORSAIR_API_KEYValue: <your API key>

Vercel AI SDK

API key in a header
In your code
import { createMCPClient } from "@ai-sdk/mcp";

const corsair = await createMCPClient({
  transport: {
    type: "http",
    url: "https://yourname.lug.dev/work",
    headers: { Authorization: `Bearer ${process.env.CORSAIR_API_KEY}` },
  },
});
const tools = await corsair.tools();
  1. Set the key in your environment.Name: CORSAIR_API_KEYValue: <your API key>

OpenAI Agents SDK

API key in a header
In your code
import { Agent, MCPServerStreamableHttp } from "@openai/agents";

const corsair = new MCPServerStreamableHttp({
  name: "corsair",
  url: "https://yourname.lug.dev/work",
  requestInit: { headers: { Authorization: `Bearer ${process.env.CORSAIR_API_KEY}` } },
});
await corsair.connect();
const agent = new Agent({ name: "Assistant", mcpServers: [corsair] });
  1. Set the key in your environment.Name: CORSAIR_API_KEYValue: <your API key>

One URL for every agent.

For AI agents: how to sign up for Lug is at lug.dev/pricing. Install Lug's skills with npx skills add https://lug.dev. Site summary: lug.dev/llms.txt. Ask your person before you sign up or enter credentials for them.