AI Agents (MCP)

StepsKit ships an MCP server, @stepskit/mcp, so your AI coding agent can install StepsKit and author in-app guidance — product tours, contextual tooltips, NPS surveys, and announcement banners — from inside your codebase. Because the agent already has your components and selectors on disk, the experiences it drafts point at the right elements from the start.

It works with any MCP client — Claude Code, Cursor, Codex, Claude Desktop, and others. The server is the same everywhere; only the way you register it differs (see Connect your agent).

The flow

  1. Status — the agent calls get_integration_status to see whether the embed is installed, which domains are allowed, and how many tours exist. A token that covers your whole account resolves which project it's writing to first — automatic when you own one, a list_projects call away when you own several (see Pick a project).
  2. Install — if the embed isn't installed, the agent detects your framework and adds the snippet to the right file. You review the diff.
  3. Identify — the agent finds where your app resolves the logged-in user and wires identify() there, passing the attributes your user object already carries. Without this, "show once" and audience targeting can't work — see the install prompt for what a proper install looks like.
  4. Verify — after you load a page once, verify_integration confirms the embed actually pinged StepsKit, so you know tours can render.
  5. Domainadd_allowed_domain whitelists your production domain (localhost is always allowed).
  6. Createcreate_tour persists a tour from codebase context, as an unpublished draft.
  7. Review & publish — you review the tour in the StepsKit dashboard and publish it deliberately. The agent never publishes on its own.

The tools your agent gets

Grouped by what they touch — the full per-tool reference lives on the MCP server reference page:

GroupWhat it covers
ProjectsList the projects the token can reach and choose which one to write to. Only comes into play with an account-wide token; a project-scoped one is pinned by the credential.
Setup & integrationOnboarding state and install snippet, embed verification, domain whitelisting, URL-pattern suggestions, and get_capabilities (the live can/can't list).
ToursCreate unpublished tours; list and read them; edit name, behavior settings, visibility/targeting, and per-tour theme.
StepsAdd, edit, delete, and reorder steps. Editing keeps step ids (and analytics).
TooltipsCreate and edit contextual indicators — a ?/info glyph, dot/pulse, or NEW/BETA badge anchored to one element, opening a popover with an optional CTA.
NPS surveysCreate and edit bottom-corner NPS cards — question, rating scale, follow-up, thank-you, re-survey window.
AnnouncementsCreate and edit top/bottom banner strips, with an optional schedule window.
Project themesRead and set the four project-wide defaults — one each for tours, tooltips, announcement banners, and survey cards — that every item inherits.

Next steps

  • Connect your agent — per-client setup for Claude Code, Cursor, Codex, and others.
  • Install prompt — a copy-pasteable prompt that installs StepsKit properly in any agent, no MCP server required.
  • Capabilities & limits — what you can and can't ask it to do.
  • MCP server reference — the @stepskit/mcp package: configuration, environment variables, every tool, guardrails, and token security.
  • Troubleshooting — when the server or a tour doesn't show up.