@seamnet/client 0.14.0 → 0.14.1
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/lib/mcp-server.cjs +28 -28
- package/package.json +1 -1
package/lib/mcp-server.cjs
CHANGED
|
@@ -110,49 +110,49 @@ const rl = readline.createInterface({ input: process.stdin });
|
|
|
110
110
|
const tools = [
|
|
111
111
|
{
|
|
112
112
|
name: 'seam',
|
|
113
|
-
description: `Seam
|
|
113
|
+
description: `Seam 网络工具。通过 CLI 风格子命令操作 IM 消息、联系人、本机 Claude Code 实例等。
|
|
114
114
|
|
|
115
115
|
用法:seam({ args: ["<domain>", "<action>", "--opt", "value", ...] })
|
|
116
116
|
返回:JSON { ok: true, data } 或 { ok: false, error }
|
|
117
117
|
|
|
118
|
-
##
|
|
118
|
+
## IM 消息
|
|
119
119
|
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
- 发群消息(终端里看到 💬 [Seam群] 前缀):
|
|
126
|
-
seam({args: ["msg", "group", "--group", "<groupId>", "--text", "hello"]})
|
|
127
|
-
- 查联系人列表 / 某人:
|
|
128
|
-
seam({args: ["contacts", "list"]})
|
|
129
|
-
seam({args: ["contacts", "get", "--user", "<userId>"]})
|
|
130
|
-
- 查自己状态:
|
|
131
|
-
seam({args: ["status"]})
|
|
120
|
+
- 发私聊文本:seam({args: ["msg", "send", "--to", "<userId>", "--text", "你好"]})
|
|
121
|
+
- 发私聊图片:seam({args: ["msg", "send", "--to", "<userId>", "--image", "<path>"]})
|
|
122
|
+
- 发私聊文件:seam({args: ["msg", "send", "--to", "<userId>", "--file", "<path>"]})
|
|
123
|
+
- 发群消息:seam({args: ["msg", "group", "--group", "<groupId>", "--text", "hello"]})
|
|
124
|
+
- 长文本先写文件:seam({args: ["msg", "send", "--to", "<userId>", "--text-file", "<path>"]})
|
|
132
125
|
|
|
133
|
-
##
|
|
126
|
+
## 联系人
|
|
134
127
|
|
|
135
|
-
|
|
136
|
-
|
|
128
|
+
- 列表:seam({args: ["contacts", "list"]})
|
|
129
|
+
- 查某人:seam({args: ["contacts", "get", "--user", "<userId>"]})
|
|
137
130
|
|
|
138
|
-
##
|
|
131
|
+
## 自身状态
|
|
139
132
|
|
|
140
|
-
|
|
133
|
+
- 查状态:seam({args: ["status"]})
|
|
134
|
+
- 邀请码:seam({args: ["invite", "generate"]})
|
|
141
135
|
|
|
142
|
-
##
|
|
136
|
+
## 定时任务
|
|
143
137
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
seam({args: ["self", "cancel", "--id", "some-task"]})
|
|
138
|
+
- 查看:seam({args: ["self", "list"]})
|
|
139
|
+
- 新建:seam({args: ["self", "schedule", "--id", "<id>", "--every", "<duration>", "--text", "<msg>"]})
|
|
140
|
+
- 取消:seam({args: ["self", "cancel", "--id", "<id>"]})
|
|
148
141
|
|
|
149
|
-
##
|
|
142
|
+
## Claude Code 管理(cc)
|
|
143
|
+
|
|
144
|
+
管理本机 tmux 中运行的所有 Claude Code 实例:
|
|
150
145
|
|
|
151
|
-
|
|
146
|
+
- 列出所有实例:seam({args: ["cc", "list"]})
|
|
147
|
+
- 读某个实例输出:seam({args: ["cc", "read", "--session", "<name>", "--lines", "20"]})
|
|
148
|
+
- 给某个实例发消息:seam({args: ["cc", "send", "--session", "<name>", "--text", "<msg>"]})
|
|
149
|
+
- 启动新实例:seam({args: ["cc", "start", "--dir", "<path>", "--session", "<name>"]})
|
|
150
|
+
|
|
151
|
+
## 可用 domain
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
status · msg · contacts · guardian · wechat · inbox · self · invite · cc
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
完整帮助:seam({args: ["--help"]})`,
|
|
156
156
|
inputSchema: {
|
|
157
157
|
type: 'object',
|
|
158
158
|
properties: {
|