brainstorm-mcp

v1.8.0
io.github.spranab/brainstorm-mcp Checked 5 days ago Published 2 months ago

Multi-model AI brainstorming debates with code review and quick perspectives

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

brainstorm

Run a multi-round brainstorming debate between multiple AI models. IMPORTANT: Before calling this tool, you MUST ask the user to choose a mode: 1. **API mode** — Calls configured providers. These are either HTTP APIs billed per token (OpenAI, Gemini, DeepSeek, ...) or locally installed agent CLIs such as 'claude' and 'codex', which run on the user's existing subscription at no API cost. Call list_providers to see which of each are available. 2. **Hosted mode** — No API keys needed. You execute prompts using sub-agents with models available in your environment (opus/sonnet/haiku, GPT, Gemi…

ParameterTypeDescription
topic *stringThe topic, question, or prompt to brainstorm about
contextstringOptional context to ground the debate — code snippets, PR diffs, error logs, architecture docs, etc. Models will see this alongside the topic.
modestringExecution mode. Must be provided — if not, the tool will return options for the user to choose. 'api' — MCP server calls model APIs directly using configured API keys. 'hosted' — No API keys nee…
modelsarrayOptional: specific models to use as 'provider:model' (e.g. 'openai:gpt-4o', or 'claude:sonnet' / 'codex:default' for subscription-backed CLI providers). If not provided, all configured providers are u…
participatebooleanWhether Claude should actively participate as a debater in each round (default: true). Set to false for a non-interactive debate between external models only.
roundsintegerNumber of debate rounds (default: 3)
stylestringDebate style. 'freeform' (default): open brainstorming. 'redteam': adversarial — models find flaws, risks, and weaknesses. 'socratic': probing questions that expose assumptions and push for deeper u…
synthesizerstringOptional: model for final synthesis as 'provider:model'. Defaults to the first model.
systemPromptstringOptional system prompt to guide the brainstorming style or constraints

brainstorm_respond

Submit YOUR (Claude's) response for the current round of an interactive brainstorm session. After the brainstorm tool returns external models' responses, call this tool with your substantive contribution. Read all responses carefully and engage with specific points — agree, disagree, build upon, or challenge ideas. Do not just summarize. After your response, the next round runs automatically (or synthesis if final round).

ParameterTypeDescription
response *stringYour substantive contribution to this round of the debate. Engage deeply with the other models' responses. Minimum 50 characters.
session_id *stringThe session ID returned by the brainstorm tool

brainstorm_collect

Submit collected model responses for a hosted brainstorm session. After receiving prompts from `brainstorm` (mode='hosted') or a previous `brainstorm_collect` call, execute each prompt by spawning a sub-agent for EACH model (use the model parameter to select the right model, e.g., model='sonnet' or model='haiku'). Collect all responses and submit them here. This tool returns either: (1) the next round's prompt to execute, (2) a synthesis prompt for a single model, or (3) the final formatted debate result when complete.

ParameterTypeDescription
responses *arrayArray of model responses collected by the host
session_id *stringThe session ID from the brainstorm tool

brainstorm_quick

Get instant multi-model perspectives on any question — no debate rounds, no synthesis delay. Fires all models in parallel and returns a compact comparison. Under 10 seconds. Use this for quick second opinions, snap decisions, or when you want diverse perspectives fast. For deeper analysis with multiple rounds and synthesis, use the `brainstorm` tool instead.

ParameterTypeDescription
topic *stringThe question or topic to get quick perspectives on
contextstringOptional context — code snippets, error logs, etc. Models will see this alongside the topic.
modelsarrayOptional: specific models as 'provider:model' (API providers, or CLI providers like 'claude:sonnet' that use a subscription instead of API credits). If not provided, all configured providers are used.
stylestringPerspective style (default: freeform)

brainstorm_review

Multi-model code review. Pass a diff and get structured findings with severity, file/line references, and a verdict (approve / approve with warnings / needs changes). Multiple models review independently, then findings are synthesized and deduplicated. Use this for PR reviews, code audits, or pre-commit checks.

ParameterTypeDescription
diff *stringThe unified diff to review (e.g., output of `git diff`)
descriptionstringOptional: PR description or commit message
focusOptional: focus areas for the review. Default: all categories.
instructionsstringOptional: repo-specific review instructions (e.g., 'we use strict null checks', 'focus on SQL injection risks')
modelsarrayOptional: specific models as 'provider:model'. Default: all configured providers.
titlestringOptional: PR title or change summary for context

list_providers

List all configured AI providers and their default models for brainstorming. Includes locally installed agent CLIs (claude, codex, ...) which run on an existing subscription instead of metered API credits.

add_provider

Add a new AI provider for brainstorming. Supports any OpenAI-compatible API, or a locally installed agent CLI (kind='cli') that runs on an existing subscription instead of API credits.

ParameterTypeDescription
defaultModel *stringDefault model for this provider, e.g. 'llama3', 'sonnet'. Use 'default' to let a CLI pick its own.
name *stringProvider name, e.g. 'groq', 'ollama', 'mistral', 'claude'
adapterstringcli only: built-in adapter — claude, codex, gemini, qwen, kimi, cursor-agent, opencode, droid — or 'custom'. Defaults to the provider name.
apiKeyEnvVarstringapi only: environment variable holding the API key. Use 'NONE' if no key required.
argsarraycli only ('custom' adapter): argv template. Placeholders: {{model}}, {{system}}, {{prompt}}, {{outfile}}.
backendstringcli only: run the Claude CLI against another vendor's coding plan — moonshot, minimax, glm. Overrides 'adapter'.
baseURLstringapi only: base URL, e.g. 'http://localhost:11434/v1' for Ollama
commandstringcli only: executable to run. Required for adapter 'custom'.
kindstring'api' (default) for an OpenAI-compatible HTTP endpoint, 'cli' for a local agent CLI.
promptViastringcli only ('custom' adapter): how the prompt reaches the CLI.