Skip to content
gist.link ↗

Connect a client

Every client below connects to the same endpoint:

Environment MCP server URL
Production https://mcp.gist.link/mcp
Local development http://localhost:8028/mcp

You can append query parameters to the URL to choose which apps’ tools the assistant sees, for example https://mcp.gist.link/mcp?apps=crm,support or https://mcp.gist.link/mcp?apps=crm&readonly=1. Without apps, the server exposes only the small set of discovery tools, which can still reach every app.

Remote connectors are configured on your Claude account and work in claude.ai, Claude Desktop and the mobile apps.

  1. Individual plans: open Customize → Connectors, choose + Add → Add custom connector. Team / Enterprise: an owner first adds it under Organization settings → Connectors → Add → Custom → Web; members then find it under Customize → Connectors and click Connect.

  2. Name it GistLink and enter the server URL:

    https://mcp.gist.link/mcp

    Add ?apps=crm,support (or any set of up to five apps) if you want per-operation tools for those apps.

  3. Under Authentication, choose Sign in when needed (or Sign in now). Under OAuth client, choose Register automatically — GistLink supports dynamic client registration. Leave Request headers empty.

  4. Click Add, then Connect. A GistLink window opens: sign in, choose the organization the connector should act in, and Approve.

  5. In a chat, enable the connector from the + → Connectors menu.

Claude Desktop’s claude_desktop_config.json is for local (stdio) servers only — add GistLink through Connectors as above.

Custom MCP servers are added from ChatGPT’s plugin/connector settings. Availability depends on your plan and workspace policy (workspace admins may need to allow custom MCP servers or enable developer mode).

  1. Open chatgpt.com/plugins, select +, then Add custom MCP server. (In workspaces that still show Apps & Connectors: Settings → Apps & Connectors → Advanced settings → Developer mode, then Create.)

  2. Enter a name (GistLink) and a description, for example “Read and update CRM, Support and Pay data in my GistLink organization.”

  3. Under Connection, enter the MCP server URL including /mcp:

    https://mcp.gist.link/mcp?apps=crm,support
  4. For authentication choose OAuth. ChatGPT registers itself dynamically; no client ID or secret is needed.

  5. Review the warning, confirm, and finish. ChatGPT opens the GistLink consent screen — sign in, pick an organization, Approve.

  6. Start a new chat and select GistLink from the @ / tools menu.

Like Claude, ChatGPT connects from OpenAI’s infrastructure, so it needs a public HTTPS URL (or OpenAI’s Secure MCP Tunnel) rather than localhost.

Add the server to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for every project):

.cursor/mcp.json
{
"mcpServers": {
"gistlink": {
"url": "https://mcp.gist.link/mcp?apps=crm,support"
}
}
}

Open Cursor Settings → MCP (Tools & MCP); the gistlink server shows a Needs login / Connect prompt. Click it to run the OAuth flow in your browser.

Add the server to .vscode/mcp.json in your workspace (or run MCP: Add Server… from the Command Palette and choose HTTP):

.vscode/mcp.json
{
"servers": {
"gistlink": {
"type": "http",
"url": "https://mcp.gist.link/mcp?apps=crm,support"
}
}
}

Start the server from the Start code lens in mcp.json (or the MCP Servers view). VS Code reads the 401 challenge, asks to sign in, and opens the GistLink consent screen. The tools then appear in the Chat view’s tool picker in Agent mode.

Terminal window
claude mcp add --transport http gistlink https://mcp.gist.link/mcp

To get per-operation tools for specific apps, quote the URL: claude mcp add --transport http gistlink "https://mcp.gist.link/mcp?apps=crm,support". Add --scope project to write the entry to a shared .mcp.json.

Then run /mcp inside Claude Code, select gistlink, and choose Authenticate to complete the OAuth flow in your browser.

Hosted model APIs connect to MCP servers from the provider’s cloud and can’t run a browser sign-in, so you pass a token yourself. Mint one from an IAM key with audience=mcp:

Terminal window
export GISTLINK_MCP_TOKEN=$(curl -s https://auth.api.gist.link/oauth/token \
-u "$GISTLINK_KEY_ID:$GISTLINK_KEY_SECRET" \
-d grant_type=client_credentials \
-d audience=mcp | jq -r .access_token)

The token carries the key’s effective grants across all apps and only lists/allows the operations those grants cover — see IAM tokens for agents. It is short-lived (minutes): mint a fresh one per run or job, never hard-code it.

Use the mcp tool type and pass the token as a request header:

Terminal window
curl https://api.openai.com/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-6-astra",
"tools": [
{
"type": "mcp",
"server_label": "gistlink",
"server_description": "CRM and Support data for my GistLink organization.",
"server_url": "https://mcp.gist.link/mcp?apps=crm,support",
"headers": { "Authorization": "Bearer '"$GISTLINK_MCP_TOKEN"'" },
"require_approval": "always"
}
],
"input": "List my five most recent open support tickets."
}'

OpenAI also accepts the bare token in the tool’s authorization field instead of a headers entry. Keep require_approval at "always" (the default) for anything that can call mutations, or relax it only for read tools: {"never": {"tool_names": ["list_apps", "describe_app"]}}. Use allowed_tools to import only the tools you need.

Declare the server in mcp_servers and enable it with a matching mcp_toolset entry in tools. The connector is in beta and needs the anthropic-beta header:

Terminal window
curl https://api.anthropic.com/v1/messages \
-H "Content-Type: application/json" \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: mcp-client-2025-11-20" \
-d '{
"model": "claude-opus-5-5",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "List my five most recent open support tickets." }
],
"mcp_servers": [
{
"type": "url",
"url": "https://mcp.gist.link/mcp?apps=crm,support",
"name": "gistlink",
"authorization_token": "'"$GISTLINK_MCP_TOKEN"'"
}
],
"tools": [
{ "type": "mcp_toolset", "mcp_server_name": "gistlink" }
]
}'

To restrict which tools Claude may call, set default_config: {"enabled": false} on the toolset and enable specific tools under configs.

Any client that supports Streamable HTTP and custom headers works with an IAM token — send Authorization: Bearer <token> on every request. You can also talk to the endpoint directly; see the raw JSON-RPC exchange.

When you run the suite locally (docker compose up), the MCP server listens on http://localhost:8028/mcp, the authorization server on http://localhost:8001, and the consent screen on http://localhost:3001.

  • Cursor, VS Code and Claude Code run on your machine, so the full OAuth flow works against localhost out of the box — use the Local tabs above.
  • IAM tokens work locally too: mint against http://localhost:8001/oauth/token and call http://localhost:8028/mcp directly (for example with curl or the MCP Inspector: npx @modelcontextprotocol/inspector).
  • Cloud-brokered clients (claude.ai, Claude Desktop connectors, ChatGPT, the OpenAI and Anthropic APIs) can’t reach localhost. With an IAM token you only need to tunnel port 8028. For the OAuth flow the provider must also reach the authorization server, so tunnel the auth API (8001) too, and point the MCP server’s public URL (MCP_PUBLIC_URL) and the auth service’s MCP resource URL (MCP_RESOURCE_URL) at the tunnel’s …/mcp address so the OAuth resource matches.