Dynamic context loading for AI assistants with TDD workflow and AST analysis
Dynamic context + active engineering workflow for AI coding assistants in Cursor, VS Code, and other MCP clients.
@stackguide/mcp-server helps teams standardize implementation quality with:
intake, plan, verify, release)MAIN DESCRIPTION templatesThis server is built for real team usage, not just prompt templates.
Full history: CHANGELOG.md.
STACKGUIDE_NO_UPDATE_CHECK=1.setup wizard:true asks stack, architecture, methodology, conventions and tracker, then writes a shared stackguide.config.json at the repo root. Commit it so every teammate gets the same context.setup or re-detecting the project. context returns one guidance line per architecture and methodology.ruleCategories limits which rules are loaded (saves tokens). Existing healthWeights in the file are preserved.opus / haiku / haiku; Cursor inherit (your selected model, e.g. Composer or Grok) / fast / fast; other IDEs inherit. The wizard asks which model each role should use (recommended default, your most used models first, or type any id your IDE lists); answer with models:{planner,implementer,verifier} or models:{} to accept the defaults. Choices are saved per IDE in stackguide.config.json, so mixed teams do not clash.agent action:"plan" returns a delegation block for the current IDE, and the wizard writes stackguide-implementer.md / stackguide-verifier.md into .claude/agents/ and .cursor/agents/. Edited files are kept; only their model: line is refreshed.setup wizard:true edits the saved config; .stackguide/ stays local and guarded.agent tool (execution-first workflow).init now generates .stackguide/config.json automatically.test/lint/build execution..stackguide artifacts removed from version control.cursor/mcp.json~/.cursor/mcp.json{
"mcpServers": {
"stackguide": {
"command": "npx",
"args": ["-y", "@stackguide/mcp-server@latest"]
}
}
}
Settings | Tools | AI Assistant | Model Context Protocol (MCP).{
"mcpServers": {
"stackguide": {
"command": "npx",
"args": ["-y", "@stackguide/mcp-server@latest"]
}
}
}
.vscode/mcp.jsonservers as root key.{
"servers": {
"stackguide": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@stackguide/mcp-server@latest"]
}
}
}
%USERPROFILE%\\.mcp.json (global)<solution>\\.mcp.json (repo-scoped)<solution>\\.vs\\mcp.json (solution/user-scoped)servers as root key.{
"servers": {
"stackguide": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@stackguide/mcp-server@latest"]
}
}
}
setup to detect project context.init action:"full" to scaffold .stackguide/ and defaults.agent actions (intake, create_ticket, plan, verify, release) for delivery flow.Team setup (once per project, then commit stackguide.config.json):
setup wizard:true
setup wizard:true type:"nextjs" architecture:"clean" methodology:"tdd" conventions:["Use named exports"] tracker:"jira"
Personal setup:
setup type:"react-typescript" enableAdaptiveTdd:true model:"gpt-5" integrations:["jira","github"] tokenMode:"compact"
init action:"full" model:"gpt-5" tokenMode:"compact" integrations:["jira","github"] mcpSyncTargets:["cursor","root"] applyMcpTemplates:true
init action:"status"
agent action:"status"
agent action:"intake" ticket:"PROJ-123"
agent action:"create_ticket" mainDescription:"<MAIN DESCRIPTION>" projectKey:"PROJ"
agent action:"plan" brief:"<brief-from-intake>"
agent action:"verify"
agent action:"release" version:"v1.2.0"
setup: configure StackGuide context for project typecontext: show currently loaded contextrules: list/search/get/select rule setsknowledge: list/search/get knowledge filesreview: analyze files/URLs/project code qualitycursor: browse/import community rulesdocs: fetch/search/list documentationconfig: save/load/export/import configurationscustom_rule: create/update/delete/list project custom ruleshelp: usage help by topicgenerate: boilerplate generation (component/hook/service/test/api/model/util)health: project health score and recommendationsanalyze: project intelligence (structure/config/dependency/generate/apply)workflow: lazy-load raw workflow assets (agents/skills/hooks/commands)init: scaffold .stackguide with stack-aware defaultsagent: active workflow executor (status, intake, create_ticket, plan, verify, release)agent action:"intake"createFromDescription:true)agent action:"create_ticket"MAIN DESCRIPTION format.stackguide/config.json (projectKey, issueType)summary from first line of MAIN DESCRIPTION when omittedagent action:"plan"agent action:"verify"agent action:"release"major / minor / patch)init generates:
.stackguide/config.json (project workflow config)Runtime/local artifacts:
.stackguide/analysis-cache.json.stackguide/health-history.jsonThese are machine-local and must not be committed.
pnpm lint includes:
pnpm run guard:repo
The guard fails if .stackguide artifacts are tracked.
Cache/history persistence includes:
STACKGUIDE_INTEGRITY_KEY=<long-random-secret>
For teams, configure STACKGUIDE_INTEGRITY_KEY in local/dev and CI environments for stronger tamper resistance.
python-django, python-fastapi, python-flask, react-node, react-typescript, vue-node, nextjs, express, nestjs, laravel, rails, golang, rust, custom.
Use pnpm for all commands.
pnpm install
pnpm lint
pnpm test
pnpm build
pnpm dev
4.1.2+3.0.0 up to 4.1.1 are deprecated in npm due to local artifact hygiene issues.4.x release in all environments.@stackguide/mcp-serverio.github.isucorp-taimiralain/stackguide-mcpGPL-3.0
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y @stackguide/mcp-serverMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-isucorp-taimiralain-stackguide-mcp": {
"command": "npx",
"args": [
"-y",
"@stackguide/mcp-server"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup reference@stackguide/mcp-servernpmio.github.isucorp-taimiralain/stackguide-mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.