Build with AI
In this guide, you will learn how to leverage AI coding assistants to help you set up and integrate Kapa.
Kapa's MCP
Kapa provides a hosted MCP server that gives AI assistants access to Kapa's documentation, so they can help you implement Kapa correctly.
This is particularly useful for implementation tasks where you're coding:
- Widget configuration: Let your editor look up styling options and configure the widget for you.
- Agent SDK integration: Build in-product agents while your editor looks up how to use the Agent SDK.
- Chat SDK integration: Build custom chat interfaces while your editor looks up how to use the Chat SDK.
Want to offer this for your own users? Kapa can power a hosted MCP server for your knowledge sources. See MCP.
Available tool
The Kapa MCP server exposes the following tools to your AI assistant:
| Tool | Description |
|---|---|
search_kapa_knowledge_sources | Search Kapa's documentation, API reference, and blogs, and return the most relevant content. |
Set up
Before you can use the MCP server, you need to install it in your AI assistant.
URL: https://kapa-docs.mcp.kapa.ai
Setup steps vary depending on which client you're using.
- Claude Code
- Claude Desktop
- ChatGPT Desktop
- Codex
- Cursor
- VS Code
- Antigravity
- Windsurf
- Zed
- Other
Run the following command in your terminal:
claude mcp add --transport http kapa-ai-docs https://kapa-docs.mcp.kapa.ai
Then run the /mcp command in Claude Code and follow the steps in your browser to authenticate.
For more information, see the Claude Code MCP documentation.
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"kapa": {
"command": "npx",
"args": ["mcp-remote", "https://kapa-docs.mcp.kapa.ai"]
}
}
}
Restart Claude Desktop for changes to take effect.
For more details, see the Claude Desktop documentation.
ChatGPT Desktop supports MCP servers in developer mode:
- Open ChatGPT Desktop.
- Go to Settings > Features.
- Enable Developer mode.
- Navigate to Settings > MCP Servers.
- Click Add Server and enter:
- Name:
kapa - URL:
https://kapa-docs.mcp.kapa.ai
- Name:
For more information, see the ChatGPT Developer mode documentation.
Install MCP: codex mcp add kapa-docs -- https://kapa-docs.mcp.kapa.ai/.
The ~/.codex/config.toml file can also be manually configured:
[mcp_servers.kapa-docs]
command = "https://kapa-docs.mcp.kapa.ai"
Note, as of version 0.112 of Codex contains a bug that affects Internal projects. This will cause authentication to fail. A workaround for this is to take the authorisation link generated by Codex and modify it to add the following parameter: &resource=https%3A%2F%2F<YOUR_MCP>.mcp.kapa.ai%2F
Add the following to your .cursor/mcp.json file:
{
"mcpServers": {
"kapa": {
"type": "http",
"url": "https://kapa-docs.mcp.kapa.ai"
}
}
}
For more information, see the Cursor MCP documentation.
Prerequisites: VS Code 1.102+ with GitHub Copilot enabled.
Create an mcp.json file in your workspace .vscode folder:
{
"servers": {
"kapa": {
"type": "http",
"url": "https://kapa-docs.mcp.kapa.ai"
}
}
}
For more details, see the VS Code MCP documentation.
To use the Kapa MCP in your Antigravity, follow the instructions below:
- Open Antigravity.
- In the Agent sidebar, press ... and then MCP Servers.
- Press Manage MCP Servers and then View raw config.
- Paste in the JSON below and save the file.
- Click "refresh".
- When prompted, complete the authentication flow.
"mcpServers": {
"kapa-docs": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://kapa-docs.mcp.kapa.ai"
]
}
}
To use the Kapa MCP in your Windsurf, follow the instructions below:
- In the Agent sidebar, press ... and then Open MCP Config File.
- Paste in the JSON below and save the file.
- Reload Windsurf.
- When prompted, complete the authentication flow.
{
"mcpServers": {
"kapa": {
"args": [
"mcp-remote",
"https://kapa-docs.mcp.kapa.ai"
],
"command": "npx",
"disabled": false
}
}
}
Install the mcp-remote package from npm: npm install -g mcp-remote
Run mcp-remote to authenticate with Kapa: npx mcp-remote https://kapa-docs.mcp.kapa.ai. This will prompt you to authenticate the session. Your session will automatically get saved in ~/.mcp-remote/
Modify the ~/.config/zed/settings.json settings file to include a context_servers block:
{
"context_servers": {
"kapa": {
"source": "custom",
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://kapa-docs.mcp.kapa.ai"
],
"env": {}
}
}
}
For more details, see the Zed MCP documentation.
MCP is an open protocol supported by many clients. Use the server URL https://kapa-docs.mcp.kapa.ai and refer to your client's documentation for setup instructions.
Most clients accept the standard MCP JSON configuration format:
{
"mcpServers": {
"kapa": {
"url": "https://kapa-docs.mcp.kapa.ai"
}
}
}
Kapa Skills
Kapa also provides a collection of AI agent skills you can install in agents like Claude Code, Cursor, and Codex to systematically work through documentation backlogs. See Skills for the full overview and available skills.