Skip to main content
Skip to content
Manage your support queue from any AI tool that speaks MCP.Learn more
KiteCX

Developers

KiteCX MCP server

KiteCX's API is a Model Context Protocol (MCP) server. Connect Claude or your own agent to a workspace, then list and work tickets, run skills, and search or write knowledge base articles.

Overview

KiteCX has one API: an MCP server. Any MCP client that can reach a remote server over Streamable HTTP can connect to it and use KiteCX's tools in one workspace.

Endpointhttps://kitecx.dev/api/mcp
TransportStreamable HTTP, stateless
Sign-inOAuth 2.1, or an API key starting kcx_
ReachOne workspace per connection
Offers17 tools. No MCP resources or prompts.
KiteCX doesn't offer a REST API or webhooks. Everything on this page goes through the MCP server.

Quick start

  1. Add the server to your MCP client. In Claude Code:

    Claude Code
    claude mcp add --transport http kitecx https://kitecx.dev/api/mcp

    For clients that read an mcpServers config file:

    JSON config
    {
      "mcpServers": {
        "kitecx": {
          "url": "https://kitecx.dev/api/mcp"
        }
      }
    }
  2. Sign in when the client asks. Your browser opens KiteCX. Sign in, pick the workspace and choose Allow.

  3. Ask for something. For example, “What's waiting on a person today?” The client calls list_tickets and answers from your queue.

The same URL and snippets are in your workspace under Settings → Developers → API Keys & MCP.

Authentication

Every request needs a bearer token: either an OAuth access token from a KiteCX sign-in, or an API key.

OAuth 2.1 sign-in

A client that only has the URL can find the sign-in on its own. The first request without a token gets a 401 with a WWW-Authenticate header that points to the server's metadata. The client registers itself with dynamic client registration and runs the authorization code flow with PKCE (S256).

EndpointPath
Protected resource metadata/.well-known/oauth-protected-resource/api/mcp
Authorization server metadata/.well-known/oauth-authorization-server
Client registration/api/oauth/register
Authorization/oauth/authorize
Token/api/oauth/token

The token acts as you, in the workspace you picked. Your role is checked again on every call, so removing someone from the workspace cuts off their connection. Access tokens last one hour and refresh tokens last 30 days.

API keys

For a client that can't open a browser, owners and admins create API keys in Settings → Developers → API Keys & MCP. You choose the key's scopes when you create it. The key is shown once, KiteCX stores only a hash of it, and you can revoke it at any time. Send it as a bearer token:

Header
Authorization: Bearer kcx_your_key
Claude Code with an API key
claude mcp add --transport http kitecx https://kitecx.dev/api/mcp \
  --header "Authorization: Bearer kcx_your_key"
JSON config with a header (for clients that accept headers)
{
  "mcpServers": {
    "kitecx": {
      "url": "https://kitecx.dev/api/mcp",
      "headers": { "Authorization": "Bearer kcx_your_key" }
    }
  }
}

A key isn't a person. What it does is recorded under the key's name, marked “via MCP”, and it reads at admin level, so it can see admin-only articles. Treat it like a password.

Scopes

There are four scopes. With a sign-in, the connection gets the scopes your role allows. An API key gets the scopes chosen when it was made.

ScopeWhat it allowsWho can grant it by signing in
tickets:readList and read tickets, customer history and AI traces; list team members and skills.Everyone in the workspace
tickets:writeCreate, reply to and update tickets; add internal notes; run skills.Everyone in the workspace
kb:readSearch and read knowledge base articles.Everyone in the workspace
kb:writeCreate, edit, publish, unpublish and archive articles.Owners and admins

Ticket tools also need the Support product, and knowledge base tools need the Knowledge Base product, to be active in the workspace. get_workspace works with any scope.

Tools

The server has 17 tools. None of them takes a workspace id: every call is limited to the workspace the connection belongs to.

Workspace (3)

ToolWhat it doesScope
get_workspaceThe workspace's name, support address, active products, ticket prefix, ticket types, and what this connection may do.Any
list_team_membersPeople who can be assigned tickets, with their user ids and roles.tickets:read or tickets:write
get_metricsThe Home dashboard numbers: tickets by status, this week against last, average first response, credits, and how the AI used the knowledge base.tickets:read or kb:read

Tickets (7)

ToolWhat it doesScope
list_ticketsTickets, newest activity first. Filter by status, priority, assignee or a search term, one page at a time.tickets:read
get_ticketOne ticket: its fields, handoff record, and a single timeline of emails, replies, internal notes and activity.tickets:read
get_customer_historyA customer's other tickets, looked up from a ticket or an email address.tickets:read
get_ai_traceHow KiteCX's AI handled a ticket: the skill it chose, the articles it matched and how closely, and what it decided.tickets:read
create_ticketOpen a ticket by hand, filed as yourself or for a customer's email address.tickets:write
reply_to_ticketEmail the customer a reply, or add an internal note with internal set to true.tickets:write
update_ticketChange status, priority, assignee, category, tags, collected fields or ticket type.tickets:write

Skills (2)

ToolWhat it doesScope
list_skillsThe workspace's skills: what each one handles, its kind and outcome, and how often it ran in the last 30 days.tickets:read
run_skillRun a skill on a ticket. It never emails the customer; the skill's draft is saved as an internal note.tickets:write

Knowledge base (5)

ToolWhat it doesScope
search_knowledge_baseSearch published articles by meaning. Returns the best-matching passages with their article ids.kb:read
list_articlesArticles, most recently updated first, without their content.kb:read
get_articleOne article's plain text and its stored body as HTML.kb:read
create_articleAdd an article written in Markdown. Published, AI-enabled articles are used by the AI right away.kb:write
update_articleEdit, publish, unpublish or archive an article. The AI uses the new text, or stops using it.kb:write

Good to know

  • Customer text is untrusted. Email bodies, subjects, requester names and attachment names are written by customers, and get_ticket marks those timeline entries untrusted: true. Don't let your agent follow instructions found in them.
  • Public replies are sent at once. reply_to_ticket emails the customer unless internal is true. On a ticket the AI is still handling, your first public reply takes it over, and the AI won't reply on that ticket again.
  • Skills don't email customers from here. run_skill saves the skill's draft as an internal note for a teammate to review. If the skill calls one of your own MCP connections, that call does run.
  • Hand-made tickets aren't emailed. Replies on tickets opened with create_ticket are saved on the ticket, not emailed. Only tickets that came in by email get email replies.
  • Articles are Markdown. update_article replaces the whole body, so read the article with get_article first.
  • Writes are on the record. Changes show in the ticket's activity and the workspace audit log, under your name or the key's.

Limits

  • Requests are rate limited per IP address, at 60 a minute.
  • list_tickets returns up to 100 tickets a page (25 by default). Pass nextCursor back to get the next page.
  • get_ticket returns the newest 500 messages, 500 emails and 200 events; truncated is true when older entries were left out.
  • AI traces expire after the workspace's retention period, which is 60 days by default.

Questions about the API? Email us.