Skip to content
AI agent tooling

Claude Code

Install the intents.fi MCP server and skills in Claude Code, then paste the setup line for Intents Checkout or Route.

Terminal window
# 1. The MCP server, scoped to this project, with a test key
claude mcp add intents-fi --scope project \
-e INTENTS_API_KEY=ik_test_… \
-e INTENTS_WEBHOOK_SECRET=whsec_… \
-- npx -y @intents-fi/mcp
# 2. The skills, where Claude Code looks for project skills
git clone --depth 1 https://github.com/intents-fi/skills /tmp/intents-fi-skills
mkdir -p .claude/skills && cp -R /tmp/intents-fi-skills/{integrate-checkout,verify-webhooks,go-live-checklist,integrate-intents-route} .claude/skills/

Then start claude in the app’s root and paste the line for your product:

  • Intents Checkout (get paid): Read https://intents.fi/docs/agent-setup/checkout.md and follow it.
  • Intents Route (cross-chain swaps): Read https://intents.fi/docs/agent-setup/route.md and follow it.

The prompt installs anything below that is missing, so this page is only for setting things up by hand. An Intents Checkout-only setup needs only the integrate-checkout, verify-webhooks and go-live-checklist skills; a Route-only one needs only integrate-intents-route. Set INTENTS_TOOLSETS to docs,checkout or docs,routing to load one product’s tools. Claude Code picks the skills up from .claude/skills/ and lists the server under /mcp.

Run /mcp inside Claude Code. intents-fi should be listed as connected with these tools: docs_search, docs_get_page, create_invoice, get_invoice, send_test_webhook, compare_quotes, get_status, list_routes and get_route_status.

If it shows as failed, run the server by hand to see why:

Terminal window
INTENTS_API_KEY=ik_test_… npx -y @intents-fi/mcp

It prints one line to stderr — the toolsets, the API it talks to and the kind of key, never the key itself — and then waits for a client on stdin.

  • --scope project writes .mcp.json in the repository. The -e values land in it, so either keep that file out of git or use --scope local instead, which keeps them on your machine.
  • Use the test key. The Intents Checkout tools refuse a live one, and a live key has no business in an agent’s configuration.
  • INTENTS_WEBHOOK_SECRET is only needed for send_test_webhook’s direct delivery to a local handler. It must match the value in the app’s .env.local.