chat-mode-creator
MCP server for creating custom VS Code chat modes for specialized development workflows
claude mcp add --transport stdio charris-msft-chat-mode-creator-mcp python mcp_chatmode_server.py \ --env PYTHONPATH="<path-to-your-workspace>" \ --env VIRTUAL_ENV="<path-to-your-.venv>"
How to use
This MCP server provides tooling to create and manage VS Code chat modes and their associated prompts. It exposes a set of integrated tools that work together to transform developer workflows into ready-to-use chat experiences inside the VS Code Chat UI. Key capabilities include creating chat modes (create_chat_mode) tailored to specific development tasks, getting intelligent mode suggestions (suggest_chat_mode) from user queries, and generating or listing custom prompts (create_custom_prompt, list_mode_prompts) that augment a mode with targeted guidance. The server is designed to align with the official VS Code chat mode and prompt specifications, and it organizes files into a predictable structure under chatmodes and prompts for easy maintenance.
How to install
Prerequisites:
- Python 3.8+ installed on your system
- A Python virtual environment tool available (venv)
- Access to install dependencies from requirements.txt
Installation steps:
-
Create and activate a virtual environment
- Windows (PowerShell): python -m venv .venv ..venv\Scripts\Activate.ps1
- Linux/macOS: python3 -m venv .venv source .venv/bin/activate
-
Install dependencies pip install -r requirements.txt
-
Run the MCP server locally to verify: python mcp_chatmode_server.py
-
(Optional) Configure your editor integration (VS Code) by adding the MCP server configuration to your settings.json as shown in the documentation, ensuring the paths match your environment.
Additional notes
Tips and common considerations:
- Ensure your virtual environment paths are correctly set in the MCP configuration when integrating with VS Code.
- If the server fails to connect, verify that MCP discovery is enabled in your editor settings (e.g., chat.mcp.discovery.enabled: true).
- Use the provided tool commands to explore available modes and prompts: create_chat_mode, suggest_chat_mode, create_custom_prompt, and list_mode_prompts.
- The file structure follows VS Code standards, with chatmodes and prompts directories under a project workspace. Keep prompts updated as modes evolve.
- If you encounter import errors, check PYTHONPATH and VIRTUAL_ENV in your MCP config and ensure dependencies are installed in the active virtual environment.
Related MCP Servers
code-mode
🔌 Plug-and-play library to enable agents to call MCP and UTCP tools via code execution.
mysql_mcp_server
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Lambda
Creates a simple MCP tool server with "streaming" HTTP.
azure-diagram
MCP server that turns natural-language prompts into Microsoft Azure architecture diagrams (PNG) using Python Diagrams + Graphviz.
skill-to
Convert AI Skills (Claude Skills format) to MCP server resources - Part of BioContextAI
Convert-Markdown-PDF
Markdown To PDF Conversion MCP