Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and enforces routing across 17 platforms via MCP + hooks.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add context-mode -- npx -y context-mode~/.codex/config.toml
[mcp_servers.context-mode]
command = "npx"
args = ["-y", "context-mode"]
# codex mcp add context-mode -- npx -y context-mode~/.cursor/mcp.json
{
"mcpServers": {
"context-mode": {
"command": "npx",
"args": [
"-y",
"context-mode"
]
}
}
}.vscode/mcp.json
{
"servers": {
"context-mode": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"context-mode"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"context-mode": {
"command": "npx",
"args": [
"-y",
"context-mode"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"context-mode": {
"command": "npx",
"args": [
"-y",
"context-mode"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"context-mode": {
"command": "npx",
"args": [
"-y",
"context-mode"
]
}
}
}