npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-consult

v0.3.0

Published

Evidence-first multi-model consultation MCP server: independent opinions from 2-5 configured LLMs

Readme

mcp-consult

npm version CI license

English · 简体中文

让每个重要决策都有第二意见。

mcp-consult 是一个 Model Context Protocol 服务器,为任意 MCP 客户端(Claude Code、Claude Desktop、Cursor 等)提供一个显式的、证据优先的评审检查点。 一个 agent 负责干活;当某个决策值得更多审视时,2–5 个独立配置的模型会收到同一份案情摘要、 回答同一个问题。主 agent 比较它们的匿名意见,并始终对最终决定负责。

没有后台委员会,没有自动的模型开销,没有第二支队伍抢着改你的工作区。

Agent 团队扩展的是劳动力,mcp-consult 分散的是判断力

Agent 团队适合需要"更多 hands"的任务:拆分工作、分配角色、并行探索、合并产出。咨询解决的是 另一个问题——更像把几位不同的评审请进同一间会议室,发给每人同一份证据,问同一个精心框定的 问题。他们不分工、也不通过讨论收敛。价值在于看到独立模型在哪里一致、在哪里分歧、以及某个 模型注意到了别的模型没注意到的东西。

| | Agent 团队 / 子代理 | mcp-consult | | --- | --- | --- | | 优化目标 | 执行能力 | 决策质量 | | 工作分配 | 不同角色或子任务 | 每个模型同一个问题 | | 上下文 | 按任务各自收集 | 一份共享的、精选的证据包 | | 工具 | 通常可用 | 无工具、无历史、无工作区访问 | | 输出 | 待合并的工作产物 | 待评估的独立意见 | | 开销 | 随执行持续增长 | 只发生在显式检查点 |

快速开始

1. 写一个配置文件(如 ~/consult.config.json)。顾问是 OpenAI-compatible 端点;API key 只通过环境变量名引用,绝不写进文件:

{
  "consultants": [
    { "baseUrl": "https://api.deepseek.com/v1", "model": "deepseek-chat", "apiKeyEnv": "DEEPSEEK_API_KEY" },
    { "baseUrl": "https://api.openai.com/v1", "model": "gpt-5", "apiKeyEnv": "OPENAI_API_KEY" }
  ]
}

2. 在客户端里注册服务器。

Claude Code:

claude mcp add consult \
  --env DEEPSEEK_API_KEY=sk-... --env OPENAI_API_KEY=sk-... \
  -- npx -y mcp-consult --config ~/consult.config.json

Claude Desktop / Cursor(mcpServers 配置项):

{
  "mcpServers": {
    "consult": {
      "command": "npx",
      "args": ["-y", "mcp-consult", "--config", "/absolute/path/consult.config.json"],
      "env": { "DEEPSEEK_API_KEY": "sk-...", "OPENAI_API_KEY": "sk-..." }
    }
  }
}

3. 发起咨询。 在 Claude Code 里调用显式 prompt:

/mcp__consult__consult 评审重试机制的设计,告诉我是否可以发布。

Agent 会先准备证据,恰好调用一次 consult 工具,然后自己综合这些匿名意见。你也可以直接 让 agent "用 consult 征求一下第二意见"。

顾问能看到什么、永远看不到什么

每个顾问收到完全相同的系统提示词和一份证据包:目标、问题、背景、精选证据、约束。顾问 没有工具、没有对话历史、没有工作区访问权限。每个顾问返回一个严格 JSON 意见——结论、 带证据引用的要点、假设、风险、建议、置信度。Markdown 围栏、多余字段、编造的证据引用、 超限响应都会被拒绝,而不是被"修复"。

结果是匿名的:调用方模型只看到 Consultant A/B/C,永远看不到 provider 或模型名。路由与 失败诊断留在运维侧的 stderr。失败路由以有限类别上报(timeout、unavailable、 provider_error、invalid_output、max_tokens、aborted),且咨询绝不自动重试—— 一次显式请求,一次扇出尝试。

适合征求第二意见的时刻

  • 在几个都说得通的架构之间做选择;
  • 评审安全、隐私或数据保留边界;
  • 挑战迁移或回滚方案;
  • 实现完成后检查发布就绪度;
  • 审视微妙的失败模式与恢复行为;
  • 检验一个结论是稳健的,还是只是某个模型的偏好。

例行修改、显而易见的修复、已经定案的执行,通常不需要评审团。

配置

配置 2–5 条不重复的顾问路由;名册留空则工具保持休眠。常见端点:DeepSeek (https://api.deepseek.com/v1)、OpenAI(https://api.openai.com/v1)、OpenRouter (https://openrouter.ai/api/v1)、Moonshot(https://api.moonshot.cn/v1)、Ollama (http://localhost:11434/v1)、vLLM(http://localhost:8000/v1)。全部字段与限制见 配置文档。

文档

沿革

本项目前身为 dsh-consult(DeepSeek Harness 插件)。DSH 插件保留在 v0.2.0 tag。 mcp-consult 保留了证据优先的咨询内核,并将其开放给所有 MCP 客户端。

许可证

MIT