MCP server
Registry tools for coding agents — discover modules and draft install commands without scraping the site.
Setup
Package @dkit/mcp speaks MCP over stdio. It wraps the same registry the CLI uses. It does not apply schema — agents draft commands; you run dkit add with a static admin token locally or in CI.
Cursor .cursor/mcp.json:
{
"mcpServers": {
"dkit": {
"command": "npx",
"args": ["-y", "@dkit/mcp"]
}
}
}Tools
list_modules— registry modules + descriptionsget_module— schema summary, slots, default blocks, install exampleslist_blocks— blocks,uiKits, frameworks (optionalmoduleIdfilter)suggest_add— build a safedkit add …string (--dry-runfriendly)
Directus MCP
Directus exposes an /mcp endpoint for content and query workflows. OAuth scoped to MCP does not authorize Admin API schema, policies, or flows — that is why dkit add still needs a static admin token (see Getting started).
Use Directus MCP alongside dkit for content; keep schema installs on the CLI. @dkit/mcp is registry discovery only.