Token导航 LogoToken导航TokenDH.com
Vibe Coder MCP logo
开发工具stdio官方级别未说明来源级核验

Vibe Coder MCP

MCP Server

vibe-coder-mcp@latest

Vibe-Coder-MCP server is designed to supercharge your AI assistant (like Cursor, Cline AI, or Claude Desktop) with powerful tools for software development.

工具数

10

提示词数

0

GitHub Stars

99

资源数

0
AI开发工具代码分析TypeScriptClaude DesktopClaude DesktopClaudeCursorClineWindsurfVS Code

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

freshtechbro

提供方

freshtechbro

最后核验

2026/5/18 04:06

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx vibe-coder-mcp@latest --setup

详细介绍

Vibe Coder MCP Server

](https://www.npmjs.com/package/vibe-coder-mcp) ](https://www.npmjs.com/package/vibe-coder-mcp) ](https://www.npmjs.com/package/vibe-coder-mcp) ](https://github.com/freshtechbro/Vibe-Coder-MCP/releases) ](https://nodejs.org/) ![License](LICENSE) ](https://github.com/freshtechbro/Vibe-Coder-MCP/stargazers)

Vibe Coder is an MCP (Model Context Protocol) server designed to supercharge your AI assistant (like Cursor, Cline AI, or Claude Desktop) with powerful tools for software development. It helps with research, planning, generating requirements, creating starter projects, and more!

🆕 What's New in Version 0.3.5

🎉 Latest Release - Enhanced CLI, REPL, and Parameter Extraction

Major Improvements:

  • ✨ Complete Hybrid Matcher Overhaul: All 15 MCP tools now have comprehensive parameter extraction
  • 🚀 CLI/REPL Experience: Interactive confirmations, job status polling with visual progress
  • 🔧 Fixed Critical Bugs: Task-list-generator auto-generates user stories, multi-turn conversations work flawlessly
  • 📊 Better Tool Matching: Multi-strategy approach (keyword 35%, pattern 30%, semantic 15%, LLM 20%)
  • ⚡ TypeScript Strict Mode: Zero any types, all explicit typing, production-grade code quality

User Experience Enhancements:

  • Low-confidence matches now prompt for user confirmation
  • Visual progress indicators for long-running jobs
  • Cleaner output with JSON log filtering in interactive mode
  • Session persistence across commands
  • Enhanced error messages and validation feedback

Previous Notable Releases

Version 0.3.1 - Global Installation & Synchronization

  • Fixed global/local version synchronization issues
  • Enhanced clean build process for installations
  • Improved packaging workflow for NPM publication

Version 0.2.8 - CLI Interactive Mode

  • Fixed configuration persistence in interactive mode
  • Enhanced project root detection for CLI users
  • Improved context-aware configuration

Version 0.2.3 - Interactive REPL & Setup Wizard

  • Interactive REPL Mode with chat-style interface and session persistence
  • Enhanced Setup Wizard with automatic first-run detection
  • Configuration Templates in src/config-templates/
  • Performance Improvements with optimized memory usage
  • Unified CLI Binary - single vibe command for all operations

🚀 Quick Start

# Install globally (recommended)
npm install -g vibe-coder-mcp@latest

# Run setup wizard on first use
vibe --setup

# Or use instantly with npx (no installation)
npx vibe-coder-mcp@latest --setup

The setup wizard will:

  1. ✅ Configure your OpenRouter API key
  2. ✅ Set up project directories
  3. ✅ Create configuration files from templates
  4. ✅ Validate your environment
  5. ✅ Get you ready to use all features!

📦 Installation

](https://www.npmjs.com/package/vibe-coder-mcp) ](https://www.npmjs.com/package/vibe-coder-mcp)

# Recommended: Install globally for the 'vibe' command
npm install -g vibe-coder-mcp@latest

# Or run instantly without installation
npx vibe-coder-mcp@latest

Installation Methods

Global Installation (Recommended)

npm install -g vibe-coder-mcp@latest

# Use the 'vibe' command anywhere
vibe                                    # Start MCP server
vibe "create a PRD for a todo app"     # CLI mode
vibe --interactive                     # Interactive REPL mode
vibe --setup                           # Setup wizard

Quick Run with npx

# No installation needed
npx vibe-coder-mcp@latest
npx vibe-coder-mcp@latest "research React best practices"

Local Project Installation

npm install vibe-coder-mcp
npx vibe-coder-mcp "map the codebase structure"

Command Line Usage

# MCP Server Mode (for Claude Desktop, Cursor, etc.)
vibe                                    # Start with stdio transport
vibe --sse                             # Start with Server-Sent Events

# CLI Mode - Natural Language Commands
vibe "research modern JavaScript frameworks"
vibe "create a PRD for an e-commerce platform"
vibe "map the codebase structure" --json
vibe "generate user stories for auth system"

# Interactive REPL Mode
vibe --interactive                     # Chat interface with context retention

# Configuration
vibe --setup                           # Run setup wizard
vibe --help                            # Show all options
vibe --version                         # Show version

Interactive Mode Features:

  • Chat-style conversation with context retention
  • Live tool execution with progress indicators
  • Session persistence and history
  • Markdown rendering support
  • Multiple themes and customization
  • Slash commands for quick actions

🎯 MCP Client Integration (Claude Desktop, Cursor, Cline AI)

Quick Integration Guide

Vibe-Coder MCP integrates seamlessly with any MCP-compatible client. Here's how to configure it:

Option 1: Using NPX (Recommended)

In your MCP client's server configuration dialog:

  • Server Name: vibe-coder-mcp
  • Command/URL: npx
  • Arguments: vibe-coder-mcp
  • Environment Variables:

- OPENROUTER_API_KEY: Your OpenRouter API key (required) - VIBE_PROJECT_ROOT: /path/to/your/project (required) - LOG_LEVEL: info (optional) - NODE_ENV: production (optional)

Option 2: Global Installation

# First install globally
npm install -g vibe-coder-mcp

Then configure:

  • Command/URL: vibe
  • Arguments: (leave empty)
  • Environment Variables: Same as Option 1

Option 3: Node with Full Path

  • Command/URL: node
  • Arguments: /path/to/node_modules/vibe-coder-mcp/build/index.js
  • Environment Variables: Same as Option 1

Claude Desktop Specific Configuration

For Claude Desktop users, add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "vibe-coder-mcp": {
      "command": "npx",
      "args": ["vibe-coder-mcp"],
      "env": {
        "OPENROUTER_API_KEY": "your-openrouter-api-key",
        "VIBE_PROJECT_ROOT": "/path/to/your/project",
        "LOG_LEVEL": "info",
        "NODE_ENV": "production"
      }
    }
  }
}

See example_claude_desktop_config.json for a complete example.

Available Tools After Integration

Once configured, your MCP client will have access to:

  • vibe-task-manager: AI-native task management with RDD methodology
  • research-manager: Deep research using Perplexity integration
  • map-codebase: Advanced codebase analysis (35+ languages)
  • curate-context: Intelligent context curation for AI development
  • generate-prd: Product requirements document generator
  • generate-user-stories: User story generator
  • generate-task-list: Task list generator
  • generate-fullstack-starter-kit: Project scaffolding tool
  • run-workflow: Multi-step workflow execution

Testing Your Integration

After configuration, test by asking your AI assistant:

  • "Use vibe to research React best practices"
  • "Map the codebase for this project"
  • "Generate a PRD for a task management app"

🆕 Unified Project Root Configuration

Zero Configuration for CLI Users

# Automatic project detection - just run from your project!
cd /path/to/your/project
vibe "map the codebase structure"

Simple Configuration for MCP Clients

{
  "env": {
    "OPENROUTER_API_KEY": "your_key_here",
    "VIBE_PROJECT_ROOT": "/path/to/your/project"
  }
}
  • One Variable: VIBE_PROJECT_ROOT replaces multiple directory configs
  • Auto-Detection: CLI automatically detects project root
  • Backward Compatible: Legacy variables still supported

🔧 Environment Configuration

Required: You need an OpenRouter API key to use Vibe Coder MCP.

Get Your OpenRouter API Key

  1. Visit openrouter.ai
  2. Create an account if you don't have one
  3. Navigate to API Keys section
  4. Create a new API key and copy it

Set Up Environment Variables

Option 1: Using Setup Wizard (Recommended for v0.2.3+)

# Run the interactive setup wizard
vibe --setup

# The wizard will:
# • Configure your OpenRouter API key
# • Set up project directories
# • Create configuration files
# • Validate your setup

Option 2: Environment Variables

# Set your OpenRouter API key
export OPENROUTER_API_KEY="your_api_key_here"

# Optional: Set custom directories
export VIBE_CODER_OUTPUT_DIR="/path/to/output/directory"
export VIBE_PROJECT_ROOT="/path/to/your/project"

# Legacy variables (still supported for backward compatibility)
export CODE_MAP_ALLOWED_DIR="/path/to/your/source/code"
export VIBE_TASK_MANAGER_READ_DIR="/path/to/your/project"

Option 3: Create .env file (templates provided in v0.2.3+) Create a .env file in your working directory (or copy from src/config-templates/.env.template):

# Required: Your OpenRouter API key
OPENROUTER_API_KEY="your_api_key_here"

# Optional: Unified project root configuration
VIBE_CODER_OUTPUT_DIR="/path/to/output/directory"
VIBE_PROJECT_ROOT="/path/to/your/project"
VIBE_USE_PROJECT_ROOT_AUTO_DETECTION="true"

# Legacy variables (still supported for backward compatibility)
CODE_MAP_ALLOWED_DIR="/path/to/your/source/code"  
VIBE_TASK_MANAGER_READ_DIR="/path/to/your/project"

# Optional: Other settings
OPENROUTER_BASE_URL="https://openrouter.ai/api/v1"
GEMINI_MODEL="google/gemini-2.5-flash-preview-05-20"

Directory Configuration (Unified & Simplified)

🆕 Unified Configuration (Recommended)

  • VIBE_PROJECT_ROOT: Single variable for all project operations (automatic detection enabled by default for CLI)
  • VIBE_USE_PROJECT_ROOT_AUTO_DETECTION: Enable automatic project root detection for CLI users (default: "true")
  • VIBE_CODER_OUTPUT_DIR: Where generated files are saved (default: ./VibeCoderOutput/)

Legacy Configuration (Still Supported)

  • CODE_MAP_ALLOWED_DIR: Security boundary for code analysis (fallback if VIBE_PROJECT_ROOT not set)
  • VIBE_TASK_MANAGER_READ_DIR: Security boundary for task manager operations (fallback if VIBE_PROJECT_ROOT not set)

Auto-Detection Benefits:

  • Zero Configuration: CLI users get automatic project root detection
  • Context Aware: Different behavior for CLI vs MCP client usage
  • Intelligent Fallbacks: 5-priority resolution chain ensures reliable operation

🔌 MCP Client Setup

Configure your AI assistant to connect to Vibe Coder MCP:

For Cursor AI / Windsurf / VS Code MCP Clients

Add this to your MCP settings (usually in settings.json):

{
  "mcpServers": {
    "vibe-coder-mcp": {
      "command": "npx",
      "args": ["vibe-coder-mcp"],
      "env": {
        "OPENROUTER_API_KEY": "your_api_key_here"
      }
    }
  }
}

For Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "vibe-coder-mcp": {
      "command": "npx",
      "args": ["vibe-coder-mcp"],
      "env": {
        "OPENROUTER_API_KEY": "your_api_key_here",
        "VIBE_PROJECT_ROOT": "/path/to/your/project"
      }
    }
  }
}

💻 CLI Usage Guide

Vibe Coder includes a powerful command-line interface with multiple modes for direct interaction with all tools.

Interactive Setup Wizard (Enhanced in v0.2.3)

# First-time setup (runs automatically on first use)
vibe --setup

# Features:
# • Smart first-run detection
# • OS-specific configuration paths
# • Non-interactive mode for CI/CD
# • Configuration validation
# • Backup system for existing configs

# Reconfigure existing installation
vibe --reconfigure

Interactive REPL Mode (NEW in v0.2.3!)

# Start interactive chat session
vibe --interactive

# Or with alias
vibe -i

# Resume a previous session
vibe --resume 

REPL Features:

  • 🎯 Chat Interface: Natural conversation flow with context retention
  • 📝 Multi-line Input: Use """ for multi-line messages
  • 🎨 Themes: Multiple color themes with /theme command
  • 💾 Session Management: Auto-save and resume capabilities
  • 📊 Markdown Rendering: Rich text formatting in responses
  • Live Progress: Real-time execution feedback
  • 🔧 Slash Commands: Quick actions like /tools, /history, /save
  • 🎮 Auto-completion: Tab completion for commands and tools

CLI Command Examples

Research & Analysis

vibe "research modern React patterns and best practices"
vibe "analyze current trends in microservices architecture"
vibe "research security best practices for Node.js APIs"

Project Planning

vibe "create a PRD for an e-commerce platform with user authentication"
vibe "generate user stories for authentication system"
vibe "create development tasks from user stories"

Code Analysis & Generation

vibe "map the codebase structure"
vibe "create context for implementing authentication"
vibe "generate a fullstack starter kit for e-commerce"
vibe "create coding standards for TypeScript projects"

Task Management

vibe "create a new project for building a todo app"
vibe "list all my projects"
vibe "show project status for MyApp"
vibe "create high priority task for implementing OAuth"

CLI Options

# Output formats
vibe "research React hooks" --json
vibe "create PRD for todo app" --yaml

# Verbosity control
vibe "create project MyApp" --verbose
vibe "research Node.js patterns" --quiet

# Interactive REPL mode (NEW!)
vibe --interactive
vibe -i

# Session management (NEW!)
vibe --resume 
vibe --list-sessions

Interactive REPL Commands (v0.2.3+)

Once in interactive mode (vibe --interactive), use these commands:

# Help and navigation
/help              # Show available commands
/tools             # List all MCP tools
/status            # Show session status

# Session management
/save              # Save current session
/sessions          # List saved sessions
/export [file]     # Export session to markdown

# Conversation control
/clear             # Clear conversation history
/history           # Show conversation history

# Customization
/theme             # Change color theme
/markdown          # Toggle markdown rendering
/config            # Manage configuration

# Exit
/quit or /exit     # Exit interactive mode

File Organization

Generated files are automatically organized in VibeCoderOutput/:

VibeCoderOutput/
├── research/                    # Research reports
├── prd-generator/              # Product requirements
├── user-stories-generator/     # User stories
├── task-list-generator/        # Development tasks
├── fullstack-starter-kit-generator/  # Project templates
├── map-codebase/              # Code analysis
├── vibe-task-manager/         # Task management data
└── workflow-runner/           # Workflow outputs

🔄 Migration Guide (v0.2.3)

Breaking Changes

None! Version 0.2.3 is fully backward compatible. All existing configurations and workflows continue to work.

Technical Improvements

  • Unified CLI architecture with single entry point
  • Better error handling and recovery
  • Improved resource cleanup
  • Enhanced type safety throughout codebase
  • Memory leak prevention in long-running sessions
  • CI/CD Pipeline Optimization:

- 70% faster execution (~3 minutes vs ~10 minutes) - Focused on essential checks: type-check, lint, build - Unit tests moved to local development workflow - See CI/CD Guide for details

  • Memory usage optimized for large codebases
  • Faster first-run experience with smart detection

📚 Development Setup (Advanced)

If you want to contribute to development or run from source, follow the detailed setup guide below.

Overview & Features

Vibe Coder MCP integrates with MCP-compatible clients to provide the following capabilities:

🚀 Core Architecture

  • Quad Transport Support: stdio, SSE, WebSocket, and HTTP transport protocols for maximum client compatibility
  • Dynamic Port Allocation: Intelligent port management with conflict resolution and graceful degradation
  • Semantic Request Routing: Intelligently routes requests using embedding-based semantic matching with sequential thinking fallbacks
  • Tool Registry Architecture: Centralized tool management with self-registering tools
  • Unified Communication Protocol: Agent coordination across all transport mechanisms with real-time notifications
  • Session State Management: Maintains context across requests within sessions

🧠 AI-Native Task Management

  • Vibe Task Manager: Production-ready task management with 99.9% test success rate and comprehensive integration *(Functional but actively being enhanced)*
  • Natural Language Processing: 21 supported intents with multi-strategy recognition (pattern matching + LLM fallback)
  • Recursive Decomposition Design (RDD): Intelligent project breakdown into atomic tasks
  • Agent Orchestration: Multi-agent coordination with capability mapping, load balancing, and real-time status synchronization
  • Multi-Transport Agent Support: Full integration across stdio, SSE, WebSocket, and HTTP transports
  • Real Storage Integration: Zero mock code policy - all production integrations
  • Artifact Parsing Integration: Seamless integration with PRD Generator and Task List Generator outputs
  • Session Persistence: Enhanced session tracking with orchestration workflow triggers
  • Comprehensive CLI: Natural language command-line interface with extensive functionality

🔍 Advanced Code Analysis & Context Curation

  • Code Map Tool: 35+ programming language support with 95-97% token reduction optimization
  • Context Curation Tool: Language-agnostic project detection with 95%+ accuracy across 35+ languages
  • Intelligent Codemap Caching: Configurable caching system that reuses recent codemaps to optimize workflow performance
  • Enhanced Import Resolution: Third-party integration for accurate dependency mapping
  • Multi-Strategy File Discovery: 4 parallel strategies for comprehensive analysis
  • Memory Optimization: Sophisticated caching and resource management
  • Security Boundaries: Separate read/write path validation for secure operations

📋 Research & Planning Suite

  • Research Tool: Deep research using Perplexity Sonar via OpenRouter
  • Context Curation: Intelligent codebase analysis with 8-phase workflow pipeline and intelligent codemap caching for AI-driven development
  • Document Generators: PRDs (prd-generator), user stories (user-stories-generator), task lists (task-list-generator), development rules (rules-generator)
  • Project Scaffolding: Full-stack starter kits (fullstack-starter-kit-generator) with dynamic template generation
  • Workflow Execution: Predefined sequences of tool calls defined in workflows.json

Performance & Reliability

  • Asynchronous Execution: Job-based processing with real-time status tracking
  • Performance Optimized: Detect{First Run?}

Detect -->|Yes| Setup[Setup Wizard] Detect -->|No| Parse[Parse Arguments]

Setup --> Config[Save Configuration] Config --> Parse

Parse --> Mode{Mode?} Mode -->|--interactive| REPL[Interactive REPL] Mode -->|"message"| CLI[CLI Execution] Mode -->|none| MCP[MCP Server] Mode -->|--setup| Setup

REPL --> Session[Session Management] Session --> Chat[Chat Interface] Chat --> Tools[Tool Execution]

CLI --> Router[Hybrid Router] Router --> Tools

MCP --> Transport{Transport?} Transport -->|stdio| Stdio[Stdio Server] Transport -->|sse| SSE[SSE Server]


**Benefits of Unified CLI:**
- Single binary for all operations (`vibe`)
- Consistent command interface
- Shared configuration management
- Seamless mode switching
- Better resource utilization

## Project Architecture

The Vibe Coder MCP server follows a modular, TypeScript ESM architecture with dual transport support and comprehensive tool ecosystem:

flowchart TD subgraph "Core Architecture" Init[index.ts] --> Config[Configuration Loader] Config --> Transport{Transport Type} Transport --> |stdio| StdioTransport[Stdio Transport] Transport --> |sse| SSETransport[SSE Transport] StdioTransport --> Server[MCP Server] SSETransport --> Server Server --> ToolReg[Tool Registry] ToolReg --> InitEmbed[Initialize Embeddings] InitEmbed --> Ready[Server Ready] end

subgraph "Request Processing" Req[Client Request] --> SessionMgr[Session Manager] SessionMgr --> Router[Hybrid Router] Router --> Semantic[Semantic Matcher] Router --> Sequential[Sequential Thinking] Semantic --> |High Confidence| Execute[Tool Execution] Sequential --> |Fallback| Execute Execute --> JobMgr[Job Manager] JobMgr --> Response[Response to Client] end

subgraph "Tool Ecosystem" Execute --> Research[Research Tool] Execute --> TaskMgr[Vibe Task Manager] Execute --> CodeMap[Code Map Tool] Execute --> FullStack[Fullstack Generator] Execute --> PRDGen[PRD Generator] Execute --> UserStories[User Stories Generator] Execute --> TaskList[Task List Generator] Execute --> Rules[Rules Generator] Execute --> Workflow[Workflow Runner] end

subgraph "Support Services" JobMgr --> AsyncJobs[Async Job Processing] Execute --> FileOps[File Operations] Execute --> LLMHelper[LLM Integration] Execute --> ErrorHandler[Error Handling] Execute --> StateManager[Session State] end

subgraph "Configuration & Security" Config --> LLMConfig[LLM Config Mapping] Config --> MCPConfig[MCP Tool Config] Config --> EnvVars[Environment Variables] FileOps --> SecurityBoundary[Security Boundaries] SecurityBoundary --> ReadOps[Read Operations] SecurityBoundary --> WriteOps[Write Operations] end


## Directory Structure

vibe-coder-mcp/ ├── .env # Environment configuration ├── .env.example # Environment template ├── llm_config.json # LLM model mappings ├── mcp-config.json # MCP tool configurations ├── package.json # Project dependencies ├── README.md # This documentation ├── VIBE_CODER_MCP_SYSTEM_INSTRUCTIONS.md # System prompt documentation ├── setup.bat # Windows setup script ├── setup.sh # macOS/Linux setup script ├── tsconfig.json # TypeScript configuration ├── vitest.config.ts # Vitest (testing) configuration ├── workflows.json # Workflow definitions ├── build/ # Compiled JavaScript (after build) ├── docs/ # Additional documentation │ ├── map-codebase/ # Code Map Tool docs │ ├── handover/ # Development handover docs │ └── *.md # Various documentation files ├── VibeCoderOutput/ # Tool output directory │ ├── research/ # Research reports │ ├── rules-generator/ # Development rules │ ├── prd-generator/ # Product requirements │ ├── user-stories-generator/ # User stories │ ├── task-list-generator/ # Task lists │ ├── fullstack-starter-kit-generator/ # Project templates │ ├── map-codebase/ # Code maps and diagrams │ ├── vibe-task-manager/ # Task management data │ └── workflow-runner/ # Workflow outputs └── src/ # Source code ├── index.ts # Entry point ├── logger.ts # Logging configuration (Pino) ├── server.ts # MCP server setup ├── services/ # Core services │ ├── routing/ # Semantic routing system │ │ ├── embeddingStore.ts # Embedding management │ │ ├── hybridMatcher.ts # Hybrid routing logic │ │ └── toolRegistry.ts # Tool registry │ ├── sse-notifier/ # SSE notification system │ ├── JobManager.ts # Async job management │ └── ToolService.ts # Tool execution service ├── tools/ # MCP Tools │ ├── index.ts # Tool registration │ ├── sequential-thinking.ts # Fallback routing │ ├── map-codebase/ # Code analysis tool │ │ ├── cache/ # Memory management │ │ ├── grammars/ # Tree-sitter grammars │ │ ├── importResolvers/ # Import resolution adapters │ │ └── *.ts # Core implementation │ ├── fullstack-starter-kit-generator/ # Project scaffolding │ ├── prd-generator/ # PRD creation │ ├── research/ # Research tool │ ├── rules-generator/ # Rule generation │ ├── task-list-generator/ # Task list generation │ ├── user-stories-generator/ # User story generation │ ├── vibe-task-manager/ # AI-native task management │ │ ├── __tests__/ # Comprehensive test suite │ │ ├── cli/ # Command-line interface │ │ ├── core/ # Core algorithms │ │ ├── integrations/ # Tool integrations │ │ ├── prompts/ # LLM prompts (YAML) │ │ ├── services/ # Business logic services │ │ ├── types/ # TypeScript definitions │ │ └── utils/ # Utility functions │ └── workflow-runner/ # Workflow execution engine ├── types/ # TypeScript type definitions └── utils/ # Shared utilities ├── configLoader.ts # Configuration management ├── errors.ts # Error handling └── llmHelper.ts # LLM integration helpers


## Semantic Routing System

Vibe Coder uses a sophisticated routing approach to select the right tool for each request:

flowchart TD Start[Client Request] --> Process[Process Request] Process --> Hybrid[Hybrid Matcher]

subgraph "Primary: Semantic Routing" Hybrid --> Semantic[Semantic Matcher] Semantic --> Embeddings[Query Embeddings] Embeddings --> Tools[Tool Embeddings] Tools --> Compare[Compare via Cosine Similarity] Compare --> Score[Score & Rank Tools] Score --> Confidence{High Confidence?} end

Confidence -->|Yes| Registry[Tool Registry]

subgraph "Fallback: Sequential Thinking" Confidence -->|No| Sequential[Sequential Thinking] Sequential --> LLM[LLM Analysis] LLM --> ThoughtChain[Thought Chain] ThoughtChain --> Extraction[Extract Tool Name] Extraction --> Registry end

Registry --> Executor[Execute Tool] Executor --> Response[Return Response]


## Tool Registry Pattern

The Tool Registry is a central component for managing tool definitions and execution:

flowchart TD subgraph "Tool Registration (at import)" Import[Import Tool] --> Register[Call registerTool] Register --> Store[Store in Registry Map] end

subgraph "Tool Definition" Def[ToolDefinition] --> Name[Tool Name] Def --> Desc[Description] Def --> Schema[Zod Schema] Def --> Exec[Executor Function] end

subgraph "Server Initialization" Init[server.ts] --> Import Init --> GetAll[getAllTools] GetAll --> Loop[Loop Through Tools] Loop --> McpReg[Register with MCP Server] end

subgraph "Tool Execution" McpReg --> ExecTool[executeTool Function] ExecTool --> GetTool[Get Tool from Registry] GetTool --> Validate[Validate Input] Validate -->|Valid| ExecFunc[Run Executor Function] Validate -->|Invalid| ValidErr[Return Validation Error] ExecFunc -->|Success| SuccessResp[Return Success Response] ExecFunc -->|Error| HandleErr[Catch & Format Error] HandleErr --> ErrResp[Return Error Response] end


## Sequential Thinking Process

The Sequential Thinking mechanism provides LLM-based fallback routing:

flowchart TD Start[Start] --> Estimate[Estimate Number of Steps] Estimate --> Init[Initialize with System Prompt] Init --> First[Generate First Thought] First --> Context[Add to Context] Context --> Loop{Needs More Thoughts?}

Loop -->|Yes| Next[Generate Next Thought] Next -->|Standard| AddStd[Add to Context] Next -->|Revision| Rev[Mark as Revision] Next -->|New Branch| Branch[Mark as Branch] Rev --> AddRev[Add to Context] Branch --> AddBranch[Add to Context] AddStd --> Loop AddRev --> Loop AddBranch --> Loop

Loop -->|No| Extract[Extract Final Solution] Extract --> End[End With Tool Selection]

subgraph "Error Handling" Next -->|Error| Retry[Retry with Simplified Request] Retry -->|Success| AddRetry[Add to Context] Retry -->|Failure| FallbackEx[Extract Partial Solution] AddRetry --> Loop FallbackEx --> End end


## Session State Management

flowchart TD Start[Client Request] --> SessionID[Extract Session ID] SessionID --> Store{State Exists?}

Store -->|Yes| Retrieve[Retrieve Previous State] Store -->|No| Create[Create New State]

Retrieve --> Context[Add Context to Tool] Create --> NoContext[Execute Without Context]

Context --> Execute[Execute Tool] NoContext --> Execute

Execute --> SaveState[Update Session State] SaveState --> Response[Return Response to Client]

subgraph "Session State Structure" State[SessionState] --> PrevCall[Previous Tool Call] State --> PrevResp[Previous Response] State --> Timestamp[Timestamp] end


## Workflow Execution Engine

The Workflow system enables multi-step sequences:

flowchart TD Start[Client Request] --> Parse[Parse Workflow Request] Parse --> FindFlow[Find Workflow in workflows.json] FindFlow --> Steps[Extract Steps]

Steps --> Loop[Process Each Step] Loop --> PrepInput[Prepare Step Input] PrepInput --> ExecuteTool[Execute Tool via Registry] ExecuteTool --> SaveOutput[Save Step Output] SaveOutput --> NextStep{More Steps?}

NextStep -->|Yes| MapOutput[Map Output to Next Input] MapOutput --> Loop

NextStep -->|No| FinalOutput[Prepare Final Output] FinalOutput --> End[Return Workflow Result]

subgraph "Input/Output Mapping" MapOutput --> Direct[Direct Value] MapOutput --> Extract[Extract From Previous] MapOutput --> Transform[Transform Values] end


## Workflow Configuration

Workflows are defined in the `workflows.json` file located in the root directory of the project. This file contains predefined sequences of tool calls that can be executed with a single command.

### File Location and Structure

- The `workflows.json` file must be placed in the project root directory (same level as package.json)
- The file follows this structure:

{ "workflows": { "workflowName1": { "description": "Description of what this workflow does", "inputSchema": { "param1": "string", "param2": "string" }, "steps": [ { "id": "step1_id", "toolName": "tool-name", "params": { "param1": "{workflow.input.param1}" } }, { "id": "step2_id", "toolName": "another-tool", "params": { "paramA": "{workflow.input.param2}", "paramB": "{steps.step1_id.output.content[0].text}" } } ], "output": { "summary": "Workflow completed message", "details": ["Output line 1", "Output line 2"] } } } }


### Parameter Templates

Workflow step parameters support template strings that can reference:
- Workflow inputs: `{workflow.input.paramName}`
- Previous step outputs: `{steps.stepId.output.content[0].text}`

### Triggering Workflows

Use the `run-workflow` tool with:

Run the newProjectSetup workflow with input {"productDescription": "A task manager app"}


## Detailed Tool Documentation

Each tool in the `src/tools/` directory includes comprehensive documentation in its own README.md file. These files cover:

*   Tool overview and purpose
*   Input/output specifications
*   Workflow diagrams (Mermaid)
*   Usage examples
*   System prompts used
*   Error handling details

Refer to these individual READMEs for in-depth information:

*   `src/tools/fullstack-starter-kit-generator/README.md`
*   `src/tools/prd-generator/README.md`
*   `src/tools/research/README.md`
*   `src/tools/rules-generator/README.md`
*   `src/tools/task-list-generator/README.md`
*   `src/tools/user-stories-generator/README.md`
*   `src/tools/workflow-runner/README.md`
*   `src/tools/map-codebase/README.md`

## Tool Categories

### Analysis & Information Tools

*   **Code Map Tool (`map-codebase`)**: Scans a codebase to extract semantic information (classes, functions, comments) and generates either a human-readable Markdown map with Mermaid diagrams or a structured JSON representation with absolute file paths for imports and enhanced class property information.
*   **Context Curation Tool (`curate-context`)**: Intelligent codebase analysis and context package curation with 8-phase workflow pipeline, intelligent codemap caching, language-agnostic project detection supporting 35+ programming languages, and multi-strategy file discovery for AI-driven development tasks.
*   **Research Tool (`research`)**: Performs deep research on technical topics using Perplexity Sonar, providing summaries and sources.

### Planning & Documentation Tools

*   **Rules Generator (`rules-generator`):** Creates project-specific development rules and guidelines.
*   **PRD Generator (`prd-generator`):** Generates comprehensive product requirements documents.
*   **User Stories Generator (`user-stories-generator`):** Creates detailed user stories with acceptance criteria.
*   **Task List Generator (`task-list-generator`):** Builds structured development task lists with dependencies.

### Project Scaffolding Tool

*   **Fullstack Starter Kit Generator (`fullstack-starter-kit-generator`):** Creates customized project starter kits with specified frontend/backend technologies, including basic setup scripts and configuration.

### Workflow & Orchestration

*   **Workflow Runner (`run-workflow`):** Executes predefined sequences of tool calls for common development tasks.

## Generated File Storage

By default, outputs from the generator tools are stored for historical reference in the `VibeCoderOutput/` directory within the project. This location can be overridden by setting the `VIBE_CODER_OUTPUT_DIR` environment variable in your `.env` file or AI assistant configuration.

### Security Boundaries for Read and Write Operations

For security reasons, the Vibe Coder MCP tools maintain separate security boundaries for read and write operations with a **security-by-default** approach:

* **Read Operations**:
  - **Code Map Tool**: Only reads from directories explicitly authorized through the `CODE_MAP_ALLOWED_DIR` environment variable
  - **Vibe Task Manager**: Only reads from directories authorized through the `VIBE_TASK_MANAGER_READ_DIR` environment variable (defaults to `process.cwd()`)
  - **Security Mode**: The Vibe Task Manager defaults to 'strict' security mode, which prevents access to system directories like `/private/var/spool/postfix/`, `/System/`, and other unauthorized paths
  - **Filesystem Security**: Comprehensive blacklist enforcement and permission checking prevent EACCES errors and unauthorized file access

* **Write Operations**: All output files are written to the `VIBE_CODER_OUTPUT_DIR` directory (or its subdirectories). This separation ensures that tools can only write to designated output locations, protecting your source code from accidental modifications.

* **Security Implementation**: The filesystem security system includes:
  - **Adaptive Timeout Management**: Prevents operations from hanging indefinitely with intelligent retry and cancellation
  - **Path Validation**: Comprehensive validation of all file paths before access
  - **Permission Checking**: Proactive permission verification to prevent access errors
  - **System Directory Protection**: Built-in blacklist of system directories that should never be accessed

Example structure (default location):

VibeCoderOutput/ ├── research/ # Research reports │ └── TIMESTAMP-QUERY-research.md ├── rules-generator/ # Development rules │ └── TIMESTAMP-PROJECT-rules.md ├── prd-generator/ # PRDs │ └── TIMESTAMP-PROJECT-prd.md ├── user-stories-generator/ # User stories │ └── TIMESTAMP-PROJECT-user-stories.md ├── task-list-generator/ # Task lists │ └── TIMESTAMP-PROJECT-task-list.md ├── fullstack-starter-kit-generator/ # Project templates │ └── TIMESTAMP-PROJECT/ ├── map-codebase/ # Code maps and diagrams │ └── TIMESTAMP-code-map/ └── workflow-runner/ # Workflow outputs └── TIMESTAMP-WORKFLOW/


## System Instructions for MCP Clients

For optimal performance with AI assistants and MCP clients, use the comprehensive system instructions provided in `VIBE_CODER_MCP_SYSTEM_INSTRUCTIONS.md`. This document contains detailed guidance for:

- Tool-specific usage patterns and best practices
- Natural language command structures
- Asynchronous job polling guidelines
- Integration workflows and examples
- Error handling and troubleshooting

### How to Use System Instructions

**For Claude Desktop:**
1. Open Claude Desktop settings
2. Navigate to "Custom Instructions" or "System Prompt"
3. Copy the entire content from `VIBE_CODER_MCP_SYSTEM_INSTRUCTIONS.md`
4. Paste into the custom instructions field
5. Save settings

**For Augment:**
1. Access Augment settings/preferences
2. Find "Custom Instructions" or "System Configuration"
3. Copy and paste the system instructions
4. Apply changes

**For Claude Code/Windsurf/Other MCP Clients:**
1. Locate the custom instructions or system prompt configuration
2. Copy the content from `VIBE_CODER_MCP_SYSTEM_INSTRUCTIONS.md`
3. Paste into the appropriate field
4. Save/apply the configuration

**Benefits of Using System Instructions:**
- 98%+ tool operation success rate
- Optimal natural language command recognition
- Proper asynchronous job handling
- Efficient workflow orchestration
- Reduced errors and improved troubleshooting

## Usage Examples

### Via CLI (Direct Command Line)

Research and analysis

vibe "research modern JavaScript frameworks" vibe "create development rules for a mobile banking application"

Project planning

vibe "generate a PRD for a task management application" vibe "generate user stories for an e-commerce website" vibe "create a task list for a weather app based on user stories"

Code generation and analysis

vibe "create a starter kit for a React/Node.js blog application with user authentication" vibe "map the codebase structure" --json vibe "curate context for adding authentication to my React app"

Task management

vibe "create a new project for building a todo app" vibe "list all my projects" vibe "show status of my React project"

Workflow automation

vibe "run workflow newProjectSetup with input {\"projectName\": \"my-new-app\"}"


### Via MCP Client (AI Assistant Integration)
Interact with the tools via your connected AI assistant:

*   **Research:** `Research modern JavaScript frameworks`
*   **Generate Rules:** `Create development rules for a mobile banking application`
*   **Generate PRD:** `Generate a PRD for a task management application`
*   **Generate User Stories:** `Generate user stories for an e-commerce website`
*   **Generate Task List:** `Create a task list for a weather app based on [user stories]`
*   **Sequential Thinking:** `Think through the architecture for a microservices-based e-commerce platform`
*   **Fullstack Starter Kit:** `Create a starter kit for a React/Node.js blog application with user authentication`
*   **Run Workflow:** `Run workflow newProjectSetup with input { "projectName": "my-new-app", "description": "A simple task manager" }`
*   **Map Codebase:** `Generate a code map for the current project`, `map-codebase path="./src"`, or `Generate a JSON representation of the codebase structure with output_format="json"`
*   **Context Curation:** `Curate context for adding authentication to my React app`, `Generate context package for refactoring the user service`, or `Analyze this codebase for performance optimization opportunities`
*   **Vibe Task Manager:** `Create a new project for building a todo app`, `List all my projects`, `Run task authentication-setup`, `What's the status of my React project?`

## Vibe Task Manager - AI-Native Task Management

The Vibe Task Manager is a comprehensive task management system designed specifically for AI agents and development workflows. It provides intelligent project decomposition, natural language command processing, and seamless integration with other Vibe Coder tools.

**Status**: Functional and production-ready with 99.9% test success rate, but actively being enhanced with new features and improvements.

### Key Features

*   **Natural Language Processing**: Understands commands like "Create a project for building a React app" or "Show me all pending tasks"
*   **Recursive Decomposition Design (RDD)**: Automatically breaks down complex projects into atomic, executable tasks
*   **Artifact Parsing Integration**: Seamlessly imports PRD files from `VibeCoderOutput/prd-generator/` and task lists from `VibeCoderOutput/generated_task_lists/`
*   **Session Persistence**: Enhanced session tracking with orchestration workflow triggers for reliable multi-step operations
*   **Comprehensive CLI**: Full command-line interface with natural language processing and structured commands
*   **Agent Orchestration**: Coordinates multiple AI agents for parallel task execution
*   **Integration Ready**: Works seamlessly with Code Map Tool, Research Tool, and other tools
*   **File Storage**: All project data stored in `VibeCoderOutput/vibe-task-manager/` following established conventions

### Quick Start Examples

Project Management

"Create a new project for building a todo app with React and Node.js" "List all my projects" "Show me the status of my web app project"

Task Management

"Create a high priority task for implementing user authentication" "List all pending tasks for the todo-app project" "Run the database setup task"

Project Analysis (Enhanced with Intelligent Lookup)

"Decompose my React project into development tasks" "Decompose PID-TODO-APP-REACT-001 into tasks" # Using project ID "Decompose \"Todo App with React\" into tasks" # Using exact name "Decompose todo into tasks" # Using partial name (fuzzy matching) "Refine the authentication task to include OAuth support" "What's the current progress on my mobile app?"


### 🎯 Enhanced Project Lookup Features

- **Intelligent Parsing**: Automatically detects project IDs, names, or partial matches
- **Comprehensive Validation**: Validates project readiness before decomposition
- **Enhanced Error Messages**: Provides actionable guidance with available projects and usage examples
- **Multiple Input Formats**: Supports project IDs, quoted names, partial names, and fuzzy matching
- **Confidence Scoring**: Shows parsing confidence levels for better user feedback

### Command Structure

The Vibe Task Manager supports both structured commands and natural language:

**Structured Commands:**
- `vibe-task-manager create project "Name" "Description" --options`
- `vibe-task-manager list projects --status pending`
- `vibe-task-manager run task task-id --force`
- `vibe-task-manager status project-id --detailed`

**Natural Language (Recommended):**
- "Create a project for [description]"
- "Show me all [status] projects"
- "Run the [task name] task"
- "What's the status of [project]?"
- "Parse PRD files for [project name]" *(NEW)*
- "Import task list from [file path]" *(NEW)*
- "Parse all PRDs and create projects automatically" *(NEW)*

For complete documentation, see `src/tools/vibe-task-manager/README.md` and the system instructions in `VIBE_CODER_MCP_SYSTEM_INSTRUCTIONS.md`.

## Implementation Status & Performance Metrics

### Current Epic Status

The Vibe Coder MCP project follows an epic-based development approach with comprehensive tracking:

gantt title Vibe Coder MCP Development Progress dateFormat YYYY-MM-DD section Core Infrastructure Tool Registry & Routing :done, epic1, 2024-01-01, 2024-02-15 MCP Server Implementation :done, epic2, 2024-01-15, 2024-03-01 Async Job Management :done, epic3, 2024-02-15, 2024-03-15

section Tool Development Research & Planning Tools :done, epic4, 2024-02-01, 2024-04-01 Code Map Tool :done, epic5, 2024-03-01, 2024-05-15 Vibe Task Manager Core :done, epic6, 2024-04-01, 2024-06-15

section Advanced Features Performance Optimization :active, epic7, 2024-06-01, 2024-07-15 Security Implementation :epic8, 2024-07-01, 2024-08-15 Analytics & Monitoring :epic9, 2024-07-15, 2024-09-01


### Epic Completion Summary

* **Epic 1-5**: ✅ **Complete** (100% - Core infrastructure and basic tools)
* **Epic 6.1**: ✅ **Complete** (98.3% test success rate - Deep MCP Tool Integration)
* **Epic 6.2**: 🔄 **In Progress** (Performance Optimization - 75% complete)
* **Epic 7.1**: 📋 **Planned** (Security Implementation - Ready for implementation)
* **Epic 8**: 📋 **Planned** (Advanced Analytics & Monitoring - Designed)

### Performance Targets & Current Metrics (v0.2.3)

| Metric | Target | Current | Status |
|--------|--------|---------|--------|
| Test Success Rate | 98%+ | 99.9% | ✅ **Exceeded** |
| Response Time (Task Operations) | 70% | 73% | ✅ **Met** |
| CI/CD Pipeline Speed | 70% coverage for unit tests
- **Documentation**: Update relevant docs for changes
- **Performance**: Consider impact on CI pipeline speed (10,000 files
- **Solution**: Increase Node.js memory limit: `NODE_OPTIONS='--max-old-space-size=4096' npm start`
- **Caching**: Clear cache directories in `VibeCoderOutput/` if they grow too large
- **Monitoring**: Use `npm run test:memory` to identify memory leaks

### MCP Client Connection Issues

**Problem**: Server not detected by AI assistant
- **Paths**: Verify all paths in MCP configuration use forward slashes and are absolute
- **Restart**: Completely close and restart your AI assistant application
- **Logs**: Check `LOG_LEVEL=debug` in configuration for detailed error messages
- **Transport**: Ensure `"transport": "stdio"` is set correctly
- **Disabled**: Verify `"disabled": false` in your configuration

### Tool-Specific Issues

**Vibe Task Manager**:
- If natural language commands fail, try using structured commands
- Check `VibeCoderOutput/vibe-task-manager/` for project files
- Ensure project names don't contain special characters

**Code Map Tool**:
- For permission errors, verify `CODE_MAP_ALLOWED_DIR` is set
- Large repositories may timeout - try smaller subdirectories
- Some languages require additional setup (see tool README)

**Context Curator**:
- If codemap generation fails, check recent codemaps in cache
- Verify sufficient disk space for large context packages
- Check file permissions in target directories

### Network and Proxy Issues

**Problem**: Cannot reach external services
- **Proxy**: Set `HTTP_PROXY` and `HTTPS_PROXY` environment variables if behind a proxy
- **SSL**: For SSL issues, try `NODE_TLS_REJECT_UNAUTHORIZED=0` (development only)
- **Firewall**: Ensure firewall allows outbound HTTPS connections
- **DNS**: Try using public DNS servers if resolution fails

### Getting Help

If issues persist:
1. Check existing issues at 
2. Enable debug logging: `LOG_LEVEL=debug`
3. Collect error messages and logs
4. Create a new issue with:
   - Node.js version (`node -v`)
   - Operating system
   - Error messages
   - Steps to reproduce

## 📅 Changelog

### Version 0.3.5 (Latest)
- **Enhanced Hybrid Matcher**: Complete parameter extraction for all 15 tools
- **CLI/REPL Improvements**: Interactive confirmations, job polling with progress
- **Bug Fixes**: Task-list-generator auto-generates user stories, multi-turn conversations fixed
- **TypeScript Strict Mode**: Zero `any` types, production-grade code quality

### Version 0.3.1
- Global installation synchronization fixes
- Enhanced clean build process
- Improved NPM packaging workflow

### Version 0.2.8
- CLI interactive mode configuration persistence
- Enhanced project root detection

### Version 0.2.7
- Added missing configuration files to npm package
- Resolved configuration loading errors

### Version 0.2.3
- Interactive REPL mode with chat interface
- Enhanced setup wizard with auto-detection
- Configuration templates
- Unified CLI binary

For full release history, see 

## License

This project is licensed under the MIT License - see the LICENSE file for details.

目录标签

目录标签

AI开发工具代码分析TypeScriptClaude Desktopdeveloper-toolsmcpcursoragentsclineclaude-desktopmcp-serverroo-code本地部署软件开发助手任务管理项目规划

支持客户端

Claude DesktopClaudeCursorClineWindsurfVS Code

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

vibe-coder-mcp@latest

工具数量(toolCount,工具数)

10

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP