
Sprog 🇩🇰 Dansk
LLM-integration
MCP-server
Opsætning af agentkonto
LLM-sæt
LLM Kit
FastComments LLM Kit hjælper AI-kodeassistenter som Claude, ChatGPT og Cursor med at forstå og integrere med FastComments ved at give dem adgang til vores komplette dokumentation gennem en simpel søge-API.
Ved at tilføje et udsnit til dit projekts AGENT.md- eller CLAUDE.md-fil gør du det muligt for AI-assistenter hurtigt at søge i og hente relevant FastComments-dokumentation, hvilket gør implementeringen hurtigere og mere præcis.
Få LLM-sættet 
Tilføj denne snippet til dit projekts AI-assistent konfigurationsfiler (som AGENT.md eller CLAUDE.md), der lærer AI-kodningsassistenter, hvordan man søger og tilgår FastComments-dokumentation.

På denne måde kan din AI-assistent nemt få opdaterede oplysninger og levere mere præcise implementeringer på kortere tid.
Brugseksempel
Når du bruger en AI-assistent som Claude Code eller Cursor, kan du stille spørgsmål som:
- "Hvordan installerer jeg FastComments på React?"
- "Vis mig hvordan man konfigurerer SSO med FastComments"
- "Hvad er FastComments API-godkendelsesmulighederne?"
AI-assistenten vil automatisk søge i dokumentationen ved hjælp af det angivne API-endpoint og give dig præcise, opdaterede svar baseret på den officielle dokumentation.
MCP-server 
FastComments kører en hosted Model Context Protocol (MCP) server, så AI‑assistenter og agentbaserede klienter kan kalde FastComments API direkte. Hvert værktøj, som MCP‑serveren eksponerer, er auto‑genereret fra den offentlige OpenAPI‑spec, så alt hvad REST API’en kan gøre, kan en MCP‑klient også gøre.
Endepunktet er stateless og baseret på streamable‑HTTP. Der er ingen session at holde i live og ingen server‑side tilstand per klient.
Endpoint

Connect with OAuth
Any MCP client that supports remote servers with OAuth (Claude, ChatGPT, Claude Code, Cursor, and others) can connect to the endpoint above with no setup on the FastComments side. The client registers itself through Dynamic Client Registration or identifies itself with a Client ID Metadata Document, opens a browser so you can sign in to FastComments and approve access, and receives a token bound to the account you were signed in to.
Your user needs the API Admin permission on the account to approve a connection. If you manage several accounts, switch to the right one in the dashboard before approving.
A client can request the read scope, the write scope, or both. A client that requests nothing gets both. Tools that change data are not offered to a read‑only token.
The dashboard has a setup helper with ready‑to‑paste snippets. Open Integrate -> MCP Server, or visit it directly:

Claude Code
Register the FastComments server with one command, then run /mcp inside a session to sign in and list the available tools:

Cursor and other config-file clients
Add this block to your client's MCP servers config (mcp.json for Cursor). The client opens a browser to sign in on first use.

Revoking access
Every approved connection is listed under Integrate -> Connected Apps in the dashboard. Revoking one invalidates every token that application holds. Applications register themselves when they connect and FastComments does not review them, so revoke anything you do not recognize.
Using the token with the REST API
The access token an MCP client obtains is a regular FastComments API credential. It works on every /api/v1 endpoint as a bearer token, so an application that connected through MCP can also call the REST API directly:

The tenant is implied by the token. A tenantId may still be passed but it must match. GET requests need the read scope and everything else needs the write scope.
Connect with an API key
Clients that cannot complete a browser sign‑in, such as headless servers, can authenticate with an API key instead. Pass tenantId and API_KEY as query parameters, or as the x-tenant-id and x-api-key HTTP headers if your client supports custom headers:

The setup page generates this URL for each of your API keys.
Security
An endpoint URL that contains an API key is a secret: do not paste it into public chats, screenshots, or commits. If a key is exposed, rotate it on the API Keys page in your dashboard. OAuth tokens carry no such risk because they are bound to one application and can be revoked from Connected Apps.
Lad en agent opsætte din konto 
A coding agent such as Claude Code, Cursor, or an MCP-based assistant can set up FastComments for you without you filling in the signup form. This is useful when you ask an agent to "add comments to my site" and you do not have an account yet.
Sådan fungerer det
- The agent creates a new account and receives an API key and a claim link. The API key works right away, so the agent can configure the account and install the widget on your site.
- The agent gives you the claim link. Open it in your browser, log in or create a login, and confirm the claim. The account is then yours: you manage it, its billing, and its API keys from the dashboard. The page lists the API key the agent holds so you can revoke it if you no longer want the agent, or whoever runs it, to have access.
- If nobody opens the claim link within 72 hours, the account and its key are deleted. Ask the agent to create a new one.
Until it is claimed, the account has the same limits as a normal free trial.
Hvis du allerede har en konto
Each login owns one account. If you open a claim link while logged in to an existing account, the page lets you choose:
- Attach to my account makes the new account a managed tenant of the one you are logged in to. This needs a paid plan with white labeling, and the new tenant's usage is billed to your account.
- Sign out and claim with another login signs you out and brings you back to the claim page so you can claim it with a different login.
For agent authors
The agent instructions at fastcomments.com/agents.md describe the account creation call, the fields in the response, and how to hand the claim link to the person you are working for. The call needs no API key and is rate limited per IP address.