
Mercury Spec Ops
io.github.n0zer0d4y由 GitHub 帳號 n0zer0d4y 發布v0.1.2更新於 Oct 25, 2026
Modular MCP server for dynamic prompt generation and software development analysis tools
概覽
一個本機 MCP 伺服器,為助理提供工具,依技術堆疊組裝 PRD、程式碼庫分析與缺陷分析的提示詞與範本。
- 可以做什麼
- 依專案名稱、描述、目標受眾、功能與技術堆疊產生 PRD 提示詞,並搭配可讀取的 PRD 範本資源。依儲存庫路徑、技術堆疊與分析重點產生程式碼庫分析提示詞,並搭配動態組裝的範本。依儲存庫路徑、缺陷描述、受影響元件、嚴重程度與技術堆疊產生缺陷分析提示詞,並搭配缺陷分析範本。透過列舉參數從模組化元件組裝提示詞與範本,技術堆疊與分析重點支援以逗號分隔的多值輸入。
- 適用情境
- 適合需要助理產出結構化、貼合特定技術的文件時使用,例如產品需求文件、程式碼庫審查或缺陷報告。也適合橫跨多個已支援技術堆疊與分析重點、希望統一範本而非臨時撰寫提示詞的團隊。
- 執行需求
- 以本機 stdio 程序執行,可從 npm 安裝 @n0zer0d4y/mercury-spec-ops 或透過 npx 直接執行,因此需要 Node.js。需在 Claude Desktop、Cursor 等 MCP 用戶端中設定,修改後重新啟動用戶端。未宣告任何帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mercury Spec Ops,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Mercury Spec Ops MCP Server: Prompts and Resources as Tools
[TypeScript] [MCP Registry] [MCP Dev] [MCP Server] [MCP Server with Tools] [standard-readme compliant] [License: MIT] [MseeP.ai Security Assessment Badge]
The first MCP server to expose dynamic, AI-invocable tools for prompt generation and template assembly.
Transform how AI assistants interact with specialized content. Instead of static prompts and resources, Mercury Spec Ops provides 6 programmable tools that enable AI to dynamically generate technology-specific prompts and comprehensive templates on-demand. Built on a sophisticated modular architecture with 31 technology stacks, 10 analysis dimensions, and 34 template sections—all accessible through simple tool calls.
Features
This MCP server provides a modular, extensible architecture with:
Prompts (Enhanced with Enum Support)
- PRD Prompt - Generate Product Requirements Document with modular technology-specific analysis
- Codebase Analysis Prompt - Analyze codebases with modular technology/focus-specific analysis
- Bug Analysis Prompt - Analyze bugs with modular severity/technology-specific analysis
Resources (Modular Templates)
- PRD Template - Modular PRD template with technology-specific sections
- Codebase Analysis Template - Modular codebase analysis template with technology/focus-specific sections
- Bug Analysis Template - Modular bug analysis template with severity/technology-specific sections
Key Capabilities
Enum-Based Input Validation
- Technology Stack (31 total):
- Languages (11): JavaScript, TypeScript, Python, Java, Go, Rust, C#, PHP, Ruby, Swift, Kotlin
- Runtimes (1): Node.js
- Frontend (3): React, Angular, Vue
- Backend (7): Express, NestJS, Django, Flask, Spring, Laravel, Rails
- Databases (4): MongoDB, PostgreSQL, MySQL, Redis
- Cloud (3): AWS, Azure, GCP
- DevOps (2): Docker, Kubernetes
- Analysis Focus (10 total): architecture, security, performance, testing, documentation, maintainability, scalability, reliability, code-quality, dependencies
- Bug Severity (4 total): low, medium, high, critical
- Target Audience: developers, business-users, enterprise, startup, healthcare, finance, and more
Programmatic Prompt Assembly
- Base prompts + 31 technology modules + 10 focus modules + 4 severity modules
- Automatic module selection based on input parameters
- Priority-based module ordering
- Multi-value support: Analyze multiple technologies and focus areas simultaneously
- Comma-separated input: "node.js,react,postgresql" or "security,performance,code-quality"
- Custom instruction integration
- Intelligent fallback to base prompts
Modular Template System
- Template sections with dependency resolution
- Technology-specific template sections
- Focus-specific template sections
- Custom section support
Installation
Option 1: Local Development
- Clone and install dependencies:
- Run the server locally:
Option 2: Install from npm
Or use directly with npx (no installation required):
Usage
Integration with MCP Clients
Configure the server in your MCP client (Claude Desktop, Cursor, etc.):
Using npx (Recommended - No Installation)
For Claude Desktop (claude_desktop_config.json):
For Cursor (~/.cursor/mcp.json):
Using Local Installation
For Claude Desktop (claude_desktop_config.json):
For Cursor (~/.cursor/mcp.json):
Windows Local Path Example (Cursor):
Important Notes:
- npx: Automatically fetches the latest version from npm (recommended for most users)
- Local: Replace the path with your actual project location and run
npm run buildfirst - Restart: Restart your MCP client after configuration changes
Workflow Examples
Example 1: Enhanced Codebase Analysis
- User Prompt: "Analyze this Node.js/TypeScript codebase focusing on security and performance"
- Claude Desktop Action:
- Calls the
codebase-analysis-promptwith technology_stack: "node.js,typescript" and analysis_focus: "security,performance" - System programmatically assembles: base prompt + Node.js module + TypeScript module + security module + performance module
- The prompt instructs Claude to first read the
resource://codebase-analysis-template - Template builder assembles: base template + Node.js sections + TypeScript sections + security sections + performance sections
- Claude reads the dynamically assembled template
- Claude analyzes the codebase and generates a comprehensive technology-specific report
- Calls the
Example 2: Enhanced Bug Analysis
- User Prompt: "Analyze this critical security bug in React application"
- Claude Desktop Action:
- Calls the
bug-analysis-promptwith technology_stack: "react", severity_level: "critical", and bug_type: "security" - System assembles: base prompt + React module + security module + critical severity module
- Template includes: general sections + React-specific + security-specific + critical-severity sections
- Claude reads the bug analysis template
- Claude analyzes the bug and generates a comprehensive technology and severity-specific report
- Calls the
Example 3: PRD Generation with Technology Support
- User Prompt: "Help me create a PRD for a React-based task management application"
- Claude Desktop Action:
- Calls the
prd-promptwith project details and technology_stack: "react" - System assembles: base prompt + React module
- Template builder includes: base PRD template + React-specific considerations
- Claude reads the technology-enhanced PRD template
- Claude generates a comprehensive PRD with React-specific sections
- Calls the
Prompt Details
PRD Prompt
- Name:
prd-prompt - Arguments:
project_name(required): Name of the software projectproject_description(required): Brief description of the projecttarget_audience(optional): Target audience for the product (enum values)project_type(optional): Type of project (enum values)key_features(optional): Key features to include in the PRDtechnology_stack(optional): Technology stack to be used (enum values)custom_instructions(optional): Custom instructions for PRD generation
Codebase Analysis Prompt
- Name:
codebase-analysis-prompt - Arguments:
repository_path(required): Path to the repository to analyzetechnology_stack(required): Technology stack used in the codebase (enum values)analysis_focus(optional): Focus areas for analysis (enum values)custom_instructions(optional): Custom instructions for codebase analysis
Bug Analysis Prompt
- Name:
bug-analysis-prompt - Arguments:
repository_path(required): Path to the repository with bugs to analyzebug_description(required): Description of the bug or issue to analyzeaffected_components(optional): Components affected by the bugseverity_level(optional): Severity level of the bug (enum values)bug_type(optional): Type of bug (enum values)technology_stack(optional): Technology stack used in the affected components (enum values)custom_instructions(optional): Custom instructions for bug analysis
Resource Details
PRD Template
- URI:
resource://prd-template - Format: Markdown
- Content: Modular PRD template with technology-specific sections that dynamically assemble based on input parameters
Codebase Analysis Template
- URI:
resource://codebase-analysis-template - Format: Markdown
- Content: Modular codebase analysis template with technology and focus-specific sections that assemble based on analysis parameters
Bug Analysis Template
- URI:
resource://bug-analysis-template - Format: Markdown
- Content: Modular bug analysis template with severity and technology-specific sections that assemble based on bug parameters
Development
Project Structure
Testing
The project includes a comprehensive test suite with 88% coverage:
Test Statistics:
- 66 tests (100% passing)
- 88.48% overall coverage
- Statement coverage: 88.48%
- Line coverage: 88.70%
Building for Production
Linting
Extending the System
Adding New Technology Modules
- Add the technology to the
TechnologyStackenum insrc/types/enums.ts - Create a new module file in the appropriate category:
- Languages:
src/prompts/modules/technology/languages/ - Frameworks:
src/prompts/modules/technology/frameworks/frontend/orbackend/ - Databases:
src/prompts/modules/technology/databases/ - Cloud:
src/prompts/modules/technology/cloud/ - Tools:
src/prompts/modules/technology/tools/
- Languages:
- Implement the
TechnologyPromptModuleinterface - Export from the category's
index.ts - Register it in
prompt-builder.ts - Add corresponding template sections in
src/resources/templates/ - Write tests in
src/__tests__/
Adding New Focus Areas
- Add the focus area to the
AnalysisFocusenum insrc/types/enums.ts - Create a new module file in
src/prompts/modules/analysis-focus/ - Implement the
AnalysisFocusPromptModuleinterface - Export from
analysis-focus/index.ts - Register it in
prompt-builder.ts - Add corresponding template sections
- Write tests
Adding New Severity Levels
- Add the severity to the
BugSeverityenum insrc/types/enums.ts - Create a new module file in
src/prompts/modules/bug-severity/ - Implement the
BugSeverityPromptModuleinterface - Register it in the prompt builder
- Add corresponding template sections
- Write tests
Contributing
Contributions are welcome! Please follow these guidelines:
- Fork the repository and create a feature branch
- Follow existing code patterns and maintain test coverage above 85%
- Use Conventional Commits format (feat, fix, docs, test, chore)
- Ensure all tests pass before submitting a pull request
- See Extending the System for adding new modules
Report issues on GitHub Issues with clear reproduction steps.
License
This project is licensed under the MIT License - see LICENSE file for details.
來源:README.md,提交 73aa180
工具
0版本歷史
1- v0.1.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分