intent-gate-mcp
v0.14.1Lightweight intent-alignment plugin for coding agents: requirement-analysis playbook, three-level intent funnel with file-in-the-loop persistence, optional…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dispatch_question
登记并分发一道意图断层题(非阻塞,秒回)。 feature 为 .harness/requests/ 下的需求名;category 用 📋(业务)/🔧(技术) 标记归属角色;severity 用 🔴(核心逻辑断层,未消则 status=blocked)/🟡(局部歧义,默认); options 至少 3 个互斥选项(有 recommend 推荐项可放宽)。 coordinate 为图内坐标(如「状态机 X-->Y」「时序图 步骤3」「决策表 BR-01」), 同一坐标只允许一道在飞题(重复登记被拒并返回 existing_token)。 reflow=True 标è…
| Parameter | Type | Description |
|---|---|---|
feature * | string | |
gap * | string | |
at_user_ids | ||
category | string | |
coordinate | ||
options | ||
project_path | ||
recommend | string | |
reflow | boolean | |
severity | string | |
targets |
collect_answers
领取某需求 inbox 里的新答案(领取即归档,不重复下发)。 拿到答案后你必须:注入对应图/规则 → 调 resolve_question 核销。 只领不核销,题会一直挂在待决清单上(这是纪律,不是缺陷)。 project_path: 本次调用生效的项目根(.harness 所在);省略则用进程启动时的 workspace_root——宿主服务多个工作区时必须显式传,否则读不到本项目的现场。
| Parameter | Type | Description |
|---|---|---|
feature * | string | |
project_path |
resolve_question
核销一题:checklist 打勾 + 写 alignment-log 标准流水(蓝军 R1 复核契约)。 source: group(钉钉群)/dialog(对话框)/code(代码实证)。 interpretation 是注入图/规则的语义;landing 必须精确到 状态机边/时序图步骤/决策表规则号/字段——找不到落点就不要核销,先回问。 成功核销的返回含 phase 块(相位机判定:align/generate/gate/deliverable)。 project_path: 本次调用生效的项目根(.harness 所在);省略则用进程启动时的 workspace_root——å®…
| Parameter | Type | Description |
|---|---|---|
answer * | string | |
feature * | string | |
interpretation * | string | |
landing * | string | |
responder * | string | |
token * | string | |
project_path | ||
source | string |
record_inference
登记一条 AI 公示推断(非核心主流程专用)。 basis 是显式依据链(如"addOrder 对称逻辑")。资金主流程/红线规则 禁止纯推断,必须 dispatch_question 让人拍板。登记后进待确认清单, 会话末 confirm_inferences 批量点头。 project_path: 本次调用生效的项目根(.harness 所在);省略则用进程启动时的 workspace_root——宿主服务多个工作区时必须显式传。
| Parameter | Type | Description |
|---|---|---|
basis * | string | |
conclusion * | string | |
feature * | string | |
gap * | string | |
project_path |
confirm_inferences
批量确认/驳回 AI 推断。decisions 元素: {"id": "INF-1", "approved": true, "interpretation": "...", "landing": "..."} approved 时 interpretation/landing 必填(确认即注入,注入必须有落点)。 确认记录会写进 alignment-log,未确认的推断禁止标 intent_aligned: true。 project_path: 本次调用生效的项目根(.harness 所在);省略则用进程启动时的 workspace_root——宿主服务多个工作区时必须显式传。
| Parameter | Type | Description |
|---|---|---|
confirmer * | string | |
decisions * | array | |
feature * | string | |
project_path |
rebroadcast_pending
会话恢复对账:返回未勾题清单(single 通道不发群,由宿主向用户逐题确认)。 每次开工/用户说"继续"时先调它。钉钉群催单走姊妹篇 intent-gate-service 的 group_rebroadcast(读同一份清单)。 project_path: 本次调用生效的项目根(.harness 所在);省略则用进程启动时的 workspace_root——宿主服务多个工作区时必须显式传,否则对账的是别的项目。
| Parameter | Type | Description |
|---|---|---|
feature * | string | |
project_path |
list_pending_questions
自检:未勾题数、未确认推断数、已废弃数、是否具备标 intent_aligned 的条件。 返回含 phase 块(相位机判定:align/generate/gate/deliverable)。 project_path: 本次调用生效的项目根(.harness 所在);省略则用进程启动时的 workspace_root——🔴 省略时若该需求不在缺省根下,会返回"0 题"的空现场而非报错, 看起来像"意图已齐",务必配合 describe_workspace 确认根对了再信这个数。
| Parameter | Type | Description |
|---|---|---|
feature * | string | |
project_path |
abandon_question
废弃题目——用户中途不想搞了的正式途径。 token=None 废弃本需求全部未决题。废弃后不再催单、不阻断 intent_aligned_ready,也不可再 resolve。比让用户直接删文件体面: 废弃记录留在清单里,可追溯。 project_path: 本次调用生效的项目根(.harness 所在);省略则用进程启动时的 workspace_root——宿主服务多个工作区时必须显式传。
| Parameter | Type | Description |
|---|---|---|
feature * | string | |
project_path | ||
reason | string | |
token |
abandon_inference
废弃一条未确认的 AI 推断(推断前提已不成立/用户弃用)。 project_path: 本次调用生效的项目根(.harness 所在);省略则用进程启动时的 workspace_root——宿主服务多个工作区时必须显式传。
| Parameter | Type | Description |
|---|---|---|
feature * | string | |
inference_id * | string | |
project_path | ||
reason | string |
describe_workspace
自检:本次调用生效的项目根、它的 .harness 现场与已登记需求。 🔴 每个新会话开工第一件事调它——确认根指向的是你以为的那个项目。 多工作区宿主(如 DSH)里省略 project_path 会回落**进程启动目录**,未必是 当前项目;根错了,所有 .harness 落盘都会静默落到别的项目去。 返回 features 列出 .harness/requests/ 下已有需求名,供后续调用显式传参。
| Parameter | Type | Description |
|---|---|---|
project_path |
analyze_requirement
需求解析现场勘查(两条路自动区分)+ 机械初筛绊线。 输入契约:prd_path 指 UTF-8 文本文件或 .docx(相对路径按**生效的项目根** 解析,不按进程 cwd)。.docx 引擎:markitdown(环境已有则复用增强)→ mammoth(核心依赖,安装时自动带上);无 mammoth 拒绝并带修复指令, 无静默降级。.doc/.pdf 等其他二进制不支持,报错带转文本指引。 - 从0解析(fresh):无现场时触发,必须给 prd_path。返回机械初筛信号 (型态/复…
| Parameter | Type | Description |
|---|---|---|
feature * | string | |
prd_path | ||
project_path |
record_judgment
宿主语义判断落账:你按 playbook 分析完的正式结论交给 MCP 校验+落盘。 logic_pattern: ["State-Driven"/"Process-Driven"/"Rule-Driven"] 子集; complexity: simple/medium/complex;confidence: 🟢/🟡/🔴(你的正式灯); gaps: [{"gap","severity"(🔴/🟡),"category"(📋/🔧),"options"(≥3),"recommend"?}]。 落盘后逐题 dispatch_question 分发(🔴 未消 status=blocked)。 project_path: 本次调用生效的项目根(.harness 所在);省略则用进程启动时的 workspace_root——宿主服…
| Parameter | Type | Description |
|---|---|---|
complexity * | string | |
confidence * | string | |
feature * | string | |
logic_pattern * | array | |
gaps | ||
notes | string | |
prd_path | ||
project_path | ||
selected_tools |
lint_summary
summary.md 机械自检(L1-L23 + 三矩阵,逻辑冻结)。 L1 成功终态 / L2 死状态 / L3 多出边 / L4 映射表锚点 / L5 BR 引用 / L6 表读写矩阵 / L7 映射行覆盖 / L8 降级回执 / L9 路径隔离 / L10 空矩阵② / L11 complex 打标 / L12 锚点可机检 / L13 占位符残留 / L21 图演化校验 / L22 回流熔断兜底 / L23 禁用表述反查 + 三张矩阵骨架。 🔴 CRITICAL 未归零不得交付(playbook Step 4 门禁)。 project_path: 本次调用生效的项目根。summary_path 给相对路径时…
| Parameter | Type | Description |
|---|---|---|
summary_path * | string | |
project_path |
draft_mapping
意图注入映射表草稿(锚点脚本定位,逻辑冻结)。 落点锚点由脚本真实定位(章节号/规则号/步骤号),禁止凭空手写—— 手写锚点是错位事故首要来源。你只需补审语义列后并入 summary.md。 ⚠️ 未定位条目必须当场回问人类,禁止静默放过。 project_path: 本次调用生效的项目根。summary_path 给相对路径时按它解析 (不再按进程 cwd);省略则用进程启动时的 workspace_root。
| Parameter | Type | Description |
|---|---|---|
summary_path * | string | |
project_path |