@costgate/momentum-mcp 0.1.24
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 +21 -0
- package/momentum-mcp.mjs +25015 -0
- package/package.json +17 -0
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @costgate/momentum-mcp
|
|
2
|
+
|
|
3
|
+
Momentum 的 MCP Server。跑在你自己的机器上,通过 HTTPS 连到你的 Momentum 部署。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
MOMENTUM_URL=https://momentum.example.com \
|
|
7
|
+
MOMENTUM_TOKEN=mom_agent_xxx \
|
|
8
|
+
npx -y @costgate/momentum-mcp@latest
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
整条命令不用自己拼 —— 在 Momentum 的「设置 › Agent」里签发令牌时会直接给出,
|
|
12
|
+
默认用 `@latest`,发新版不用改配置;想固定某一版时把 latest 换成版本号(当前是 0.1.24)。
|
|
13
|
+
|
|
14
|
+
| 环境变量 | 必填 | 说明 |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| `MOMENTUM_URL` | 是 | 你的 Momentum 地址 |
|
|
17
|
+
| `MOMENTUM_TOKEN` | 是 | Agent 令牌,`mom_agent_` 开头 |
|
|
18
|
+
| `MOMENTUM_CF_ACCESS_CLIENT_ID` | 否 | 部署在 Cloudflare Access 后面时才需要 |
|
|
19
|
+
| `MOMENTUM_CF_ACCESS_CLIENT_SECRET` | 否 | 同上 |
|
|
20
|
+
|
|
21
|
+
版本 0.1.24。客户端和服务端版本不一致时,启动日志(stderr)会明确警告。
|