GenSpec MCP Server

by iamhenry

Not rated
GitHub

About

Converts a USER-STORIES.md file into README, ROADMAP, and SYSTEM-ARCHITECTURE documents for the GenSpec workflow.

Details

Author
iamhenry
Categories
Developer Tools, Knowledge Base, Project Management, Automation

Setup

Install GenSpec MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/iamhenry/GenSpec-MCP

Follow the installation instructions in the repository README, then restart your MCP client.

A Model Context Protocol (MCP) server that converts user stories into structured documentation including README, ROADMAP, and SYSTEM-ARCHITECTURE documents through a guided approval workflow.

GenSpec MCP Server streamlines the documentation creation process by taking user stories as input and generating three key documentation artifacts:

- README.md- Project overview and setup instructions
- ROADMAP.md- Development roadmap and milestones
- SYSTEM-ARCHITECTURE.md- Technical architecture documentation

The server uses a continuation workflow where each phase can be approved or edited before proceeding to the next phase, ensuring high-quality documentation output.

- MCP Integration- Works seamlessly with Claude Desktop, VS Code with MCP extension, and Cursor
- Template-Based Generation- Uses predefined templates for consistent documentation structure
- Approval Workflow- Generate → Present → Approve/Edit cycle for each document
- Phase Dependencies- ROADMAP requires README, SYSTEM-ARCHITECTURE requires both
- Multiple Entry Points- Start from any phase or run the complete workflow
- Resource Access- Exposes templates via MCP resource protocol

- Node.js 18.0.0 or higher
- npm or yarn package manager

git clone <repository-url> cd genspec-mcp npm install npm run build

Add to your Claude Desktop configuration file:

macOS:~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:%APPDATA%\Claude\claude_desktop_config.json

{ "mcpServers": { "genspec": { "command": "npx", "args": ["genspec-mcp"] } } }

- Install the MCP extension for VS Code
- Add to your VS Code settings or MCP configuration:

{ "mcp.servers": { "genspec": { "command": "npx", "args": ["genspec-mcp"] } } }
{ "mcpServers": { "genspec": { "command": "npx", "args": ["genspec-mcp"] } } }

The GenSpec MCP server provides several ways to start the documentation generation workflow:

- start_genspec- Run full workflow: README → ROADMAP → SYSTEM-ARCHITECTURE
- generate_readme- Generate README, then continue through ROADMAP → SYSTEM-ARCHITECTURE
- generate_roadmap- Generate ROADMAP, then continue through SYSTEM-ARCHITECTURE
- generate_architecture- Generate only SYSTEM-ARCHITECTURE

- /start-genspec- Invokes start_genspec tool
- /start-readme- Invokes generate_readme tool
- /start-roadmap- Invokes generate_roadmap tool
- /start-arch- Invokes generate_architecture tool

The server accepts user stories in three priority order:
- Inline text- Pass user stories directly asuserStoryparameter
- URI reference- ProvideuserStoryUrifor the client to fetch via MCP ReadResource
- Local file- Falls back toUSER-STORIES.mdin the current directory

Use the /start-genspec prompt or start_genspec tool

- Generated document is presented for review
- Respond with approval terms: "approve", "approved", "ok", "okay", "yes", "y", "lgtm"
- Or provide edit feedback to regenerate

- After approval, the workflow continues to the next phase
- Each phase follows the same generate → present → approve/edit cycle

genspec-mcp/ ├── dist/ # Compiled JavaScript files ├── src/ # TypeScript source files │ ├── index.ts # MCP server entry point │ ├── server.ts # GenSpecServer implementation │ ├── types.ts # Type definitions and constants │ └── utils/ # Utility modules (Track B, C, D) ├── templates/ # Generation templates │ ├── 1-generate-readme.md │ ├── 2-generate-roadmap.md │ └── 3-generate-system-architecture.md ├── _ai/docs/ # Generated documentation output ├── package.json # Package configuration ├── tsconfig.json # TypeScript configuration └── README.md # This file

All generated documents are saved to the_ai/docs/directory:

- _ai/docs/README.md- Generated project README
- _ai/docs/ROADMAP.md- Generated development roadmap
- _ai/docs/SYSTEM-ARCHITECTURE.md- Generated system architecture

Issue: MCP server not detected by client

- Solution: Ensure the server is properly installed and the configuration file syntax is correct
- Check: Restart your MCP client after configuration changes

Issue: "ERR_MISSING_USER_STORIES" error

- Solution: Provide user stories via one of the three supported methods (inline, URI, or local file)
- Check: Ensure USER-STORIES.md exists if using the local file fallback

Issue: "ERR_MISSING_PREREQUISITES" error

- Solution: Generate prerequisite phases first (README before ROADMAP, README and ROADMAP before SYSTEM-ARCHITECTURE)
- Check: Use continuation workflow tools that include prerequisites

- Solution: Verify that templates/ directory exists and contains the required template files
- Check: Ensure the package was installed correctly with all files

Issue: Permission errors writing to _ai/docs/

- Solution: Ensure the current directory is writable and _ai/docs/ directory can be created
- Check: Run from a directory where you have write permissions

Enable debug logging by setting the DEBUG environment variable:

- Check theMCP specificationfor protocol details
- Review template files in the templates/ directory for generation logic
- File issues or feature requests in the project repository

- Node.js: 18.0.0 or higher
- Memory: Minimum 512MB available RAM
- Disk Space: 50MB for installation and generated files
- Network: Internet connection for npm installation

- @modelcontextprotocol/sdk- MCP protocol implementation
- typescript- TypeScript compiler and runtime
- tsx- TypeScript execution engine

The GenSpec MCP server follows a modular architecture with five main tracks:

- GenSpecServer(src/server.ts) - Main MCP server implementation
- Type System(src/types.ts) - Type definitions and constants
- Template System(src/utils/templates.ts) - Template loading and management
- Document Generation(src/utils/llm.ts) - Generation interface and context building
- Validation System(src/utils/validation.ts) - Input validation and prerequisite checking
- Approval System(src/utils/approval.ts) - Approval detection and edit feedback
- Phase Management(src/utils/phases.ts) - Workflow execution and coordination

- Prompts- Command-style prompts that invoke tools
- Resources- Template access via template:// URI scheme
- Tools- Document generation workflow tools

- Phase Dependencies- Ensures proper generation order
- Continuation Logic- Seamless transitions between phases
- Single-Workflow Concurrency- Prevents conflicting workflows per workspace
- Approval Cycles- Up to 5 edit cycles per phase before abort

MIT License - see LICENSE file for details.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Paid remote MCP for Codex run ledgers, changed-file evidence, scope summaries, missing proof checks, and client-ready handoff receipts.

A context management system designed for software development teams with customizable data storage.

The MCP server for Bitrix24 provides AI assistants with structured access to the Bitrix24 API. It delivers up-to-date method descriptions, parameters, and valid values, allowing assistants to work with precise data instead of guesswork. This reduces code errors and accelerates Bitrix24 integration development.

Connect bugAgent to any MCP-compatible AI client. File, classify, and manage bugs, feature requests, and more directly from your AI coding assistant. No context switching, no copy-paste — just describe the issue and bugAgent handles the rest.

his repository contains a fully functional MCP (Model Context Protocol) server, providing solutions for Constraint Satisfaction Problems (CSP) and Linear Programming (LP). It is based on the gurddy package and supports solving a variety of classic problems.

Structured .aide spec files that give AI agents progressive disclosure into your codebase architecture. 6 MCP tools, 8 slash commands, TUI wizard, multi-IDE support.

Assists AI developers with requirement clarification, module design, and technical architecture.

An MCP server with integrations for GitLab, Jira, Confluence, and YouTube, providing AI-powered search and development utility tools.

Manages project memory and implementation logs for Claude Code using local project files.

Paid remote MCP for CLI tool MCP, structured receipts, usage logs, and audit-ready evidence for agent and CI workflows.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.