Build an integration
Open Kite

Build an integration

Building your own MCP client, or an app that calls Kite for its people? Kite follows the MCP authorization spec, OAuth 2.1 with PKCE and dynamic client registration, so a standard client connects with no setup on our side.

Use an MCP SDK

Kite is a streamable HTTP MCP server. The official MCP SDKs for TypeScript and Python handle discovery, registration and sign-in for you: give them Kite's address, a redirect URI and somewhere to keep the tokens.

https://kite.new/api/mcp

The OAuth flow

Doing it by hand, these are the steps an SDK takes:

  1. Discover the authorization server from https://kite.new/.well-known/oauth-protected-resource.
  2. Read its metadata from https://kite.new/.well-known/oauth-authorization-server.
  3. Register your app at https://kite.new/api/oauth/register (dynamic client registration, open to anyone) to get a client_id.
  4. Send the person to https://kite.new/oauth/authorize with PKCE (S256) and the scope pages. They sign in to Kite and click Allow.
  5. Exchange the code for an access token and a refresh token at https://kite.new/api/oauth/token.
  6. Call the server at https://kite.new/api/mcp with Authorization: Bearer <access token>.
  7. Refresh with the refresh_token grant when the access token expires (after 7 days). Refresh tokens last 90 days.

Tokens can be revoked at https://kite.new/api/oauth/revoke. Your app shows to the person by the name it registered with: on the board while it draws, on its comments, and in their list of connected apps. It acts with their rights, in the files they can open.

Keys

For scripts and agents that can't open a browser, make a key under Settings → Agents → Keys for scripts and agents (New key) and send it to the same address as Authorization: Bearer kite_…. The key is shown once, when you make it. An account holds up to 20 keys: make one per tool, so each can be revoked on its own.

The local server

On a computer with Kite for Mac and Windows, an agent can run Kite over stdio instead, with no OAuth and no key:

~/.kite/bin/kite mcp

(%USERPROFILE%\.kite\bin\kite.cmd mcp on Windows.) The app writes the command on every launch. It signs in with the app's own account, adds tab_list and tab_open for the files open in the app, and reaches kite.new directly when the app is closed. To use it from your own MCP client, start that command as a stdio server. More in MCP server.

Context for agents

  • /.well-known/mcp/server-card.json: the server card, to describe Kite before connecting.
  • /llms.txt: what Kite is and how an agent uses it, and /llms-full.txt for everything in one file.
  • /skill.md: an installable skill that teaches an agent how Kite works.
  • Every docs page as markdown: add .md to its address, such as /docs/comments.md, or send Accept: text/markdown.
Questions about an integration? Write to hello@kite.new.

Related