# Cursor

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

`.cursor/mcp.json` in the project (or `~/.cursor/mcp.json` for every project):

```json
{
  "mcpServers": {
    "intents-fi": {
      "command": "npx",
      "args": ["-y", "@intents-fi/mcp"],
      "env": {
        "INTENTS_API_KEY": "ik_test_…",
        "INTENTS_WEBHOOK_SECRET": "whsec_…"
      }
    }
  }
}
```

The skills:

```bash
git clone --depth 1 https://github.com/intents-fi/skills /tmp/intents-fi-skills
mkdir -p .cursor/skills && cp -R /tmp/intents-fi-skills/{integrate-checkout,verify-webhooks,go-live-checklist,integrate-intents-route} .cursor/skills/
```

Each skill is a plain `SKILL.md` that points at the docs, so if your Cursor version does not load
skills from that folder, reference the file in chat (`@.cursor/skills/verify-webhooks/SKILL.md`)
or copy its body into a project rule under `.cursor/rules/`.

Then open the agent 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.

## Check the server is connected

Cursor Settings → MCP lists `intents-fi` with its tools. A red dot means it failed to start: run
`INTENTS_API_KEY=ik_test_… npx -y @intents-fi/mcp` in a terminal to see the error.

## Keys

`.cursor/mcp.json` holds the key in plain text. Keep it out of git, and use the test key only:
the Intents Checkout tools refuse a live one.

---

Source: https://intents.fi/docs/agent-setup/cursor · The whole corpus: https://intents.fi/docs/llms-full.txt
