Stackguide Mcp

io.github.isucorp-taimiralain由 GitHub 账号 isucorp-taimiralain 发布v4.1.3更新于 Oct 24, 2026

Dynamic context loading for AI assistants with TDD workflow and AST analysis

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

StackGuide 为 AI 编程助手加载项目相关的规则与上下文,并运行包含计划、验证和发布环节的主动 TDD 工作流。

可以做什么
StackGuide 是一个本地 MCP 服务器,面向 Cursor、VS Code、JetBrains 和 Visual Studio 中的 AI 编程助手。它会识别项目技术栈,加载架构与方法论规则,评估代码健康度,生成样板代码,并运行以执行为先的 agent 工作流,包含 intake、plan、verify 和 release 动作。它还能连接 GitHub、GitLab 和 Jira 等跟踪系统,并可按严格的 MAIN DESCRIPTION 模板创建 Jira 工单。
适用场景
适合团队希望在 IDE 内保持一致的实现质量并采用可重复的 TDD 式交付流程时使用,包括工单接收、计划、测试与 lint 验证以及发布检查。对于一次性的编码问题,或不愿在仓库中提交共享工作流配置的项目,用处不大。
运行要求
通过 stdio 在本地运行,以 npm 包 @stackguide/mcp-server 安装,通常用 npx 启动。需要 Node.js 以及桌面版 MCP 客户端,例如 Cursor、启用 Copilot Chat 的 VS Code、JetBrains 或 Visual Studio。未声明身份验证。Jira、GitHub、GitLab 等跟踪系统集成需要各自的凭据,可选的环境变量 STACKGUIDE_INTEGRITY_KEY 可用于增强防篡改能力。
安装前请注意
该服务器会向仓库写入文件,包括需要提交的 stackguide.config.json,以及不应提交的本地 .stackguide 产物,如 analysis-cache.json 和 health-history.json。agent 工作流可以创建 Jira 工单、标签以及 PR/MR,并会运行测试、lint 和构建命令。除非设置 STACKGUIDE_NO_UPDATE_CHECK=1,否则它每天会检查一次 npm 更新。跟踪系统与版本控制集成需要凭据,STACKGUIDE_INTEGRITY_KEY 属于机密,应避免纳入版本控制。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Stackguide Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

StackGuide MCP Server

Dynamic context + active engineering workflow for AI coding assistants in Cursor, VS Code, and other MCP clients.

[npm version] [license] [mcp registry]

What It Does

@stackguide/mcp-server helps teams standardize implementation quality with:

  • project-aware rule/context loading
  • code review and health scoring
  • auto-detected setup and stack scaffolding
  • active agent workflow that executes real work (intake, plan, verify, release)
  • adaptive TDD preferences per project (model + token profile)
  • Jira ticket creation from strict MAIN DESCRIPTION templates
  • tracker + VCS + test orchestration for delivery flow

This server is built for real team usage, not just prompt templates.

What's New In v4.x

Full history: CHANGELOG.md.

  • v4.3.1 - Update notifier: StackGuide checks npm once a day in the background and tells you once per session when a newer version exists, with a safe update command. Disable with STACKGUIDE_NO_UPDATE_CHECK=1.
  • v4.3.0 - Team mode:
    • 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.
    • On startup StackGuide finds that file (also from subfolders) and loads it without running setup or re-detecting the project. context returns one guidance line per architecture and methodology.
    • Optional ruleCategories limits which rules are loaded (saves tokens). Existing healthWeights in the file are preserved.
    • Multi-agent roles that follow the IDE you are using (detected from the MCP client). Defaults: Claude Code 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.
    • Re-running setup wizard:true edits the saved config; .stackguide/ stays local and guarded.
  • Added active agent tool (execution-first workflow).
  • init now generates .stackguide/config.json automatically.
  • Added tracker service support for GitHub, GitLab, and Jira.
  • Added VCS service for branch checks, commit parsing, CI status, and PR/MR creation.
  • Added test runner service for structured test/lint/build execution.
  • Updated TDD prompts to use active tool calls instead of large passive markdown payloads.
  • Hardened local persistence:
    • .stackguide artifacts removed from version control
    • repository guard blocks accidental tracking of local artifacts
    • cache and health history include integrity validation and safer writes

Install By IDE

Cursor

  • File (workspace): .cursor/mcp.json
  • File (global): ~/.cursor/mcp.json
json
{  "mcpServers": {    "stackguide": {      "command": "npx",      "args": ["-y", "@stackguide/mcp-server@latest"]    }  }}

JetBrains (IntelliJ, WebStorm, PhpStorm, etc.)

  • Open Settings | Tools | AI Assistant | Model Context Protocol (MCP).
  • Click Add and paste JSON config.
  • Recommended: set it as Project-level unless you want global scope.
json
{  "mcpServers": {    "stackguide": {      "command": "npx",      "args": ["-y", "@stackguide/mcp-server@latest"]    }  }}

VS Code

  • Requirement: GitHub Copilot Chat with MCP enabled.
  • File (workspace): .vscode/mcp.json
  • VS Code MCP schema uses servers as root key.
json
{  "servers": {    "stackguide": {      "type": "stdio",      "command": "npx",      "args": ["-y", "@stackguide/mcp-server@latest"]    }  }}

Visual Studio (Windows, 2022 17.14+ / 2026+)

  • Enable GitHub Copilot Agent mode.
  • Supported config locations include:
    • %USERPROFILE%\\.mcp.json (global)
    • <solution>\\.mcp.json (repo-scoped)
    • <solution>\\.vs\\mcp.json (solution/user-scoped)
  • Visual Studio MCP schema uses servers as root key.
json
{  "servers": {    "stackguide": {      "type": "stdio",      "command": "npx",      "args": ["-y", "@stackguide/mcp-server@latest"]    }  }}

How To Use (Any IDE)

  1. Restart the IDE after adding the MCP configuration.
  2. Open AI chat in agent/tool mode.
  3. Call setup to detect project context.
  4. Call init action:"full" to scaffold .stackguide/ and defaults.
  5. Use agent actions (intake, create_ticket, plan, verify, release) for delivery flow.

Quick Start

Team setup (once per project, then commit stackguide.config.json):

bash
setup wizard:truesetup wizard:true type:"nextjs" architecture:"clean" methodology:"tdd" conventions:["Use named exports"] tracker:"jira"

Personal setup:

  1. Configure your project:
bash
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
  1. Check generated setup:
bash
init action:"status"agent action:"status"
  1. Run active TDD workflow:
bash
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"

Tools (16)

Core

  • setup: configure StackGuide context for project type
  • context: show currently loaded context
  • rules: list/search/get/select rule sets
  • knowledge: list/search/get knowledge files
  • review: analyze files/URLs/project code quality

Utility

  • cursor: browse/import community rules
  • docs: fetch/search/list documentation
  • config: save/load/export/import configurations
  • custom_rule: create/update/delete/list project custom rules
  • help: usage help by topic

Advanced

  • generate: boilerplate generation (component/hook/service/test/api/model/util)
  • health: project health score and recommendations
  • analyze: project intelligence (structure/config/dependency/generate/apply)

Workflow

  • workflow: lazy-load raw workflow assets (agents/skills/hooks/commands)
  • init: scaffold .stackguide with stack-aware defaults
  • agent: active workflow executor (status, intake, create_ticket, plan, verify, release)

Active Workflow Details

agent action:"intake"

  • reads ticket from configured tracker
  • returns normalized brief + gaps
  • proposes branch name convention
  • can optionally create a Jira ticket first (createFromDescription:true)

agent action:"create_ticket"

  • creates Jira issues using strict MAIN DESCRIPTION format
  • uses project defaults from .stackguide/config.json (projectKey, issueType)
  • derives summary from first line of MAIN DESCRIPTION when omitted

agent action:"plan"

  • inspects conventions + project shape
  • creates vertical-slice plan
  • returns exactly 3 target tests in structured format

agent action:"verify"

  • executes configured tests/lint/build per layer
  • checks branch naming + commit convention + TDD test budget
  • returns blocker list and final pass/fail report

agent action:"release"

  • checks CI status
  • parses commits since last tag
  • suggests semver impact (major / minor / patch)
  • can create tag and PR/MR (when enabled)

Local Data And Security

init generates:

  • .stackguide/config.json (project workflow config)

Runtime/local artifacts:

  • .stackguide/analysis-cache.json
  • .stackguide/health-history.json

These are machine-local and must not be committed.

Repository Guard

pnpm lint includes:

bash
pnpm run guard:repo

The guard fails if .stackguide artifacts are tracked.

Integrity Hardening

Cache/history persistence includes:

  • boundary/symlink checks
  • file size and entry limits
  • atomic write strategy
  • checksum validation
  • optional HMAC signature using:
bash
STACKGUIDE_INTEGRITY_KEY=<long-random-secret>

For teams, configure STACKGUIDE_INTEGRITY_KEY in local/dev and CI environments for stronger tamper resistance.

Supported Stacks

python-django, python-fastapi, python-flask, react-node, react-typescript, vue-node, nextjs, express, nestjs, laravel, rails, golang, rust, custom.

Development

Use pnpm for all commands.

bash
pnpm installpnpm lintpnpm testpnpm buildpnpm dev

Release And Version Policy

  • Current secure baseline: 4.1.2+
  • Versions from 3.0.0 up to 4.1.1 are deprecated in npm due to local artifact hygiene issues.
  • Use the latest 4.x release in all environments.

Registry Identifiers

  • npm package: @stackguide/mcp-server
  • MCP Registry server: io.github.isucorp-taimiralain/stackguide-mcp

License

GPL-3.0

来源:README.md,提交 bd42662

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v4.1.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分