# Knosite auth.md

> How an AI agent gets access to Knosite. Agents do not register themselves: a person signs in and approves the connection.

## Who this is for

AI agents (Claude, ChatGPT, Cursor, Copilot, Codex, Gemini and similar) acting for the owner of a website that uses Knosite. The agent connects to Knosite's remote MCP server to set up Engage (Smart Terms, help chips, micro-surveys) from the owner's chat.

## Registration

There is no anonymous, verified-email or ID-JAG agent registration, and no `agent_auth` flow. An agent cannot create a Knosite account or obtain credentials on its own.

Access always starts with a person:

1. The agent connects to the MCP server at `https://mcp.knosite.fyi/mcp`.
2. The server answers with a standard OAuth 2.1 challenge (authorization code with PKCE, S256).
3. The person signs in to Knosite in their browser, chooses which sites the agent may use, and approves.
4. The agent receives a bearer token tied to that person's approval.

New people can create a Knosite workspace by signing in at https://app.knosite.fyi/login; the same page is used for sign-up.

## OAuth client registration

Agent software (the OAuth client) can identify itself in either of two ways:

- Client ID Metadata Document: use an HTTPS URL as the `client_id` (supported).
- Dynamic client registration: `POST https://mcp.knosite.fyi/register` (rate-limited).

## Discovery documents

- Protected resource metadata: https://mcp.knosite.fyi/.well-known/oauth-protected-resource/mcp
- Authorization server metadata: https://mcp.knosite.fyi/.well-known/oauth-authorization-server
- Issuer: `https://mcp.knosite.fyi`

## Using the credential

Send the access token on every request as `Authorization: Bearer <token>` (header only; never in a query string).

- Scopes: `knosite:read` (required), `knosite:engage`, `offline_access`.
- Access tokens last 1 hour. Refresh tokens are issued with `offline_access` and expire after 30 idle days, after which the person signs in again.
- The token can only reach the sites the person chose. It cannot see leads, conversations, billing or the team, and it can never delete anything.
- Every change is two steps: a `knosite_propose_*` tool returns a preview and a token, and `knosite_apply` runs it. Changes visitors never see (settings, the plan, element rules) apply right away; visitor-facing content and the privacy check follow the site owner's choice in the dashboard: after the person's yes in one review (default), or all in one go. Each proposal's `needsYes` says which.
- The person can disconnect an agent at any time under Account in the dashboard.

## More

- Setup guide: https://knosite.fyi/docs/mcp
- API catalog: https://knosite.fyi/.well-known/api-catalog
- Overview for agents: https://knosite.fyi/llms.txt
