guanwei 1.3.0 → 1.3.2

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
@@ -91,13 +91,23 @@ AI 层:多 LLM 适配(OpenAI 兼容 / Google 格式,DeepSeek / Gemini / Gr
91
91
 
92
92
  排盘能力已封装为可被程序调用的服务(与 Web 端共用 `shared/core` 单一算法副本):
93
93
 
94
- **MCP Server**(Claude Code / Cursor 等 agent 直接调用):
94
+ **MCP Server**:支持三种传输,本地与国内客户端通吃——
95
+
96
+ ① stdio(Claude Code / Cursor 等本地 agent):
95
97
 
96
98
  ```jsonc
97
99
  // claude_desktop_config.json
98
100
  { "mcpServers": { "guanwei": { "command": "npx", "args": ["tsx", "packages/guanwei-api/src/mcp.ts"], "cwd": "/你的/guanwei路径" } } }
99
101
  ```
100
102
 
103
+ ② HTTP / SSE(WorkBuddy / ima / Trae 等国内客户端,填 URL 即可):
104
+
105
+ ```jsonc
106
+ // WorkBuddy MCP 配置(type 选 sse 或 http 均可)
107
+ { "mcpServers": { "guanwei": { "type": "http", "url": "http://127.0.0.1:3020/mcp" } } }
108
+ // 先启动服务:cd packages/guanwei-api && npm start (/mcp 为 Streamable HTTP,/mcp/sse 为旧版 SSE)
109
+ ```
110
+
101
111
  ```text
102
112
  agent:用观微排一个 1993-01-23 寅时的八字
103
113
  → 工具 guanwei_chart(art: "bazi", inputs: {...}) → 完整盘面