feature-separate-eval-mcp
This server provides MCP tools to inspect and evaluate feature-separate patent/free-text decomposition records without exposing the original Python backend.
feature_separate_eval_status: List recorded decompositions and the next pending record; read-only ledger access, never uses the network.
feature_separate_eval_check: Check whether a specific record is evaluable; patent records may require allow_network=true after user confirmation, while free-text records are checked locally without Judge.
feature_separate_eval_run: Run a full evaluation of one decomposition, including deterministic checks, granularity gates, and a Judge audit; patent records fetch only CLMS from an allowlisted PatSnap host, then send claim text, decomposed features, and checks to the configured Judge.
All tools respect an allow_network flag (default false), precise host allowlists, and the README’s data/security boundaries.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@feature-separate-eval-mcp List recent feature-separation evaluation records and their status."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
feature-separate-eval-mcp
把 feature-separate-eval 的 Python 后端抽成独立 MCP server。Skill 本身只保留流程与安全边界,实际调用以下 MCP tools:
feature_separate_eval_status:列出拆解记录,零网络调用。feature_separate_eval_check:纯本地检查拆解记录结构,不请求 PatSnap,不以 claim 对齐阻断评测。feature_separate_eval_run:执行确定性检查、粒度闸门和一次 Judge 审计。
服务支持本地 STDIO 和 Streamable HTTP。两种模式都使用同一套后端逻辑。
本地运行
需要 Python 3.10+:
python3.10 -m venv .venv
.venv/bin/pip install -e .
cp .env.example .env编辑 .env。CC_EVAL_DATA_DIR 必须与 patent-tech-feature-separate 使用同一个绝对路径;不要提交真实 token。
STDIO:
.venv/bin/feature-separate-eval-mcpStreamable HTTP:
.venv/bin/feature-separate-eval-mcp --transport streamable-httpHTTP MCP endpoint 默认为 http://127.0.0.1:8000/mcp。
Related MCP server: feature-separate-batch-eval-mcp
连接 Claude Code
公开仓库可以直接克隆,不需要 GitHub token:
git clone https://github.com/73882/feature-separate-eval-mcp.git
cd feature-separate-eval-mcp
python3.10 -m venv .venv
.venv/bin/pip install -e .
cp .env.example .env在 .env 中配置网关与共享 ledger 路径后,用绝对路径注册用户级
STDIO server:
claude mcp add --scope user --transport stdio feature-separate-eval -- \
/absolute/path/feature-separate-eval-mcp/.venv/bin/feature-separate-eval-mcp
claude mcp list重新打开 Claude Code,在 /mcp 中确认 server 为 connected。Claude Code
也支持把配置写进项目根 .mcp.json;用户级注册避免把本机绝对路径提交到项目。
官方说明:https://code.claude.com/docs/en/mcp。
旧 .env 迁移
原项目里的变量分为两组:
MCP 使用:
PATSNAP_API_BASE、Judge 变量以及新增的CC_EVAL_DATA_DIR、两个精确 host 白名单。MCP 不使用:
REAL_TARGET_URL、AGENT_WORK_DIR、PROXY_LOG_DIR;它们属于 Claude 代理或原专利客户端的文件输出配置。
若内部网关只有 HTTP,必须显式配置:
CC_EVAL_ALLOW_INSECURE_HTTP=true
CLAIM_DECOMPOSITION_JUDGE_ALLOWED_HOSTS=judge.internal.example
PATSNAP_ALLOWED_HOSTS=patent.internal.example只允许填写 URL 中的精确 hostname。公网端点保持该开关为 false 并使用 HTTPS。
PATSNAP_KEY 在内部端点不要求鉴权时可以为空。Judge token 仍为必填。
CLAIM_DECOMPOSITION_JUDGE_TOKEN_PREFIX="Bearer " 与 Bearer 都会规范为一个空格,
无需保留尾随空格。
Judge HTTP 请求默认超时为 300 秒;.env.example 显式设置
CLAIM_DECOMPOSITION_JUDGE_TIMEOUT=300。
不要把真实 token 提交到 Git;.env 已被 .gitignore 排除。若 token 曾出现在聊天、
日志或提交中,应立即吊销并换新。
连接 Codex(可选)
Codex 支持 STDIO 与 Streamable HTTP,并从 ~/.codex/config.toml 或受信项目的
.codex/config.toml 读取配置:https://developers.openai.com/codex/mcp。
远程 HTTP 示例:
[mcp_servers.feature-separate-eval]
url = "https://your-host.example/mcp"
tool_timeout_sec = 300
required = true公开部署必须在反向代理或 MCP OAuth 层完成鉴权;不要把无鉴权的评测端点暴露到公网。
数据与安全边界
status只读 ledger,不联网。check始终只读本地 ledger,不调用 PatSnap 或 Judge。run向白名单 PatSnap host 发送专利号,只请求CLMS;请求不传lang,以保留公开文本的原始语言。随后向 Judge 发送 claim 原文、拆解特征和确定性检查结果。所有上游 URL 必须命中精确 host allowlist。默认只允许 HTTPS;可信内网 HTTP 必须通过
CC_EVAL_ALLOW_INSECURE_HTTP=true显式开启。MCP tool 参数
allow_network默认为false;调用方必须先向用户说明发送范围并取得确认。
测试
.venv/bin/pip install -e ".[test]"
.venv/bin/pytestAvailable Tools
3 toolsfeature_separate_eval_checkA
Check whether one record is evaluable without calling Judge.
Patent records query only the CLMS field from the configured PatSnap host and therefore require allow_network=true after user confirmation. Free-text records are checked locally and do not require network permission.
Inputs: record_id, allow_network, patent_number. Returns: object
feature_separate_eval_runA
Evaluate one decomposition and return its human report and persisted result.
This sends claim text, decomposed features, and deterministic checks to the configured Judge. Patent records first send the patent number to PatSnap and request only CLMS. Set allow_network=true only after the user confirms this exact scope.
Inputs: record_id, judge_model, keep_pending, allow_network, +3 more. Returns: object
feature_separate_eval_statusA
List recorded decompositions and the next pending record; never uses network.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool covers a distinct stage of the evaluation workflow: status lists pending records, check performs a pre-flight evaluability test, and run executes the actual evaluation. There is no meaningful overlap or ambiguity between them.
All tool names follow the same feature_separate_eval_ prefix plus a single clear verb: status, check, run. The naming pattern is entirely consistent and predictable.
Three tools is appropriate for this focused evaluation pipeline. Each tool provides a distinct, necessary function, and none are redundant or ornamental.
The tool set covers the full workflow from discovering the next pending record, to verifying evaluability, to running the evaluation and persisting results. No critical missing operation is evident for the server's stated purpose.
Maintenance
Related MCP Connectors
Patent prior-art search, claim comparison, and codebase scans for patentable tech (patent_scan).
Checks RAG citations against their sources (CrossSource method), plus claim checks. Read-only, free.
Verify legal citations, case treatment, quotes and whole briefs against 10.7M U.S. opinions
Evidence-readiness MCP server: validate, audit, and score briefs, memos, and evidence packs.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables acceptance gates for AI coding-agent runs by recording evidence, running deterministic validation, applying a quality gate, and rendering auditable outcomes.753 PyPIApache 2.0
- FlicenseCqualityCmaintenanceEnables users to analyze already-persisted single-patent evaluations to discover cross-patent batch issues such as language, technical-domain, input-structure sensitivity, and language-structure interactions, without modifying existing MCP, ledger, or single-record evaluation JSON.5-
- AlicenseNot gradedqualityBmaintenanceEnables auditing coding-agent claims against local execution traces to detect contradictions, exposing session audits, recent failures, and optional scope-alignment triage.MIT
- FlicenseNot gradedqualityAmaintenanceEnables patent-rule lookup with citations over MPEP/USC/CFR via hybrid vector, lexical, and reranked search, plus prior-art searching across 100M+ patents through Google BigQuery. Also runs automated 35 USC 112 compliance checks on draft claims and applications and generates patent-style diagrams and flowcharts.-