MCP
A local MCP server ships in the kit, version 0.31.0. Agents query the installed contracts, tokens, patterns, and rules over stdio. Answers come from that install, so they match the version you have.
Cursor
Save this as .cursor/mcp.json in the app. Run it from the app root so npx uses the installed copy.
The command is npx -y agentic-ds-kit mcp. The server is read-only. It does not edit files, and only inspect_ui calls the network, to fetch the page URL you give it.
Claude Code
From the app root, register the same command.
Claude Code starts npx -y agentic-ds-kit mcp on stdio. Upgrade the package and the next session reads the new contracts.
Tools
Ten read-only tools. questions takes the same options as the CLI: only, group, overlay, none, useWhen, notWhen, askStyle, and enums. Pass the overlay as an object, not a file path.
| Tool | Arguments | Returns |
|---|---|---|
| list_components | detail, kind, limit, offset; all optional | Summary rows (id, name, kind for blocks and screens, level, short purpose) by default; detail full adds category and the whole purpose |
| get_component | name | Props, variants, must and doNot rules, tokens used, an import line, and a usage example |
| search_components | query | Components whose name, purpose, or contract keywords match |
| get_tokens | group, detail, limit, offset; all optional | Semantic tokens with name and value (dark too for color); detail full adds the usage notes |
| list_patterns | none | Pattern id, description, and npx agentic-ds-kit add <id> |
| get_pattern | id | Description, the add command, and the pattern's must and defaults |
| get_rules | none | AGENTS.md from this install, including the page-layout grid rule |
| questions | options, detail, limit, offset; all optional | The same option list as npx agentic-ds-kit questions; detail summary keeps id, label and kind |
| review_ui | path, or code and filename | The same findings and counts as npx agentic-ds-kit review; code with filename checks a draft that is not saved |
| inspect_ui | url, or html and name | The same result as npx agentic-ds-kit inspect: kit pieces on a rendered page by level, and landmark problems |