Modes MCP Server

by ccc0168

189 downloads Not rated yet
GitHub

About

An MCP server for programmatically managing Roo's custom operational modes.

Explore

- Full CRUD operations for custom modes
- Schema validation with Zod
- File system watching for config changes
- Error handling with standard MCP error codes
- Atomic file operations

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Modes MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository


npm install

Copy .env.example to .env and adjust as needed:

bash
cp .env.example .env

Available environment variables:
- MODES_CONFIG_PATH: Path to custom modes configuration file (default: %APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_custom_modes.json)

Create a JSON file for your custom modes configuration. See examples/modes.example.json for the format:

json
{
"customModes": [
{
"slug": "example-mode",
"name": "Example Mode",
"roleDefinition": "Example role definition describing the mode's capabilities and responsibilities.",
"groups": [
"read",
["edit", {
"fileRegex": "\\.md$",
"description": "Can edit markdown files only"
}],
"command",
"mcp"
],
"customInstructions": "Example custom instructions for the mode."
}
]
}

typescript
interface CustomMode {
slug: string; // Lowercase letters, numbers, and hyphens only
name: string; // Display name
roleDefinition: string; // Detailed description
groups: (string | [string, { fileRegex: string, description: string }])[];
customInstructions?: string; // Optional additional instructions
}
```

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "modes mcp server": {
            "modes": {
                "command": "node",
                "args": [
                    "/path/to/modes-mcp-server/build/index.js"
                ],
                "env": {
                    "MODES_CONFIG_PATH": ""
                }
            }
        }
    }
}

McpServers

{
    "modes": {
        "command": "node",
        "args": [
            "/path/to/modes-mcp-server/build/index.js"
        ],
        "env": {
            "MODES_CONFIG_PATH": ""
        }
    }
}

An MCP server for managing Roo's custom operational modes, providing programmatic control over mode configuration and management.

Features

- Full CRUD operations for custom modes
- Schema validation with Zod
- File system watching for config changes
- Error handling with standard MCP error codes
- Atomic file operations

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.