Logo : Second Opinion MCP

Second Opinion MCP

Communauté
SSHdotCodes

Let Claude access other AI models via MCP

ÉditeurSSHdotCodes
Dépôtsecond-opinion
LanguePython
Forks
13
Étoiles
45
Outils disponibles
0
Type de transportstdio
Catégories
LicenceMIT
Liens
  • Connectez des outils à vos workflows IA

    Second Opinion MCP propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • Outils disponibles : 0

    Parcourez ci-dessous les actions que le client peut appeler, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les extraits fournis pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité du dépôt open source

    Dépôt associé : 45 étoiles et 13 forks.

Second Opinion

CI

Second Opinion turns installed AI coding agents into steerable, parallel worker teams for each other. It handles implementation, testing, investigation, review, documentation, and integration work—not just code review.

Background tasks open a separate, lightweight native task-manager window by default. It shows every active Second Opinion task—even tasks another coding agent started—and lets you steer the work, send follow-up messages, choose the model for the next turn, stop or retry a run, and archive finished tasks. The manager is built with Python's native Tk toolkit rather than Electron, a browser, or an always-on server, so it starts quickly and keeps memory use small on macOS, Windows, and Linux.

Second Opinion task manager showing two Grok 4.5 workers spawned by Claude Code

Claude Code orchestrating two Grok 4.5 review workers in the native task manager. Each worker has an independent role and native Grok Build context, with model and effort controls, live output, follow-up messaging, retry, stop, and archive actions in one place.

For example, Claude Code can orchestrate five fresh Codex workers using GPT-5.6 Luna at xhigh: one implements, one writes tests, two inspect different risks, and one handles integration. Luna can make that pool much cheaper while parallel work improves throughput. The direction is completely reversible: Codex can orchestrate Claude Sonnet 5 workers, Grok 4.5 workers through Grok Build, or any supported model the selected harness can access. Each worker keeps its native CLI's auth, model access, tools, and safety behavior.

Second Opinion is model agnostic. It routes between installed agent surfaces and the user's existing model/provider setup instead of hardcoding one model. The generated skills teach each parent agent to reason about when another chat is useful, which agent's strongest capabilities fit the scenario, and when a same-agent fresh-context pass is the only sensible option.

For Claude Code, Second Opinion uses the documented non-interactive claude -p mode. Model aliases or full model names still pass through to Claude Code with --model.

Install

Interactive CLI installer:

bash
curl -fsSL https://second-opinion.ssh.codes/install.sh | bash

Install every detected agent skill without prompts:

bash
curl -fsSL https://second-opinion.ssh.codes/install.sh | bash -s -- --yes

Install all supported skill files:

bash
curl -fsSL https://second-opinion.ssh.codes/install.sh | bash -s -- --all --yes

Install a specific agent integration:

bash
curl -fsSL https://second-opinion.ssh.codes/install.sh | bash -s -- --agent codex --yes
curl -fsSL https://second-opinion.ssh.codes/install.sh | bash -s -- --agent claude --yes
curl -fsSL https://second-opinion.ssh.codes/install.sh | bash -s -- --agent opencode --yes
curl -fsSL https://second-opinion.ssh.codes/install.sh | bash -s -- --agent grok --yes
curl -fsSL https://second-opinion.ssh.codes/install.sh | bash -s -- --agent antigravity --yes

Install on another machine over SSH:

bash
ssh dev@server 'curl -fsSL https://second-opinion.ssh.codes/install.sh | bash -s -- --all --yes'

Update an existing install when a newer version is published:

bash
second-opinion update

second-opinion update downloads the latest CLI from https://second-opinion.ssh.codes, replaces the local binary only when the published version is newer, and refreshes existing Second Opinion-managed skill files. Use second-opinion update --all-skills to refresh every supported skill file or second-opinion update --force to reinstall the published version anyway.

What Gets Installed

The installer adds the second-opinion CLI to ~/.local/bin and writes only Second Opinion-owned skill files:

AgentFile written
Codex~/.agents/skills/second-opinion/SKILL.md
Claude Code~/.claude/skills/second-opinion/SKILL.md
OpenCode~/.config/opencode/skills/second-opinion/SKILL.md
Grok Build~/.grok/skills/second-opinion/SKILL.md
Google Antigravity~/.gemini/antigravity/skills/second-opinion/SKILL.md

Second Opinion does not edit model settings, provider credentials, hooks, MCP servers, permissions, or app config. If one of those skill files already exists and was not generated by Second Opinion, the installer skips it unless you pass --force.

Use

From any shell:

bash
second-opinion status
second-opinion ask auto --from codex --cwd "$PWD" --mode consult --background -- "Review this change and call out risks."
second-opinion ask claude --from opencode --cwd "$PWD" --mode consult --background -- "Find edge cases in the parser."
second-opinion ask claude --from codex --cwd "$PWD" --model fable --mode consult --background -- "Review this design using Claude Code's selected model."
second-opinion ask grok --from claude --cwd "$PWD" --background -- "Implement only the README command table."
second-opinion jobs
second-opinion wait JOB_ID

The installed skills teach each agent to start subagents in the background by default. That lets the parent agent continue its own non-overlapping work while the subagent runs. Later, the parent runs second-opinion wait JOB_ID to collect the subagent output.

Native Image Creation

Second Opinion can ask a coding harness to use an image-generation tool it already exposes. The manager model first discovers eligible harnesses, then requests a real raster artifact with a strict output contract:

bash
second-opinion image-tools --available --json

second-opinion image auto \
  --from claude \
  --cwd "$PWD" \
  --reference screenshots/current-home.png \
  --output design/homepage-concept.png \
  --background \
  --manager none \
  -- "Overhaul this homepage into a deliberate, distinctive product design."

Codex's built-in imagegen / image_gen capability is detected automatically. image-tools --json reports provider-native generator choices (provider-default when the harness does not expose a model list). --reference is repeatable; Codex and OpenCode receive references through their native image/file flags, while other harnesses receive readable local paths and additional-directory access where supported. An explicit target can also try a provider tool that cannot be detected statically. Declare such an existing tool for auto routing with SECOND_OPINION_IMAGE_TOOLS=claude=CreateImage,opencode=imagegen; optionally advertise selectable generators with SECOND_OPINION_IMAGE_MODELS='claude=canvas-v2|canvas-fast'.

Second Opinion does not generate the pixels itself, install an image tool, request credentials, or handle image API keys. The selected coding harness uses its existing authentication, native tools, model access, and safety policy. The command fails when the requested artifact is missing, empty, unchanged, or not a valid PNG, JPEG, WebP, or GIF, so an orchestrator cannot accidentally hand a text-only “design” to its implementation worker.

This enables the exact design handoff suggested in the feedback: generate a visual direction first, inspect it, then give the artifact and original constraints to a design-strong worker such as Claude Opus:

bash
second-opinion wait IMAGE_JOB_ID
second-opinion ask claude --from codex --model opus --reasoning high --cwd "$PWD" --background -- \
  "Implement the approved design in design/homepage-concept.png. Preserve accessibility and responsive behavior."

Use --model to select the coding model supervising the image task. Use --image-model only when the native image tool already exposes a particular generator. Generated files must stay inside --cwd, existing artifacts require --force, and normal ask/team usage remains unchanged.

Parallel Worker Teams

second-opinion team starts one independent native harness process and fresh context per worker. The parent remains the orchestrator and can continue working, steer each task, change its next-turn model/effort, and synthesize the results.

Claude Code orchestrating five lower-cost Codex workers:

bash
second-opinion team codex \
  --from claude \
  --count 5 \
  --strategy balanced \
  --model gpt-5.6-luna \
  --reasoning xhigh \
  --cwd "$PWD" \
  -- "Implement the feature, add tests, inspect risks, and prepare integration in parallel."

Codex orchestrating Claude or Grok workers works the same way:

bash
second-opinion team claude --from codex --count 5 --strategy build --model claude-sonnet-5 --reasoning xhigh -- "Build these non-overlapping slices."
second-opinion team grok --from codex --count 5 --strategy review --model grok-4.5 --reasoning high --manager terminal -- "Review from five distinct angles."

The built-in strategies are:

  • build: core implementation, tests, edge-case hardening, performance/tooling, and integration/docs.
  • review: correctness, security, tests, performance, and product/integration review; workers default to consult mode.
  • balanced: a mix of implementation, tests, independent review, security/performance review, and integration/docs.

Repeat --role "..." to provide custom worker assignments. Use --mode work or --mode consult to force every worker into the same mode. The CLI accepts 1–32 workers, records the team/role/index on every task, opens only one manager, and returns immediately while all workers run in parallel. second-opinion wait TEAM_ID collects the whole team; second-opinion jobs --team TEAM_ID lists just that pool.

Model and effort values pass through the specialized harness: Codex uses codex exec and its reasoning config, Claude Code uses claude -p --effort, OpenCode uses opencode run --variant, Grok Build uses grok -p --reasoning-effort, and Antigravity uses agy --effort. Availability and accepted effort levels remain controlled by each installed provider CLI.

Parallel editing needs deliberate decomposition. Built-in roles include collision-avoidance instructions, but custom non-overlapping file or subsystem assignments are safest. Workers are told to re-read files before edits and never discard concurrent changes.

Keyless Model and Harness Benchmarks

The manager model can query current public Artificial Analysis data before choosing workers. This works without an Artificial Analysis API key, account, sign-in, dependency, or configuration:

bash
second-opinion benchmarks --kind models --sort coding --max-cost 0.50 --limit 12
second-opinion benchmarks --kind models --sort agentic --min-intelligence 45 --json
second-opinion benchmarks --kind agents --sort agent-score --max-cost 3 --json
second-opinion benchmarks --kind all --limit 10 --json

Model results expose the Artificial Analysis Intelligence, Coding, and Agentic indices; average Intelligence Index cost and time per task; model token prices; and speed when published. --kind agents exposes the harness-specific Artificial Analysis Coding Agent Index plus average coding-task cost, time, steps, and tokens. This matters because a model's score and a particular model+harness combination are different decisions.

Public results are cached under ~/.second-opinion/cache/ for six hours to keep startup fast and network use small. Use --refresh to fetch immediately or --offline after the first fetch. Human and JSON output both preserve visible Artificial Analysis attribution and source URLs. Benchmark scores are routing evidence, not guarantees; the orchestrator should also consider task fit, installed CLIs, available subscriptions, and the exact model ids each harness accepts.

The native manager opens by default for a background task. Choose a separate terminal manager or no window at all per run:

bash
second-opinion ask codex --background --manager app -- "Review the API changes."
second-opinion ask claude --background --manager terminal -- "Polish the responsive UI."
second-opinion ask grok --background --manager none -- "Explore two implementation options."
second-opinion ask opencode --background --no-window -- "Run a quick model-flexible review."

Set SECOND_OPINION_MANAGER=app|terminal|none to change the default without modifying any agent application or configuration. If Tk is unavailable on a minimal Linux install, the task still starts and the CLI explains how to use second-opinion tui or install the distribution's python3-tk package.

Use work mode by default. Work mode may edit files and should be assigned carefully so two agents do not edit the same files at the same time. Use explicit --mode consult for read-only review, planning, or risk analysis.

Task Manager

Open either manager at any time:

bash
second-opinion app   # detached native app window
second-opinion tui   # interactive manager in the current terminal

Both surfaces operate only on Second Opinion's records under ~/.second-opinion/jobs/ and provide the same core controls:

  • See active, queued, finished, failed, stopped, and archived tasks.
  • Read live output without loading unbounded logs into memory. The native app renders headings, emphasis, lists, task lists, quotes, tables, code, and safe clickable web links as Markdown.
  • Send a steering message while a task is running; it queues behind the current turn.
  • Change the model and provider-native reasoning effort/variant passed to the task's next invocation. Leave either blank to use the provider default.
  • Stop, retry, archive, or restore tasks.
  • Start a new task with a chosen harness, workspace, mode, and optional model.

The harness is task-specific and stays task-specific: Codex turns run through codex exec, Claude Code through claude -p, OpenCode through opencode run, Grok through grok -p, and Antigravity through agy --print. Follow-up messages invoke that same harness with the prior result context. A model change does not hot-swap a provider process that is already running; it applies to the next turn, or you can stop and retry immediately.

Closing a manager window does not stop an agent task. Normal foreground CLI use loads no GUI modules, starts no manager process, and behaves as before. Second Opinion never embeds into or edits the Codex, Claude Code, Grok, OpenCode, or Antigravity applications.

Goal Mode

Goal mode is opt-in. Do not use it by default, and do not treat it as the normal Second Opinion workflow.

Use --goal only when the user explicitly asks to use Second Opinion with goals, or when the user has clearly requested a long-running delegated goal. For targets with a known native goal command, Second Opinion includes that target's /goal ... command in the subagent prompt:

bash
second-opinion ask claude --from codex --cwd "$PWD" --mode work --background --goal "Finish the frontend accessibility pass and report blockers." -- "Work toward this goal in the assigned UI files only."

When a parent agent starts a goal-backed subagent, the parent still owns the outcome. It should record the job id, check second-opinion jobs, collect the result with second-opinion wait JOB_ID, verify output and edits, and avoid reporting the overall task as finished while the delegated goal is still running or unresolved.

Routing Tips

  • For visual UI, frontend polish, responsive layout, copy tone, and product/design judgment, prefer Claude Code with the latest/highest Claude model available to you, often an Opus-class model when available.
  • For backend work, APIs, data flow, tests, repo-wide edits, debugging, and most general implementation tasks, prefer Codex unless another target has clearly better context or provider access.
  • For quick model-flexible exploration, cheap parallel checks, or trying many configured providers, OpenCode is fast and easy to use; output quality depends heavily on the selected model, so verify smaller or cheaper model results more carefully.
  • Use Antigravity for Google/Gemini, Vertex, Firebase, Cloud Run, or Google-style orchestration.
  • Use Grok Build for broad exploration or implementation spikes when it is installed and speed matters more than precision.

Supported Agents

  • Codex
  • Claude Code
  • OpenCode
  • Grok Build
  • Google Antigravity

The CLI has a central registry for agent commands, skill paths, and task-routing hints. To add another agent, update the registry in bin/second-opinion, add tests, and run second-opinion install --agent <new-agent> to regenerate its skill.

Commands

bash
second-opinion install              # interactive when attached to a terminal
second-opinion install --yes         # install detected agent skills
second-opinion install --all --yes   # install all supported skills
second-opinion update                # update the CLI and managed skills when newer
second-opinion uninstall --agent codex
second-opinion status --json
second-opinion choose --from claude --task "implement auth flow"
second-opinion ask auto --from claude --cwd "$PWD" --mode consult --background -- "Investigate failing tests."
second-opinion ask codex --from claude --cwd "$PWD" --model gpt-5.6-luna --reasoning xhigh --background -- "Implement the test fixtures."
second-opinion team codex --from claude --count 5 --strategy balanced --model gpt-5.6-luna --reasoning xhigh -- "Build and verify this in parallel."
second-opinion team claude --from codex --count 5 --strategy build --model claude-sonnet-5 --reasoning xhigh --manager none -- "Implement non-overlapping slices."
second-opinion benchmarks --kind models --sort coding --max-cost 0.50 --json
second-opinion benchmarks --kind agents --sort agent-score --json
second-opinion image-tools --available --json
second-opinion image codex --from claude --cwd "$PWD" --reference current.png --output design/concept.png --background -- "Create a stronger visual direction."
second-opinion ask auto --from claude --cwd "$PWD" --mode work --background --goal "Finish the migration tests and report blockers." -- "Work toward this goal in the assigned files only."
second-opinion ask auto --from claude --cwd "$PWD" --background --manager terminal -- "Open the terminal task manager."
second-opinion ask auto --from claude --cwd "$PWD" --background --manager none -- "Do not open a manager window."
second-opinion jobs
second-opinion jobs --all
second-opinion wait JOB_ID
second-opinion app
second-opinion tui
second-opinion commands
second-opinion doctor

Design

Second Opinion is intentionally small:

  • No server is required.
  • No browser or Electron runtime is required; the optional native window uses Tk and caps displayed log data.
  • No API keys are handled by Second Opinion; its benchmark tool reads attributed public pages and needs no Artificial Analysis key.
  • Image creation runs through native tools already available in a selected coding harness; Second Opinion does not install generators or handle image API keys.
  • Each target agent runs through its own installed CLI.
  • Claude Code runs through its documented claude -p non-interactive mode.
  • All agent instructions are regular skill files that users can inspect.
  • The subagent prompt includes anti-recursion and scope-isolation rules.
  • The manager starts only for a Second Opinion background task (unless opened explicitly) and can be disabled with --manager none.

Local Development

bash
python3 -m unittest discover -s tests
SECOND_OPINION_HOME="$(mktemp -d)" bin/second-opinion install --all --yes
SECOND_OPINION_HOME="$(mktemp -d)" bin/second-opinion status --json

To test the installer against a local checkout:

bash
python3 -m http.server 8080
SECOND_OPINION_BASE_URL=http://127.0.0.1:8080 bash install.sh --cli-only

License

MIT


Built by SSH.

Installation

TypingMind
Prérequis :

Node.js 18+

{
  "mcpServers": {
    "procreations-official-second-opinion": {
      "command": "",
      "args": []
    }
  }
}

Utilisez le serveur MCP Second Opinion MCP avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois Second Opinion MCP connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer le connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer le connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajouter Second Opinion MCP en tant que serveur

Lorsque le connecteur est à l’état « Prêt », cliquez sur « Modifier les serveurs » et collez la configuration du serveur MCP.

  1. Attendez que le connecteur soit à l’état « Prêt ».
  2. Cliquez sur « Modifier les serveurs ».
  3. Collez la configuration du serveur MCP Second Opinion MCP.
  4. Enregistrez la liste des serveurs.
  5. Actualisez la page si vous souhaitez vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Modifier les serveurs »
{
  "mcpServers": {
    "procreations-official-second-opinion": {
      "command": "npx",
      "args": [
        "-y",
        "second-opinion"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de Second Opinion MCP, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de Second Opinion MCP.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans la discussion ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser Second Opinion MCP pour m’aider dans cette tâche ?
Second Opinion MCP
Bien sûr. Je l’ai lu.
Voici ce que j’ai trouvé avec Second Opinion MCP.

Foire aux questions

À quoi sert le serveur MCP Second Opinion MCP ?

Second Opinion MCP est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP Second Opinion MCP avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser Second Opinion MCP avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP Second Opinion MCP avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois Second Opinion MCP connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP Second Opinion MCP à TypingMind ?

Second Opinion MCP fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, à des applications de bureau, à des outils en ligne de commande ou à des ressources privées sur votre ordinateur.

Quels outils le serveur MCP Second Opinion MCP propose-t-il dans TypingMind ?

Second Opinion MCP propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP Second Opinion MCP ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si Second Opinion MCP nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇