How saml1211/prd-mcp-server works
Project type and purpose
• This is a specialized MCP (Model Context Protocol) server whose sole purpose is to generate and validate Product Requirements Documents (PRDs).
• It exposes three main “tools” over an MCP‐compatible STDIO interface:
• generate_prd
• validate_prd
• list_validation_rules
File structure
• Top‐level folders under src/:
• config/ – logging and other configuration
• storage/ – handles DB connections and template persistence
• resources/ – MCP resource registrations, including URI resolvers
• templates/ – built‐in markdown template files (standard & comprehensive)
• tools/ – implementations of the PRD generator, validator, and rule lister
• Entry point: src/index.ts orchestrates CLI/stdio transport and tool routing.
• Auxiliary scripts: generate-sample-prd.js for demo, plus CI/dev artifacts like tsconfig.json, package.json.
README for architecture hints
• Protocol: STDIO-based MCP server
• Protocol handlers map incoming requests to the appropriate tool module
• Storage layer may use an on‐disk DB or in‐memory cache to store templates and rules