DevKit for Strapi
Accurate, project-aware editor support for Strapi magic strings — UIDs like
api::article.article, service/controller refs, policies, middlewares, and components.
Where Copilot guesses, DevKit for Strapi knows: it reads your real schema.json.
Works in VS Code and its forks (Cursor, Windsurf, Google Antigravity). Same engine powers
a bundled MCP server, so your AI agent answers from the same truth — one deterministic lookup
instead of grepping your project.
📖 Full docs & guides → devkit-for-strapi.paulrichez.fr

In your editor — free
- Autocomplete of real references, in the right context.
- Diagnostics for invalid/unknown references (with quick fixes), plus warnings when
Strapi v4 patterns (
entityService) appear inside a v5 project.
- Go-to-definition that resolves the correct target by context:
- services → service file, controllers → controller file
documents() / entityService / db.query() → schema.json
- route
handler: 'api::x.x.find' → the find method
- policies / middlewares → their file, components → their JSON
strapi.plugin('a').service('b') → the plugin service
- Find All References + CodeLens — see everywhere an entity or a single method
is used, with a "N references (Strapi)" lens above each definition — including
strapi.service('x').find() calls and route handlers the TypeScript server can't
resolve (because strapi.service(...) is any).
- Hover describing what a string resolves to, with service-method signatures and
usage insights (incoming relations, route handlers, data usages).
- Installed plugins checked too — users-permissions, upload, i18n and third-party
plugins are read from
node_modules statically (never executed), so
plugin::users-permissions.usr or strapi::corss get a "did you mean". A plugin
DevKit can't read completely stays silent.
- Ctrl+T on Strapi names — content-type and component UIDs, services, controllers
and their actions, policies, middlewares, routes (
GET /api/articles).
- Routes above controller actions — a CodeLens lists the routes each action
handles.
The DevKit panel — free
The DevKit for Strapi icon in the activity bar, read from your code without
starting Strapi:
- Health — what's wrong in the whole project, not only the open files: broken
references, policies and middlewares Strapi won't find at startup, refs DevKit
can't check (and why), definitions nothing references. A badge counts them.
- Routes — every route, and under each one what a request goes through, in
Strapi's order: the
config/middlewares stack, auth, policies, route middlewares,
handler — each step with whether Strapi will find it.
- Model — your content-types and components: their fields, the fields of other
types pointing at each one, the routes exposing it, how much code uses it, plus
the types installed plugins bring (read-only).
- Plugins — local and installed: what each adds, whether DevKit checks the refs
into it (and why not), the disabled ones, the ones your code rewrites.
- Config Sync — in projects using strapi-plugin-config-sync: its options and
where they come from, and the files of
config/sync with readable names and their
status (a file the plugin can't read is an error in it).



For your AI agent (MCP) — free
The extension bundles an MCP server and auto-registers it (no config) in VS Code,
Cursor, Windsurf and Antigravity. Your agent queries the project's real values
instead of guessing them — read & analyse tools cover content-types, components,
schemas, references, routes, dead code, broken refs and the dependency graph.

Use it — no setup
In VS Code, Cursor, Windsurf, Antigravity: nothing to configure. Open your agent
(Copilot Chat in Agent mode, or your editor's agent) — DevKit's tools are already
there. Try:
- "Which content types exist in this project?"
- "What uses
api::article.article?"
- "Is
api::article.artcle a valid reference?"
The agent answers from your real schema.json — not from a guess.
In Claude Code / Claude Desktop (or any standalone MCP client), point it at the server:
{
"mcpServers": {
"devkit-for-strapi": {
"command": "npx",
"args": ["-y", "devkit-for-strapi-mcp@latest", "/absolute/path/to/your/strapi-project"]
}
}
}
The path is optional — without it the server uses the client's roots capability, then the cwd.
Passing it is the most reliable: it's indexed at startup, so the first tool call already works.
→ See For your AI agent (MCP) and the
tool reference.
Pro — the refactoring engine
One licence unlocks safe, propagated refactors in both surfaces:
- Rename (F2) — rename a content-type, service, controller, policy,
middleware, component or a method and propagate it to every call-site, route
handler and the underlying file/folder — no grep-and-pray. (Content-types also
rename their folder + coupled service/controller.)
- From the DevKit panel — right-click to rename a content-type, a component, a
field or a controller action, retarget a relation, move a content-type into a
plugin, scaffold a plugin: the caveats first (the UIDs Strapi also stores in the
database), then VS Code's Refactor Preview — nothing is written until you apply.
- Relations diagram — your data model, live: an MCD (entities with their
fields, straight links with 1 / n cardinalities) or a compact graph; components,
plugin types, media and Strapi's own fields on demand; export as Markdown
(Mermaid), PNG or SVG.
- Config Sync through your Strapi — the real diff between
config/sync and the
database, from config-sync itself (your project's Strapi, loaded the way the
plugin's CLI does), in VS Code's diff editor; export and import entry by entry.
Renames and moves update the config/sync files they concern (unless you turn it
off for the project). On a local
development database only; in VS Code, in a trusted workspace.
- For your AI agent —
plan_* refactors (rename, move / extract-to-plugin, schema
edits) returned as a reviewable plan, plus a verified, root-confined, transactional
apply. Both the plan and its apply are licensed. get_model_diagram gives it
the data model as Mermaid.
€39.99 one-time — a perpetual licence plus one year of updates, per developer.
One key unlocks both the editor and the MCP Pro tools; the panel's views stay free. Validated once on
activation, then works offline (no telemetry, no code leaving your machine).
14-day money-back.
→ Get Pro & activation guide.
Activate in-editor with DevKit for Strapi: Enter License Key (stored in the OS
keychain, never settings.json); the key is forwarded to the bundled MCP server too.
Built right from the start
- Multi-project by content. Strapi projects are discovered by scanning
package.json
for @strapi/strapi — never by assuming workspace root = Strapi root. Every reference
resolves against the project that owns the edited file.
- Strapi v4 and v5, detected per project.
- JavaScript and TypeScript, identical behavior for ESM and CommonJS.
Commands
- DevKit for Strapi: Show Detected Projects
- DevKit for Strapi: Rescan Workspace — re-discover projects and rebuild the index
- DevKit for Strapi: Enter License Key — activate Pro
- DevKit for Strapi: Clear License Key — remove the stored key
- DevKit for Strapi: Check the Whole Project — every source file into the Problems panel
- DevKit for Strapi: Open Relations Diagram — Pro
- DevKit for Strapi: Reveal in DevKit Panel — the file in the editor, in the panel
Settings
strapiDevkit.enable — master switch (reload to apply)
strapiDevkit.diagnostics.enable
strapiDevkit.diagnostics.unknownReferenceSeverity — error (default) · warning · information · hint
strapiDevkit.completion.enable
strapiDevkit.hover.enable
strapiDevkit.referencesCodeLens.enable
strapiDevkit.referencesCodeLens.methods — also show the per-method lens
strapiDevkit.routesCodeLens.enable — the routes above controller actions
strapiDevkit.model.showPluginTypes — installed plugins' types in the Model view
strapiDevkit.views.followActiveEditor — the open views follow the editor
strapiDevkit.exclude — glob patterns of paths to skip during project discovery
Privacy
DevKit reads your project files locally and answers from them. No telemetry, no
network call to a backend — your code never leaves your machine. (A Pro licence key is
validated once with the payment provider on activation, then cached offline.) Links to
the DevKit site say where they come from (a utm_source tag), never who you are.
Trademark
This is an independent, community-built tool. It is not affiliated with, endorsed by, or
sponsored by Strapi SAS. "Strapi" is a trademark of Strapi SAS — used here only to describe
compatibility.
License
The editor features above (everything except the Pro refactoring engine) and the MCP
read tools are free to use. The Pro refactors require a licence key. The bundled
LICENSE file (shown on the Marketplace License tab) covers both: MIT for the free
parts, PolyForm Shield for Pro.