
MCP上的自我验证多智能体流水线:生成器→第二模型Critic→人机环路门。从不无声地做出错误答案。
概览
一个用于验证自身的LLM任务的MCP服务器:从不给出无声的错误答案。 Reflect-MCP 是一个小型多代理流水线,作为 MCP 服务器,可以插入 Claude Desktop、光标或任何 MCP 客户端。A 从混乱的文本中提取一个类型化的对象;A 对每个字段和整个提取过程进行评分;A 要么返回结果,要么如果信心不足,返回一个 needs_review 负载,具体命名人类应确认的字段。 LLMs是。生产环境中真正有害的失败模式不是说“我不知道”的模型——而是返回干净、合理、错误的数值,且没有任何异常信号。Reflect-MCP使验证为A:另一个模型批判输出,确定性结构检查伴随运行,低于置信阈值的测试会升级而非输出。
概述(AI 翻译)
一个用于自我验证的LLM任务的MCP服务器:生成器→二级模型Critic→人机环路门。从不无声地错误回答。
1.简而言之;总结
reflect-mcp 是一个小型多代理流水线,在展示工作前会自行检查,作为MCP服务器,可以插入Claude Desktop、光标或任何MCP客户端。生成器从杂乱文本中提取类型对象;第二模型Critic对每个字段和整个提取过程进行评分;置信阈值门要么返回结果,要么如果信心不足,返回一个needs_review载荷,指定人类应确认的具体字段。
2.为什么——信任问题
LLMs是自信地错误。真正在生产环境中造成伤害的失败模式不是说“我不知道”的模型——它是一个返回干净、合理、错误的数值,且没有任何异常信号的模型。reflect-mcp使验证成为一流步骤:一个不同的模型批评输出,确定性结构检查伴随运行,低于置信阈值的测试会被升级而非发出。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
reflect-mcp
An MCP server for LLM tasks that verify themselves: Generator → second-model Critic → human-in-the-loop gate. Never a silent wrong answer.
1. TL;DR
reflect-mcp is a small multi-agent pipeline that checks its own work before surfacing it, exposed as an MCP server so it plugs into Claude Desktop, Cursor, or any MCP client. A Generator extracts a typed object from messy text; a second-model Critic scores every field and the whole extraction; a confidence-thresholded gate either returns the result or, if it isn’t confident enough, returns a needs_review payload naming the exact fields a human should confirm.
┌───────────┐ ┌──────────────┐ ┌────────┐ ┌──────────────┐
messy text ──▶ │ Generator │ ───▶ │ heuristics + │ ───▶ │ Gate │ ───▶ │ ok / │
│ (model A) │ │ Critic (B) │ │ (HITL) │ │ needs_review│
└───────────┘ └──────────────┘ └────────┘ └──────────────┘
typed JSON per-field + overall threshold flagged fields
confidence decision + rationale
2. Why — the trust problem
LLMs are confidently wrong. The failure mode that actually hurts in production isn’t a model that says “I don’t know” — it’s a model that returns a clean, plausible, wrong value with no signal that anything is off. reflect-mcp makes verification a first-class step: a different model critiques the output, deterministic structural checks run alongside it, and anything below a confidence threshold is escalated instead of emitted.
The pattern is well established: naive extraction pipelines look great in a demo and then quietly degrade on real inputs, and adding a multi-model verification + human-review gate is a proven way to claw accuracy back. The point reflect-mcp makes concrete: the verification discipline is the product, not the extraction call.
In research terms — an evaluation harness with a verifiable reward
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"reflect-mcp": {
"command": "/ABSOLUTE/PATH/reflect-mcp/.venv/bin/python",
"args": ["-m", "reflect_mcp.server"],
"env": {
"REFLECT_PROVIDER": "anthropic",
"ANTHROPIC_API_KEY": "sk-ant-...",
"REFLECT_GENERATOR_MODEL": "claude-3-5-sonnet-latest",
"REFLECT_CRITIC_MODEL": "claude-3-5-haiku-latest"
}
}
}
}