Get the FREE Ultimate OpenClaw Setup Guide →

chat-mode-creator

MCP server for creating custom VS Code chat modes for specialized development workflows

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
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:

  1. 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
  2. Install dependencies pip install -r requirements.txt

  3. Run the MCP server locally to verify: python mcp_chatmode_server.py

  4. (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

Sponsor this space

Reach thousands of developers