Build with agents

Give your AI coding agent up-to-date knowledge of CopilotKit's APIs, patterns, and best practices.

AI coding agents may not have up-to-date knowledge of CopilotKit's APIs, patterns, and best practices. The resources on this page give them accurate, current knowledge directly in their context.

CopilotKit Skills

Skills are folders of instructions that coding agents discover and use automatically. The CopilotKit skills are short. They do not copy the API. They tell your agent where to find the current answer: these docs, the source, and the CLI. A copy of an API goes stale. A search does not.

Skills are the recommended way to give your agent CopilotKit knowledge. They work natively in Claude Code, Cursor, Codex, Gemini CLI, and any tool supporting the agentskills.io standard.

There are two:

SkillUse it to
copilotkitAnswer any CopilotKit question from current docs and source. It fetches the docs as Markdown, and uses the copilotkit-docs MCP server when the plugin provides it
copilotkit-cliDrive the CLI: scaffold a project, connect Intelligence, and prove a project's wiring with copilotkit verify before debugging by hand

You don't need to pick between them. Your agent loads whichever fits the task. The skills directory also holds a few procedure skills, such as setting up a Slack Channel, which walk through steps that span several systems.

Install the skills

Run this from the root of the project you're building in:

npx skills add CopilotKit/CopilotKit/skills -y

This installs the skills into your project, where any coding agent working there (Claude Code, Codex, Cursor, or Gemini CLI) discovers them automatically. There's no per-agent configuration to do.

Want to choose what gets installed? Run npx skills add CopilotKit/CopilotKit/skills without -y to pick specific skills, target agents, and scope interactively. To install globally for every project, add -g.

Start building

Open a new agent session and use a starter prompt to put the skills to work: Help me add CopilotKit to this app. Look up the current setup in the CopilotKit docs first.

Your agent searches the documentation rather than working from memory, and reaches for copilotkit verify when something doesn't work.

MCP Docs Server

The CopilotKit MCP server equips AI coding agents with deep knowledge about CopilotKit's APIs, patterns, and best practices. When connected to your development environment, it enables AI assistants to:

  • Provide expert guidance
  • Generate accurate code
  • Give your AI agents a user interface
  • Help you implement CopilotKit features correctly

Pick your coding tool, then follow its steps:

Cursor reads MCP servers from an mcp.json file.

Open MCP Settings in Cursor

  1. Press Shift+Command+J (Mac) or Shift+Ctrl+J (Windows/Linux) to open Cursor's settings.
  2. Look for "MCP Tools" in the left sidebar categories.
  3. Click "Add Custom MCP". This will open the mcp.json file in the editor, which you need to edit.

This screen opens the global ~/.cursor/mcp.json, which registers the server for every project you open. To register it for this project alone, create .cursor/mcp.json at the project root instead and put the same configuration there.

Add MCP Server to Cursor

Copy CopilotKit MCP's configuration and paste it under the mcpServers key in the mcp.json file.

{
  "mcpServers": {
    "CopilotKit MCP": {
      "url": "https://mcp.copilotkit.ai/mcp"
    }
  }
}

Test the connection

Ask your agent: Use CopilotKit's search-docs tool to find documentation for useFrontendTool.

A successful tool call returns documentation results.

How is this guide?