@jst-stack/mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@jst-stack/mcp
MCP server and Pi extension for JST architecture workflows. It exposes five operations — start a task, scaffold a slice, fetch a recipe, fetch an architecture section, run a quality gate — by delegating to a project's own npm run create:slice, npm run lint:*, and npm run check:* scripts. It duplicates no JST generator, lint, or architecture policy: architecture guidance is read from each project's local skills/frontend-architecture/SKILL.md, and the package embeds only operational mappings (gate-to-script, section selection keywords, CLI-help parsing).
Requirements
Node.js
>= 24.15A JST project (scaffolded with
create-jst) that exposes acreate:slicescript.
Related MCP server: erbina
Tools
Tool | Purpose |
| Classify the brief as a direct file/docs change, local UI edit, existing-workflow change, or new boundary; return only its workflow and relevant architecture sections. Generator discovery runs only for a new boundary. |
| Validate kind/name/options and invoke the project-local |
| Return a project-local implementation recipe, including SSR-safe runtime mocking through an injected repository adapter. |
| Return the complete, untruncated text of one architecture section; use it when a |
| Run an existing npm script ( |
Every response is concise JSON. Raw diagnostic output is truncated; no source files are dumped. Successful results also carry a structuredContent object so clients can read the payload without re-parsing the text field.
Install: generic MCP clients
npm install -g @jst-stack/mcpAdd a stdio server to your client config, for example:
{
"mcpServers": {
"jst": {
"command": "jst-mcp"
}
}
}Without a global install, configure the executable and arguments separately:
{
"mcpServers": {
"jst": {
"command": "npx",
"args": ["-y", "@jst-stack/mcp"]
}
}
}One-command registration
Register the jst stdio server in ~/.pi/agent/mcp.json (idempotent; existing servers are preserved):
jst-mcp init # write the config
jst-mcp init --dry-run # preview the change without writingIt also appends the resolved Pi extension path to the extensions array in ~/.pi/agent/settings.json when absent, preserving existing entries and other keys; a non-array extensions value is left untouched. Set JST_MCP_PI_DIR to target a different Pi config directory. As a fallback, load the extension with pi -e <path>.
Agent workflow
Call
jst_start_taskonce with the project root and implementation brief.For a local UI/content/style edit, change only its owner and colocated files. Use
jst_scaffold_sliceonly for a genuinely new architecture boundary.Implement against the returned project-local contract; request a named recipe only when the start response did not include it.
Run focused tests while implementing.
Call
jst_checkwithfastafter ordinary work. Usefixfor mechanical repairs,architecturefor the complete lint contract, andreleaseonce at delivery; do not repeat a passing gate or run its internal scripts separately.
The start response includes a machine-readable completionRequirement. A task is complete only after the required gate returns ok: true and a completionReceipt.
Install: Pi
npm install --save-dev @jst-stack/mcpLoad the extension (Pi registers its tools once the extension loads):
pi -e ./node_modules/@jst-stack/mcp/dist/pi/extension.jsOr reference the package subpath @jst-stack/mcp/pi from your Pi extensions configuration. The tools appear as jst_start_task, jst_scaffold_slice, jst_get_recipe, jst_get_section, and jst_check; projectRoot defaults to the session working directory.
Architecture
Dependency direction:
domain(contracts) →application(services) →infrastructure(adapters) →composition(MCP/Pi).The MCP transport contains no project/business policy.
External effects (process spawn, filesystem) sit behind narrow ports and are replaceable in tests.
Architecture sections and recipes are parsed from the project-local skill by a pure Markdown section parser; no AI summarization and no embedded architecture prose.
Commands run via argument arrays; user values are never interpolated into a shell string.
Project roots are resolved canonically and must stay inside the server's startup workspace, including through symlinks.
Projects must expose the JST generator, configuration, and architecture skill before any project command can run.
Development
npm install
npm run check # lint + build + test + npm pack --dry-runKnown limitations
jst_scaffold_sliceruns the generator twice: a--dry-runto read the exact file plan, then the real run. SetdryRun: trueto stop after the plan and getcreatedPathsandinstallCommandswithout writing files. WithnoInstall, use the returned exactinstallCommandsbefore running a gate.If the generator's install phase fails (for example an npm
EOVERRIDEconflict),jst_scaffold_sliceretries with--no-install, still creates the slice, and returnsinstallFailed: truewith the exact commands to finish installing.Diagnostic summaries are bounded to the last 4000 characters; full output is not preserved.
jst_start_taskandjst_get_reciperequireskills/frontend-architecture/SKILL.mdin the project root. In the start response each section is bounded to 1400 characters and the selected set to 6500 characters; calljst_get_sectionfor the full, untruncated body.jst_get_recipereturns the complete recipe text.
This server cannot be deployed
Maintenance
Related MCP Connectors
Access and maintain design system docs, tokens, components, skills, and contexts across any project.
Build, run and publish Workbench flows, tasks, shims and knowledge bases.
Dispatch and track Alchemist Cloud tickets, watch deploys, read logs, and query your project DB.
SketchXFlow delivery team: pull client requirements, post updates, log time, move milestones.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables local-first task contract generation and drift/sludge guard checks for coding tasks, with CLI and VS Code extension support.14 npmMIT
- AlicenseNot gradedqualityBmaintenanceBootstraps dev environments by installing, wiring, and verifying CLI tools and MCP servers from curated recipes, and provides scope-aware audit of MCP configurations.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables autonomous software engineering workflows by routing intent to specialized modes, managing Fable5 task ledgers and backend contracts, auditing React/TypeScript stacks, generating architectural SVG diagrams, and enforcing write-guard path policies.MIT
- AlicenseBqualityBmaintenanceEnables dispatching and managing Google Jules coding tasks across multiple accounts, including parallel cloud chores, local patch reconciliation, preflight conflict checks, and automated GitHub PR workflows.319 npmMIT