loading…
Search for a command to run...
loading…
An MCP server that enables Claude Code to consult Opus as a strategic advisor during tasks, allowing users to escalate complex decisions to Opus using their exi
An MCP server that enables Claude Code to consult Opus as a strategic advisor during tasks, allowing users to escalate complex decisions to Opus using their existing Claude Code subscription without needing API keys.
An MCP server that lets Claude Code consult Opus as a strategic advisor mid-task. Run your session on Sonnet or Haiku, and escalate complex decisions to Claude Opus 4.7 on demand — using your existing Claude Code subscription.
Inspired by Anthropic's Advisor Strategy.
┌─────────────────────────────────────────────┐
│ Claude Code (Sonnet) │
│ │
│ "I need to decide on the DB schema..." │
│ │ │
│ ▼ │
│ calls consult_opus MCP tool │
│ │ │
└────────┼────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ opus-advisor MCP server │
│ │
│ 1. Reads prior consultation history │
│ 2. Reads requested files from disk │
│ 3. Pipes prompt to: claude -p --model opus │
│ 4. Logs advice to advisor-log.md │
│ 5. Returns advice to Sonnet │
└─────────────────────────────────────────────┘
No API keys needed. The server shells out to the claude CLI, which uses your existing authentication.
npm install -g opus-advisor-mcp
Or clone and build locally:
git clone https://github.com/Divinci-AI/opus-advisor-mcp.git
cd opus-advisor-mcp
npm install
npm run build
Add to your project's .mcp.json or ~/.claude/.mcp.json:
{
"mcpServers": {
"opus-advisor": {
"command": "opus-advisor",
"timeout": 180000
}
}
}
If installed locally (not globally):
{
"mcpServers": {
"opus-advisor": {
"command": "node",
"args": ["/path/to/opus-advisor-mcp/dist/index.js"],
"timeout": 180000
}
}
}
Restart Claude Code after adding the config.
consult_opusConsult Opus for strategic advice.
| Parameter | Type | Default | Description |
|---|---|---|---|
question |
string | required | The question or problem you need advice on |
context |
string | optional | Additional context, constraints, or background |
files |
string[] | optional | File paths (relative to project root) to include as code context |
effort |
"low" | "medium" | "high" |
"medium" |
Reasoning effort level for Opus |
include_history |
boolean | true |
Include prior consultation history for continuity |
Example:
{
"question": "Is this database migration safe under concurrent writes?",
"files": ["src/db/migration-042.ts", "src/db/schema.ts"],
"effort": "high"
}
read_advisor_logRead the consultation log from prior calls.
| Parameter | Type | Description |
|---|---|---|
last_n |
number | Number of recent consultations to return (omit for all) |
read_advisor_metaRead structured metadata (latency, token counts, effort levels).
| Parameter | Type | Description |
|---|---|---|
last_n |
number | Number of recent entries to return (omit for all) |
clear_advisor_logClear the consultation log and metadata to start fresh.
claude CLI~/.opus-advisor/<project>-<hash>/advisor-meta.jsonlfiles parameter validates that all resolved paths remain within the project root directory. Paths like ../../etc/passwd or absolute paths outside the project are rejected.spawn with array arguments and pipes the prompt via stdin. No shell interpolation occurs.~/.opus-advisor/ in plaintext. These may contain code snippets and questions from your consultations. Do not commit or share these files if they contain sensitive code.| Variable | Description |
|---|---|
ADVISOR_LOG_DIR |
Override the log directory (default: ~/.opus-advisor/<project>-<hash>/) |
Anthropic's advisor_20260301 is a server-side API feature where the advisor sees the full conversation transcript within a single API request. This MCP server is a different approach:
| Anthropic Advisor Tool | opus-advisor-mcp | |
|---|---|---|
| Context sharing | Full transcript (server-side) | Question + files + history (client-side) |
| Auth | API key required | Uses existing Claude Code subscription |
| Integration | API-level (tools array) |
MCP tool (works in Claude Code today) |
| Persistence | None | Markdown log + JSONL metadata |
| Cost | Billed per-token at Opus rates | Included in subscription |
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"opus-advisor-mcp": {
"command": "npx",
"args": []
}
}
}