An advanced MCP (Model Context Protocol) server that creates custom VS Code chat modes AND custom prompts for specialized development workflows.
π― 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
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
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
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
# 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
# Test that the server runs correctly
python mcp_chatmode_server.py
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
}
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)
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 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 all available custom prompts for a specific chat mode
- Parameters:
mode_type
(required): The chat mode to list prompts for
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
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.
# 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"
)
- Open VS Code Chat view
- Select your custom mode from the dropdown
- Get specialized assistance for that workflow
- In chat, type
/prompt_name
(e.g.,/review
,/evaluate
) - Prompts automatically include mode-specific context
- Combine with file references for targeted help
Chat Mode: Azure Bicep Development
Prompt: /review
Context: main.bicep file
Result: Comprehensive security and best practices review
-
Check VS Code MCP settings:
- Ensure
"chat.mcp.discovery.enabled": true
is 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 (
-
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
- 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
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"
}
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"
]
}
}
}
}
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"
}
}
}
Analyzes AWS Lambda functions for migration readiness:
- Runtime compatibility assessment
- Infrastructure dependency mapping
- Performance characteristic evaluation
- Migration complexity scoring
Comprehensive Bicep template analysis:
- Security best practices validation
- Azure Well-Architected Framework compliance
- Cost optimization recommendations
- Code quality assessment
Ensures specifications are ready for code generation:
- Completeness checking
- Consistency analysis
- Implementation readiness validation
- Gap identification and resolution
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_TEMPLATES
in server code - Test with the provided test scripts
- Submit PR with examples and documentation
---
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
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
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.