ModesSAFE
MCP server for managing Roo's custom operational modes
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
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
# Clone the repository git clone https://github.com/mkc909/modes-mcp-server.git cd modes-mcp-server # Install dependencies npm install # Build the project npm run build
Configuration
1. Environment Variables
Copy .env.example to .env and adjust as needed:
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)
2. Custom Modes Configuration
Create a JSON file for your custom modes configuration. See examples/modes.example.json for the format:
{
"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."
}
]
}3. MCP Settings
Add the server configuration to your MCP settings file (typically at %APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json). See examples/mcp-settings.example.json for the format:
{
"mcpServers": {
"modes": {
"command": "node",
"args": ["/path/to/modes-mcp-server/build/index.js"],
"env": {
"MODES_CONFIG_PATH": "/path/to/custom/modes.json"
},
"disabled": false,
413aa4e21c06OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add modes-mcp-server -- npx -y [email protected]
{
"mcpServers": {
"modes-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (6)
3 read · 2 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
create_mode | write | Create a new custom mode |
delete_mode | destructive | Delete a custom mode |
get_mode | read | Get details of a specific mode |
list_modes | read | List all custom modes |
update_mode | write | Update an existing custom mode |
validate_mode | read | Validate a mode configuration without saving it |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (3)
delete_mode
chokidar, fs-extra, zod, @types/fs-extra, @types/jest, @types/node, jest, ts-jest
Gates applied: no_behavioural_pass, no_license.
413aa4e21c06full audit observations/trust-audit/mcp-server/ccc0168__modes.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 413aa4e21c06 | SAFE | B | 89 | first audit |
Questions
What is the Modes MCP server?
MCP server for managing Roo's custom operational modes
What tools does Modes expose?
6 in total: 3 read-only, 2 that write, and 1 that can delete or overwrite (delete_mode). Every one is listed on this page with its risk.
Is Modes safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Modes need?
No credential environment variables were found in its source, so it appears to need none.
How does Modes run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as modes-mcp-server at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (413aa4e21c06), read on 2026-10-08. The repository is watched and re-audited when it changes.