tom-echo-mcp 1.0.0 → 1.0.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/README.md +30 -12
- package/dist/index.js +0 -0
- package/mcp-config-example.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,32 +23,52 @@ npm run build
|
|
|
23
23
|
|
|
24
24
|
## 使用方法
|
|
25
25
|
|
|
26
|
-
###
|
|
26
|
+
### 方式1:使用 npx 运行(推荐)
|
|
27
27
|
|
|
28
28
|
使用默认配置(4个工作线程):
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
|
|
31
|
+
npx tom-echo-mcp
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
配置线程数量:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
WORKER_THREADS=8 npx tom-echo-mcp
|
|
32
38
|
```
|
|
33
39
|
|
|
34
|
-
###
|
|
40
|
+
### 方式2:直接运行命令
|
|
35
41
|
|
|
36
|
-
|
|
42
|
+
如果已经通过 `npm link` 安装:
|
|
37
43
|
|
|
38
44
|
```bash
|
|
39
|
-
|
|
45
|
+
tom-echo-mcp
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
配置线程数量:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
WORKER_THREADS=8 tom-echo-mcp
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 方式3:通过 npm 脚本
|
|
55
|
+
|
|
56
|
+
在项目目录中:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npm start
|
|
40
60
|
```
|
|
41
61
|
|
|
42
62
|
### 在 MCP 客户端中配置
|
|
43
63
|
|
|
44
|
-
在你的 MCP
|
|
64
|
+
在你的 MCP 客户端配置文件中添加(使用 npx,推荐):
|
|
45
65
|
|
|
46
66
|
```json
|
|
47
67
|
{
|
|
48
68
|
"mcpServers": {
|
|
49
69
|
"tom-echo": {
|
|
50
|
-
"command": "
|
|
51
|
-
"args": ["
|
|
70
|
+
"command": "npx",
|
|
71
|
+
"args": ["tom-echo-mcp"],
|
|
52
72
|
"env": {
|
|
53
73
|
"WORKER_THREADS": "8"
|
|
54
74
|
}
|
|
@@ -57,15 +77,13 @@ WORKER_THREADS=8 npm start
|
|
|
57
77
|
}
|
|
58
78
|
```
|
|
59
79
|
|
|
60
|
-
|
|
80
|
+
或者直接使用命令名:
|
|
61
81
|
|
|
62
82
|
```json
|
|
63
83
|
{
|
|
64
84
|
"mcpServers": {
|
|
65
85
|
"tom-echo": {
|
|
66
|
-
"command": "
|
|
67
|
-
"args": ["start"],
|
|
68
|
-
"cwd": "/Users/tom/Desktop/tom_echo",
|
|
86
|
+
"command": "tom-echo-mcp",
|
|
69
87
|
"env": {
|
|
70
88
|
"WORKER_THREADS": "8"
|
|
71
89
|
}
|
package/dist/index.js
CHANGED
|
File without changes
|
package/mcp-config-example.json
CHANGED