Chat Mode Creator MCP Server
Creates custom VS Code chat modes and prompts for specialized development workflows such as Azure migration, Bicep development, and spec-driven development.
README
šÆ Chat Mode Creator MCP Server
An advanced MCP (Model Context Protocol) server that creates custom VS Code chat modes AND custom prompts for specialized development workflows.
⨠Key Features
šÆ Integrated Workflow: Chat modes come with related custom prompts
š VS Code Compatible: Follows official VS Code chat mode and prompt specifications
š Ready-to-Use: Pre-built templates for common development scenarios
ā” Intelligent Matching: Analyzes queries to suggest appropriate modes
š ļø Available Chat Modes & Custom Prompts
š Lambda to Azure Functions Migration
Chat Mode: Comprehensive migration guidance from AWS Lambda to Azure Functions
- Runtime and service mapping assistance
- Code conversion patterns and best practices
- Infrastructure migration support
Custom Prompts:
/evaluate- Assess migration readiness and complexity/validate- Verify migrated functions work correctly
šļø Azure Bicep Development
Chat Mode: Expert assistance for Azure Bicep infrastructure as code
- Azure Well-Architected Framework integration
- Advanced Bicep patterns and techniques
- Security, monitoring, and deployment best practices
Custom Prompts:
/review- Code review and best practices validation/deploy- Safe deployment procedures and checks
š Spec-Driven Development
Chat Mode: Transform specifications into code through systematic process
- Treats specifications as the primary development artifact
- Follows systematic 5-phase SDD workflow
- Includes consistency validation and checklist integration
Custom Prompts:
/validate_spec- Validate specifications for completeness/generate_tests- Generate comprehensive test suites
š Quick Installation
1. Install Dependencies
# Create and activate virtual environment (.venv)
python -m venv .venv
.\.venv\Scripts\Activate.ps1 # Windows PowerShell
# .venv/bin/activate # Linux/Mac
# Install required packages
pip install -r requirements.txt
2. Test Server
# Test that the server runs correctly
python mcp_chatmode_server.py
3. Configure VS Code
Add to your VS Code User Settings (settings.json):
{
"mcp": {
"servers": {
"chat-mode-creator": {
"command": "C:\\path\\to\\your\\.venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\your\\mcp_chatmode_server.py"],
"cwd": "C:\\path\\to\\your\\workspace",
"env": {
"PYTHONPATH": "C:\\path\\to\\your\\workspace",
"VIRTUAL_ENV": "C:\\path\\to\\your\\.venv"
}
}
}
},
"chat.mcp.discovery.enabled": true,
"chat.promptFiles": true
}
š ļø Available Tools
create_chat_mode ā Main Tool
Creates chat modes with integrated custom prompts
- Parameters:
mode_type(required):"spec_driven_development","lambda_to_functions_migration", or"azure_bicep_development"workspace_path(optional): Workspace path (defaults to current directory)
suggest_chat_mode šÆ Smart Assistant
Analyzes your query and suggests the most appropriate chat mode
- Parameters:
user_query(required): Description of what you want to accomplishworkspace_path(optional): Workspace path (defaults to current directory)
create_custom_prompt šØ Advanced
Create individual custom prompts for specific tasks
- Parameters:
mode_type(required): The chat mode this prompt belongs toprompt_name(required): Name for the custom promptcustom_description(optional): Custom description for the prompt
list_mode_prompts š Reference
List all available custom prompts for a specific chat mode
- Parameters:
mode_type(required): The chat mode to list prompts for
š File Structure
Files are created following VS Code standards:
.github/
āāā chatmodes/
ā āāā azure-bicep-development.chatmode.md
ā āāā lambda-to-functions-migration.chatmode.md
ā āāā spec-driven-development.chatmode.md
āāā prompts/
āāā review.prompt.md # Azure Bicep prompts
āāā deploy.prompt.md
āāā evaluate.prompt.md # Lambda migration prompts
āāā validate.prompt.md
āāā validate_spec.prompt.md # Spec-driven prompts
āāā generate_tests.prompt.md
š” Usage Examples
Natural Language Interaction
Just ask Copilot naturally:
- "I want to migrate my AWS Lambda to Azure Functions"
- "Help me with Azure Bicep infrastructure templates"
- "I need assistance with specification-driven development"
Copilot will automatically use the MCP tools to suggest and create appropriate chat modes.
Direct Tool Usage
# Create Azure Bicep mode with prompts
create_chat_mode(
mode_type="azure_bicep_development",
workspace_path="/path/to/your/project"
)
# Get intelligent suggestions
suggest_chat_mode(
user_query="I need help migrating serverless functions",
workspace_path="/path/to/your/project"
)
# Create a custom prompt
create_custom_prompt(
mode_type="azure_bicep_development",
prompt_name="security_scan",
custom_description="Scan templates for security issues"
)
šÆ Using in VS Code
1. Chat Modes
- Open VS Code Chat view
- Select your custom mode from the dropdown
- Get specialized assistance for that workflow
2. Custom Prompts
- In chat, type
/prompt_name(e.g.,/review,/evaluate) - Prompts automatically include mode-specific context
- Combine with file references for targeted help
3. Integration Example
Chat Mode: Azure Bicep Development
Prompt: /review
Context: main.bicep file
Result: Comprehensive security and best practices review
š§ Troubleshooting
MCP Server Won't Connect in VS Code
-
Check VS Code MCP settings:
- Ensure
"chat.mcp.discovery.enabled": trueis set - Verify the server paths are correct with capital drive letters
- Check that the virtual environment path exists
- Ensure
-
Restart VS Code after making settings changes
-
Check the MCP server logs in VS Code:
- Open Command Palette (
Ctrl+Shift+P) - Run "Developer: Show Logs"
- Look for MCP server connection errors
- Open Command Palette (
Server Won't Start
-
Ensure virtual environment is activated:
.\.venv\Scripts\Activate.ps1 # Windows source .venv/bin/activate # Linux/Mac -
Check dependencies:
pip install -r requirements.txt -
Test manually:
python mcp_chatmode_server.py
Copilot Not Using MCP Tools
- Make sure MCP discovery is enabled:
"chat.mcp.discovery.enabled": true - Try explicit requests: "Use the suggest_chat_mode tool to help me..."
- Check server status: Look for "chat-mode-creator" in the MCP server list
- Restart VS Code if the server was recently added
Environment Variables Issues
If you see import errors, ensure these environment variables are set in your MCP configuration:
"env": {
"PYTHONPATH": "/path/to/your/workspace",
"VIRTUAL_ENV": "/path/to/your/.venv"
}
šØ Advanced Configuration
Alternative Launcher Scripts
You can also use PowerShell scripts for easier management:
run-mcp-server.ps1:
cd "C:\path\to\your\workspace"
.\.venv\Scripts\Activate.ps1
python mcp_chatmode_server.py
VS Code Configuration with PowerShell:
{
"mcp": {
"servers": {
"chat-mode-creator": {
"command": "powershell",
"args": [
"-ExecutionPolicy", "Bypass",
"-File", "C:\\path\\to\\run-mcp-server.ps1"
]
}
}
}
}
Claude Desktop Integration
For Claude Desktop users, add to your configuration:
{
"mcpServers": {
"chat-mode-creator": {
"command": "/path/to/your/.venv/bin/python",
"args": ["/path/to/your/mcp_chatmode_server.py"],
"cwd": "/path/to/your/workspace"
}
}
}
šÆ Custom Prompt Examples
Lambda Migration Evaluation (/evaluate)
Analyzes AWS Lambda functions for migration readiness:
- Runtime compatibility assessment
- Infrastructure dependency mapping
- Performance characteristic evaluation
- Migration complexity scoring
Bicep Template Review (/review)
Comprehensive Bicep template analysis:
- Security best practices validation
- Azure Well-Architected Framework compliance
- Cost optimization recommendations
- Code quality assessment
Specification Validation (/validate_spec)
Ensures specifications are ready for code generation:
- Completeness checking
- Consistency analysis
- Implementation readiness validation
- Gap identification and resolution
š¤ Contributing
Extend this MCP server with additional chat modes:
- Add new templates to
chat_modes/directory - Create new prompt files for the mode
- Update
AVAILABLE_PROMPT_TEMPLATESin server code - Test with the provided test scripts
- Submit PR with examples and documentation
Template Structure
---
description: Brief description of the chat mode
tools: ['relevant', 'tools', 'list']
---
# Chat Mode Name
## Purpose
What this mode helps with...
## Usage Guidelines
How to use this mode effectively...
## Related Prompts
- `/prompt1` - Description
- `/prompt2` - Description
š Project Structure
chat-mode-creator/
āāā mcp_chatmode_server.py # Main MCP server
āāā chat_modes/ # Source templates
ā āāā azure-bicep-development.chatmode.md
ā āāā lambda-to-functions-migration.chatmode.md
ā āāā spec-driven-development.chatmode.md
ā āāā */ # Mode-specific prompts
āāā requirements.txt # Python dependencies
āāā example_usage.py # Usage examples
āāā test_server.py # Test scripts
āāā .venv/ # Virtual environment
š License
MIT License - See LICENSE file for details
š Ready to supercharge your VS Code chat experience with specialized modes and custom prompts!
This MCP server intelligently creates organized chat modes and prompts that follow VS Code's official specifications, making your development workflow more efficient and context-aware.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.