SoloFlow MCP Server
A Model Context Protocol (MCP) server for project document management with 32 comprehensive prompts covering the complete software development lifecycle.
README
SoloFlow MCP Server
A Model Context Protocol (MCP) server for project document management with 32 comprehensive prompts covering the complete software development lifecycle.
English | 中文
Features
- 🚀 MCP Protocol Support: Complete Model Context Protocol implementation
- 📁 Document Management: Automatically manage project documents in
.soloflow/directory - 🔧 Four Core Operations:
list,read,update,init - 🎯 32 Comprehensive Prompts: Built-in prompts covering the entire software development lifecycle
- 🛡️ Security Isolation: Path isolation based on
projectRoot - 📝 Markdown Support: Complete Markdown document format support
- 🎯 Cursor Integration: Perfect support for Cursor IDE integration
- ⚡ Lightweight: Only stdio transport support, no HTTP dependencies
Quick Start
1. Configure Cursor
Create .cursor/mcp.json in your project root:
{
"mcpServers": {
"soloflow-mcp": {
"command": "npx",
"args": ["@benyue1978/soloflow-mcp"]
}
}
}
2. Initialize Project
# Run in project root directory
npx @benyue1978/soloflow-mcp init /path/to/your/project
3. Start Using
In Cursor, AI assistants can now:
- List project documents:
listoperation - Read document content:
readoperation - Update document content:
updateoperation - Initialize project configuration:
initoperation - Use 32 comprehensive prompts for software development lifecycle
Comprehensive Prompt System
SoloFlow MCP provides 32 prompts organized into 8 categories, covering the complete software development lifecycle:
📊 Prompt Categories Overview
| Category | Count | Description |
|---|---|---|
| Core | 4 | Essential project management functions |
| Role | 5 | Specialized functions for different development roles |
| Task | 6 | Advanced task management and breakdown functions |
| Requirements | 3 | Requirements analysis and management functions |
| Design | 5 | Comprehensive design functions |
| Development | 4 | Code implementation and development functions |
| Testing | 5 | Testing and quality assurance functions |
| Release | 5 | Complete release and deployment lifecycle management |
🎯 Scenario-Based Usage Guide
Scenario 1: New Project Setup
Goal: Initialize a new project with proper documentation and workspace setup
Prompt Sequence:
/soloflow-mcp/core/init-project- Initialize project documentation structure/soloflow-mcp/core/setup-workspace- Set up development environment with technology stack/soloflow-mcp/requirements/analyze-requirements- Analyze and document requirements/soloflow-mcp/requirements/prioritize-requirements- Prioritize requirements using MoSCoW method/soloflow-mcp/task/breakdown-requirements- Break down requirements into manageable tasks
Example Usage:
# In Cursor chat, type:
/soloflow-mcp/core/init-project
/soloflow-mcp/core/setup-workspace --frontend React --backend Node.js --testing Jest --deployment Docker --database PostgreSQL
/soloflow-mcp/requirements/analyze-requirements --domain e-commerce --scope full-system
Scenario 2: Requirements Analysis Phase
Goal: Comprehensive requirements gathering and analysis
Prompt Sequence:
/soloflow-mcp/role/analyst-mode- Switch to analyst mode for requirements focus/soloflow-mcp/requirements/analyze-requirements- Comprehensive requirements analysis/soloflow-mcp/requirements/validate-requirements- Validate requirements completeness/soloflow-mcp/requirements/prioritize-requirements- Prioritize using value-complexity matrix/soloflow-mcp/task/create-epic- Create high-level epics from requirements
Example Usage:
# In Cursor chat, type:
/soloflow-mcp/role/analyst-mode
/soloflow-mcp/requirements/analyze-requirements --domain finance --scope full-system
/soloflow-mcp/requirements/validate-requirements --validationType comprehensive
Scenario 3: System Design Phase
Goal: Design system architecture, UI, and data models
Prompt Sequence:
/soloflow-mcp/role/architect-mode- Switch to architect mode for design focus/soloflow-mcp/design/system-architecture- Design overall system architecture/soloflow-mcp/design/api-interface- Design API interfaces and contracts/soloflow-mcp/design/database-schema- Design database schema and data models/soloflow-mcp/design/create-ui- Design user interface and user experience/soloflow-mcp/design/review-design- Review and validate design decisions
Example Usage:
# In Cursor chat, type:
/soloflow-mcp/role/architect-mode
/soloflow-mcp/design/system-architecture --architectureType microservices
/soloflow-mcp/design/api-interface --apiType REST
/soloflow-mcp/design/database-schema --dbType PostgreSQL
Scenario 4: Development Phase
Goal: Implement features with proper code quality and testing
Prompt Sequence:
/soloflow-mcp/role/developer-mode- Switch to developer mode for implementation focus/soloflow-mcp/task/breakdown-architecture- Break down architecture into implementation tasks/soloflow-mcp/development/write-code- Implement features with best practices/soloflow-mcp/development/code-review-checklist- Use code review checklist/soloflow-mcp/testing/write-unit-tests- Write comprehensive unit tests/soloflow-mcp/development/fix-bug- Debug and fix issues as they arise
Example Usage:
# In Cursor chat, type:
/soloflow-mcp/role/developer-mode
/soloflow-mcp/development/write-code --feature user-authentication --language TypeScript --framework Express
/soloflow-mcp/testing/write-unit-tests --component auth-service --language TypeScript --framework Jest
/soloflow-mcp/development/code-review-checklist --codeLanguage TypeScript
Scenario 5: Testing Phase
Goal: Comprehensive testing strategy and execution
Prompt Sequence:
/soloflow-mcp/role/tester-mode- Switch to tester mode for quality focus/soloflow-mcp/testing/create-test-plan- Create comprehensive test plan/soloflow-mcp/testing/write-unit-tests- Write unit tests for all components/soloflow-mcp/testing/run-tests- Execute tests and analyze results/soloflow-mcp/testing/test-report- Generate detailed test reports/soloflow-mcp/testing/performance-test- Conduct performance testing
Example Usage:
# In Cursor chat, type:
/soloflow-mcp/role/tester-mode
/soloflow-mcp/testing/create-test-plan --feature payment-system --testType comprehensive
/soloflow-mcp/testing/run-tests --testType all --environment staging
/soloflow-mcp/testing/performance-test --component api-gateway --loadType stress
Scenario 6: Release Management
Goal: Safe and reliable deployment with monitoring
Prompt Sequence:
/soloflow-mcp/role/project-manager-mode- Switch to project manager mode for coordination/soloflow-mcp/release/commit-changes- Commit changes with proper conventions/soloflow-mcp/release/create-release- Create software release with versioning/soloflow-mcp/release/deployment-checklist- Use deployment checklist/soloflow-mcp/release/monitor-deployment- Monitor deployment status/soloflow-mcp/release/rollback-plan- Prepare rollback plan if needed
Example Usage:
# In Cursor chat, type:
/soloflow-mcp/role/project-manager-mode
/soloflow-mcp/release/commit-changes --commitType feat --scope user-authentication
/soloflow-mcp/release/create-release --version 1.2.0 --releaseType minor
/soloflow-mcp/release/deployment-checklist --environment production
Scenario 7: Bug Fixing and Maintenance
Goal: Efficient bug fixing and code maintenance
Prompt Sequence:
/soloflow-mcp/development/fix-bug- Analyze and fix bugs/soloflow-mcp/development/refactor-code- Refactor code for better maintainability/soloflow-mcp/testing/run-tests- Run tests to ensure fixes work/soloflow-mcp/release/commit-changes- Commit fixes with proper messages/soloflow-mcp/core/generate-docs- Update documentation for changes
Example Usage:
# In Cursor chat, type:
/soloflow-mcp/development/fix-bug --bugDescription "User login fails with 500 error" --severity high
/soloflow-mcp/development/refactor-code --component auth-service --reason "Improve error handling"
/soloflow-mcp/core/generate-docs --docType api --component authentication
Scenario 8: Project Management and Coordination
Goal: Effective project management and team coordination
Prompt Sequence:
/soloflow-mcp/role/project-manager-mode- Switch to project manager mode/soloflow-mcp/task/add-task- Add new tasks to project/soloflow-mcp/task/estimate-tasks- Estimate time and effort for tasks/soloflow-mcp/task/create-story- Create detailed user stories/soloflow-mcp/core/check-project-status- Check overall project status/soloflow-mcp/task/create-epic- Organize tasks into epics
Example Usage:
# In Cursor chat, type:
/soloflow-mcp/role/project-manager-mode
/soloflow-mcp/task/add-task --taskTitle "Implement OAuth integration" --priority high --category backend --estimatedTime 3d
/soloflow-mcp/task/estimate-tasks
/soloflow-mcp/core/check-project-status
📋 Complete Prompt Reference
Core Functions (4 prompts)
/soloflow-mcp/core/init-project- Initialize project documentation structure/soloflow-mcp/core/check-project-status- Check project status and documentation completeness/soloflow-mcp/core/generate-docs- Generate comprehensive documentation for current implementation/soloflow-mcp/core/setup-workspace- Set up project workspace with technology stack
Role-based Functions (5 prompts)
/soloflow-mcp/role/analyst-mode- Switch to analyst mode for requirements analysis/soloflow-mcp/role/architect-mode- Switch to architect mode for system design/soloflow-mcp/role/developer-mode- Switch to developer mode for implementation/soloflow-mcp/role/tester-mode- Switch to tester mode for quality assurance/soloflow-mcp/role/project-manager-mode- Switch to project manager mode for coordination
Task Management (6 prompts)
/soloflow-mcp/task/add-task- Add new tasks to project/soloflow-mcp/task/breakdown-requirements- Break down requirements into tasks/soloflow-mcp/task/breakdown-architecture- Break down architecture into implementation tasks/soloflow-mcp/task/create-epic- Create large-scale feature epics/soloflow-mcp/task/create-story- Create detailed user stories/soloflow-mcp/task/estimate-tasks- Estimate time and effort for tasks
Requirements Analysis (3 prompts)
/soloflow-mcp/requirements/analyze-requirements- Comprehensive requirements analysis/soloflow-mcp/requirements/validate-requirements- Validate requirements completeness/soloflow-mcp/requirements/prioritize-requirements- Prioritize requirements using various methods
Design Functions (5 prompts)
/soloflow-mcp/design/create-ui- Design user interface and user experience/soloflow-mcp/design/system-architecture- Design overall system architecture/soloflow-mcp/design/api-interface- Design API interfaces and contracts/soloflow-mcp/design/database-schema- Design database schema and data models/soloflow-mcp/design/review-design- Review and validate design decisions
Development Functions (4 prompts)
/soloflow-mcp/development/write-code- Implement features with best practices/soloflow-mcp/development/fix-bug- Debug and fix code issues/soloflow-mcp/development/refactor-code- Refactor code for better maintainability/soloflow-mcp/development/code-review-checklist- Use comprehensive code review checklist
Testing Functions (5 prompts)
/soloflow-mcp/testing/create-test-plan- Create comprehensive test plans/soloflow-mcp/testing/write-unit-tests- Write unit tests for components/soloflow-mcp/testing/run-tests- Execute tests and analyze results/soloflow-mcp/testing/test-report- Generate detailed test reports/soloflow-mcp/testing/performance-test- Conduct performance testing
Release Management (5 prompts)
/soloflow-mcp/release/commit-changes- Commit changes with proper conventions/soloflow-mcp/release/create-release- Create software releases with versioning/soloflow-mcp/release/deployment-checklist- Use deployment preparation checklist/soloflow-mcp/release/rollback-plan- Prepare rollback plans/soloflow-mcp/release/monitor-deployment- Monitor deployment status
Supported Document Types
| Document Type | Filename | Purpose |
|---|---|---|
overview |
overview.md |
Project overview and summary |
requirements |
requirements.md |
Functional and non-functional requirements |
system_architecture |
system_architecture.md |
Technical architecture design |
test_strategy |
test_strategy.md |
Testing strategy and plans |
tasks |
tasks.md |
Project task lists and progress |
ui_design |
ui_design.md |
UI/UX design specifications |
deployment |
deployment.md |
Deployment and infrastructure docs |
notes |
notes.md |
Project notes and observations |
MCP Operations
Core Operations
list - List Documents
List all documents in the .soloflow/ directory:
{
"name": "list",
"description": "List all documents in the .soloflow directory",
"inputSchema": {
"projectRoot": "string - Absolute path to project root"
}
}
Response Example:
[
{
"type": "requirements",
"title": "Project Requirements",
"filename": "requirements.md"
},
{
"type": "tasks",
"title": "Project Tasks",
"filename": "tasks.md"
}
]
read - Read Document
Read content of a specific document type:
{
"name": "read",
"description": "Read document content by type",
"inputSchema": {
"projectRoot": "string - Absolute path to project root",
"type": "string - Document type (overview, requirements, etc.)"
}
}
Response Example:
{
"raw": "# Project Requirements\n\n## Functional Requirements\n1. User management\n2. Data storage"
}
update - Update Document
Create or update document content:
{
"name": "update",
"description": "Create or update document content",
"inputSchema": {
"projectRoot": "string - Absolute path to project root",
"type": "string - Document type (overview, requirements, etc.)",
"content": "string - Document content in Markdown format"
}
}
Response Example:
{
"ok": true,
"message": "Document updated successfully"
}
init - Initialize Project
Initialize project configuration, create .cursor/rules/soloflow.mdc file:
{
"name": "init",
"description": "Initialize project configuration",
"inputSchema": {
"projectRoot": "string - Absolute path to project root"
}
}
Response Example:
{
"message": "Project initialized successfully. Created .cursor/rules/soloflow.mdc"
}
Security Features
Path Isolation
- All operations require
projectRootparameter - Strict absolute path validation
- Protection against path traversal attacks
- Project root directory must exist
Document Type Validation
- Predefined document type whitelist
- Strict type validation
- Prevention of arbitrary file access
Error Handling
- Detailed error messages
- Graceful failure handling
- Secure default behavior
Development
Local Development
# Clone repository
git clone https://github.com/benyue1978/solo-flow-mcp.git
cd solo-flow-mcp
# Install dependencies
npm install
# Build project
npm run build
# Run tests
npm test
# Start development server
npm start
Project Structure
├── src/
│ ├── index.ts # Service startup entry
│ ├── context.ts # Path validation and utility functions
│ ├── tools/ # MCP operation handlers
│ │ ├── list.ts # List documents
│ │ ├── read.ts # Read documents
│ │ ├── update.ts # Update documents
│ │ └── init.ts # Initialize project
│ ├── prompts/ # Comprehensive prompt system
│ │ ├── core-prompts.ts # Core project management prompts
│ │ ├── role-prompts.ts # Role-based prompts
│ │ ├── task-prompts.ts # Task management prompts
│ │ ├── requirements-prompts.ts # Requirements analysis prompts
│ │ ├── design-prompts.ts # Design and architecture prompts
│ │ ├── development-prompts.ts # Development and coding prompts
│ │ ├── testing-prompts.ts # Testing and QA prompts
│ │ ├── release-prompts.ts # Release and deployment prompts
│ │ ├── docs-prompts.ts # Documentation prompts
│ │ ├── workspace-prompts.ts # Workspace setup prompts
│ │ ├── categories.ts # Prompt categories
│ │ ├── mapping.ts # Path mapping system
│ │ └── index.ts # Prompt registry
│ ├── types/
│ │ └── docTypes.ts # Document type definitions
│ └── resources/
│ └── soloflow-content.ts # Resource file content
├── tests/ # Test files
│ ├── unit/ # Unit tests
│ ├── integration/ # Integration tests
│ └── utils/ # Test utilities
└── .soloflow/ # Project documentation
Testing
Run All Tests
npm test
Run Specific Tests
# Unit tests
npm run test:unit
# Integration tests
npm run test:integration
# Coverage tests
npm run test:coverage
Test Coverage
- Unit tests: 50 test cases
- Integration tests: mcp-inspector integration
- Coverage target: > 85%
Usage Examples
Example 1: Initialize Project
# In project root directory
npx @benyue1978/soloflow-mcp init /Users/username/my-project
Example 2: Create Requirements Document
# Create requirements document via MCP operation
npx @benyue1978/soloflow-mcp update \
--projectRoot /Users/username/my-project \
--type requirements \
--content "# Project Requirements\n\n## Functional Requirements\n1. User authentication\n2. Data persistence"
Example 3: Using in Cursor
- Configure Cursor settings
- Initialize project
- In Cursor, AI assistants can:
- List project documents
- Read document content
- Update document content
- Manage project configuration
- Use 32 comprehensive prompts for software development lifecycle
Example 4: Using Prompts in Cursor
-
Configure Cursor settings (as shown above)
-
In Cursor's chat dialog, type any of the 32 prompts:
/soloflow-mcp/core/init-project- Initialize project documentation/soloflow-mcp/requirements/analyze-requirements- Analyze requirements/soloflow-mcp/design/system-architecture- Design system architecture/soloflow-mcp/development/write-code- Write code with best practices/soloflow-mcp/testing/create-test-plan- Create test plans/soloflow-mcp/release/commit-changes- Commit changes properly
-
The AI will automatically execute the prompt and update your project documentation
Troubleshooting
Common Issues
Q: Why do we need absolute paths? A: For security isolation, ensuring the MCP service can only access the specified project directory.
Q: How to reset project configuration?
A: Delete the .cursor/rules/soloflow.mdc file, then run the init operation again.
Q: What document formats are supported? A: Currently supports Markdown format, other formats may be supported in the future.
Q: How to handle concurrent writes? A: Current version uses simple file system operations, it's recommended to avoid concurrent writes to the same document.
Q: How to use prompts effectively? A: Use prompts in sequence following the software development lifecycle. Start with core functions, then move to specific phases like requirements, design, development, testing, and release.
Error Codes
| Error | Cause | Solution |
|---|---|---|
Project root directory does not exist |
Project root directory doesn't exist | Ensure path is correct and directory exists |
Invalid document type |
Document type not in whitelist | Use predefined document types |
Document content cannot be empty |
Document content is empty | Provide valid document content |
Contributing
Contributions are welcome! Please follow these steps:
- Fork the project
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
MIT License - see LICENSE file for details
Changelog
v1.1.0
- Major version bump with enhanced project documentation management
- Update all internal project documents to reflect v1.0.6 features and v1.1.0 status
- Improve package.json with better description and metadata
- Enhance project structure with comprehensive documentation updates
- Add detailed technical specifications and architecture documentation
- Update deployment and test strategy documentation
- Improve project notes with comprehensive development history
- Ensure all 8 core documents are synchronized with latest project status
- Maintain 50 test cases with 100% pass rate
- Complete bilingual documentation support (English and Chinese)
v1.0.6
- Add comprehensive bilingual documentation support with Chinese README
- Add language selection links between English and Chinese README files
- Add 32 comprehensive prompts covering entire software development lifecycle
- Add scenario-based usage guide with 8 common development scenarios
- Add role-based prompts for different development roles
- Add requirements analysis, design, development, testing, and release management prompts
- Add git_commit.mdc rule file for standardized Git commit messages
- Create git-commit-content.ts with embedded git commit guidelines
- Update init tool to automatically create git_commit.mdc during project initialization
- Enhance project setup with Git commit message conventions
- Follow consistent pattern for rule file creation and management
v1.0.5
- Add comprehensive prompt system with 32 prompts covering entire software development lifecycle
- Add scenario-based usage guide with 8 common development scenarios
- Add role-based prompts for different development roles
- Add requirements analysis, design, development, testing, and release management prompts
- Add git_commit.mdc rule file for standardized Git commit messages
- Create git-commit-content.ts with embedded git commit guidelines
- Update init tool to automatically create git_commit.mdc during project initialization
- Enhance project setup with Git commit message conventions
- Follow consistent pattern for rule file creation and management
v1.0.4
- Update soloflow.mdc content with latest MCP Prompts and Read Before Update rules
- Sync soloflow-content.ts with latest documentation guidelines
- Improve ordered list formatting for MD029 compliance
- Enhance documentation structure and best practices
v1.0.2
- Add comprehensive project documentation (overview, ui_design, deployment, notes)
- Update README.md with detailed prompts usage guide
- Add Cursor integration examples for direct prompt usage
- Improve documentation structure and user experience
v1.0.1
- Add six core prompts for software engineering best practices
- Add test coverage
- Add Cursor integration support
- Add NPM package release
v1.0.0
- Initial version release
- Support for list, read, update, init operations
- Complete test suite
- Cursor integration support
- NPM package release
Contact
- Author: SongYue yuesong@gmail.com
- Project URL: https://github.com/benyue1978/solo-flow-mcp
- NPM Package: https://www.npmjs.com/package/@benyue1978/soloflow-mcp
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。