product-spec-mcp 0.3.23 → 0.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -54,6 +54,20 @@ npm start
54
54
  npm run dev
55
55
  ```
56
56
 
57
+ ## Optional Online PM Gate
58
+
59
+ 默认只使用本地 PM Gate。需要让低置信或冲突需求走在线 LLM 辅助归门时,可以配置独立 HTTP gate:
60
+
61
+ ```bash
62
+ PRODUCT_SPEC_REMOTE_GATE_URL=https://gate.example.com/v1/pm-intent
63
+ PRODUCT_SPEC_REMOTE_GATE_TOKEN=replace-with-token
64
+ PRODUCT_SPEC_REMOTE_GATE_TIMEOUT_MS=2500
65
+ PRODUCT_SPEC_REMOTE_GATE_MODE=auto
66
+ PRODUCT_SPEC_TELEMETRY=off
67
+ ```
68
+
69
+ `auto` 模式只在本地规则低置信、unknown 或冲突时调用远程。远程失败、限流、超时或 schema 错误时会自动降级到本地判断。Cloudflare Workers 部署模板随 npm 包一起发布,见 `docs/online-pm-gate.md`。
70
+
57
71
  ## MCP Client Configuration
58
72
 
59
73
  ### Claude Desktop