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 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
- npm start
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
- 通过环境变量 `WORKER_THREADS` 配置工作线程数量:
42
+ 如果已经通过 `npm link` 安装:
37
43
 
38
44
  ```bash
39
- WORKER_THREADS=8 npm start
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": "node",
51
- "args": ["/Users/tom/Desktop/tom_echo/dist/index.js"],
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
- 或者使用 npm 运行:
80
+ 或者直接使用命令名:
61
81
 
62
82
  ```json
63
83
  {
64
84
  "mcpServers": {
65
85
  "tom-echo": {
66
- "command": "npm",
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
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "mcpServers": {
3
3
  "tom-echo": {
4
- "command": "node",
4
+ "command": "npx",
5
5
  "args": [
6
- "/Users/tom/Desktop/tom_echo/dist/index.js"
6
+ "tom-echo-mcp"
7
7
  ],
8
8
  "env": {
9
9
  "WORKER_THREADS": "4"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tom-echo-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "一个支持多线程的 MCP Echo 服务器",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",