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.
Claude (claude.ai and Claude Desktop)
Section titled “Claude (claude.ai and Claude Desktop)”Remote connectors are configured on your Claude account and work in claude.ai, Claude Desktop and the mobile apps.
-
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.
-
Name it
GistLinkand enter the server URL:https://mcp.gist.link/mcpAdd
?apps=crm,support(or any set of up to five apps) if you want per-operation tools for those apps. -
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.
-
Click Add, then Connect. A GistLink window opens: sign in, choose the organization the connector should act in, and Approve.
-
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.
ChatGPT
Section titled “ChatGPT”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).
-
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.)
-
Enter a name (
GistLink) and a description, for example “Read and update CRM, Support and Pay data in my GistLink organization.” -
Under Connection, enter the MCP server URL including
/mcp:https://mcp.gist.link/mcp?apps=crm,support -
For authentication choose OAuth. ChatGPT registers itself dynamically; no client ID or secret is needed.
-
Review the warning, confirm, and finish. ChatGPT opens the GistLink consent screen — sign in, pick an organization, Approve.
-
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.
Cursor
Section titled “Cursor”Add the server to .cursor/mcp.json in your project (or
~/.cursor/mcp.json for every project):
{ "mcpServers": { "gistlink": { "url": "https://mcp.gist.link/mcp?apps=crm,support" } }}{ "mcpServers": { "gistlink": { "url": "http://localhost:8028/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.
VS Code
Section titled “VS Code”Add the server to .vscode/mcp.json in your workspace (or run MCP: Add
Server… from the Command Palette and choose HTTP):
{ "servers": { "gistlink": { "type": "http", "url": "https://mcp.gist.link/mcp?apps=crm,support" } }}{ "servers": { "gistlink": { "type": "http", "url": "http://localhost:8028/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.
Claude Code
Section titled “Claude Code”claude mcp add --transport http gistlink https://mcp.gist.link/mcpclaude mcp add --transport http gistlink http://localhost:8028/mcpTo 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.
Programmatic agents (IAM token)
Section titled “Programmatic agents (IAM token)”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:
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.
OpenAI Responses API
Section titled “OpenAI Responses API”Use the mcp tool type and pass the token as a request header:
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." }'import osimport requestsfrom openai import OpenAI
token = requests.post( "https://auth.api.gist.link/oauth/token", auth=(os.environ["GISTLINK_KEY_ID"], os.environ["GISTLINK_KEY_SECRET"]), data={"grant_type": "client_credentials", "audience": "mcp"},).json()["access_token"]
client = OpenAI()resp = client.responses.create( model="gpt-6-astra", tools=[ { "type": "mcp", "server_label": "gistlink", "server_url": "https://mcp.gist.link/mcp?apps=crm,support", "headers": {"Authorization": f"Bearer {token}"}, "require_approval": "always", } ], input="List my five most recent open support tickets.",)print(resp.output_text)import OpenAI from 'openai';
const tokenRes = await fetch('https://auth.api.gist.link/oauth/token', { method: 'POST', headers: { Authorization: 'Basic ' + Buffer.from(`${process.env.GISTLINK_KEY_ID}:${process.env.GISTLINK_KEY_SECRET}`).toString('base64'), }, body: new URLSearchParams({ grant_type: 'client_credentials', audience: 'mcp' }),});const { access_token } = await tokenRes.json();
const client = new OpenAI();const resp = await client.responses.create({ model: 'gpt-6-astra', tools: [ { type: 'mcp', server_label: 'gistlink', server_url: 'https://mcp.gist.link/mcp?apps=crm,support', headers: { Authorization: `Bearer ${access_token}` }, require_approval: 'always', }, ], input: 'List my five most recent open support tickets.',});console.log(resp.output_text);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.
Anthropic Messages API (MCP connector)
Section titled “Anthropic Messages API (MCP connector)”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:
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" } ] }'import osimport anthropicimport requests
token = requests.post( "https://auth.api.gist.link/oauth/token", auth=(os.environ["GISTLINK_KEY_ID"], os.environ["GISTLINK_KEY_SECRET"]), data={"grant_type": "client_credentials", "audience": "mcp"},).json()["access_token"]
client = anthropic.Anthropic()response = client.beta.messages.create( 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": token, } ], tools=[{"type": "mcp_toolset", "mcp_server_name": "gistlink"}], betas=["mcp-client-2025-11-20"],)print(response.content)import Anthropic from '@anthropic-ai/sdk';
const tokenRes = await fetch('https://auth.api.gist.link/oauth/token', { method: 'POST', headers: { Authorization: 'Basic ' + Buffer.from(`${process.env.GISTLINK_KEY_ID}:${process.env.GISTLINK_KEY_SECRET}`).toString('base64'), }, body: new URLSearchParams({ grant_type: 'client_credentials', audience: 'mcp' }),});const { access_token } = await tokenRes.json();
const anthropic = new Anthropic();const response = await anthropic.beta.messages.create({ 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: access_token, }, ], tools: [{ type: 'mcp_toolset', mcp_server_name: 'gistlink' }], betas: ['mcp-client-2025-11-20'],});console.log(response.content);To restrict which tools Claude may call, set default_config: {"enabled": false}
on the toolset and enable specific tools under configs.
Any other MCP client
Section titled “Any other MCP client”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.
Local development
Section titled “Local development”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
localhostout of the box — use the Local tabs above. - IAM tokens work locally too: mint against
http://localhost:8001/oauth/tokenand callhttp://localhost:8028/mcpdirectly (for example withcurlor 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…/mcpaddress so the OAuthresourcematches.