The @awdlab/jig-mcp package is a
Model Context Protocol server that gives AI
coding agents accurate, first-hand knowledge of @awdlab/jig — every
control's API, selector, and usage, plus the concept guides (theming, colors,
passthrough, state, …).
Point Claude Code, Cursor, Windsurf, or any MCP client at it and the agent stops guessing component names and input signatures.
It provides four capabilities:
All layers are advisory / knowledge-only: the server returns knowledge and scaffolds; the host agent makes the file edits.
The server is self-contained and read-only. At runtime it serves a single
bundled knowledge pack and never touches your repo or the network — which makes
it safe to run via npx inside any project.
Its knowledge is hybrid:
Because the pack is rebuilt whenever controls, docs, or authored knowledge change, it can never silently drift from the library.
Tools the agent can call:
| Tool | Purpose |
|---|---|
list_controls |
Discover every control/directive with selector + one-liner. |
get_control |
Full reference for one control: inputs/outputs, types, prose docs. |
search_docs |
Ranked keyword search across controls and concept guides. |
get_theme_schema |
Token vocabulary + createThemePart authoring API + gotchas. |
get_control_theme |
A control's themeable anatomy (c() classes, d() deps). |
scaffold_theme_part |
Ready-to-edit createThemePart skeleton for a control. |
get_theme_options |
Theme-dependent kind / color values (per built-in theme). |
list_migration_sources |
Source libraries with a migration map + coverage. |
map_component |
One source component → jig target, with prop/event maps + gaps. |
search_migration |
Find the jig equivalent for a source component / feature. |
recommend_controls |
Suggest controls + recipes for a feature goal. |
Resources (browsable, addressable): jig://control/<name>,
jig://concept/<slug>, jig://recipe/<slug>, and jig://example/<slug> (real,
compiled usage snippets auto-derived from the docs demos).
Prompts (surfaced as slash-commands / quick actions where supported):
explain_control, explain_concept, author_theme, migrate_library, and
build_feature — each returns a ready-made request with the relevant reference
inlined.
No install step is needed — clients run the server via npx.
Claude Code (.mcp.json in your project, or user settings):
{
"mcpServers": {
"jig": {
"command": "npx",
"args": ["-y", "@awdlab/jig-mcp"]
}
}
}Cursor (.cursor/mcp.json) and Windsurf use the same mcpServers
shape. Any MCP-capable client works — the server is client-agnostic.
jig