mcp-probe-kit 1.0.0 → 1.1.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
@@ -42,14 +42,86 @@
42
42
 
43
43
  ## 🚀 快速开始
44
44
 
45
- ### 1. 安装依赖
45
+ ### 📦 方式一:npx 直接使用(推荐)
46
+
47
+ 无需安装,直接使用:
48
+
46
49
  ```bash
47
- npm install && npm run build
50
+ # Cursor 中配置 MCP 服务器
51
+ ```
52
+
53
+ **Windows 配置路径:**
54
+ ```
55
+ %APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
56
+ ```
57
+
58
+ **macOS/Linux 配置路径:**
48
59
  ```
60
+ ~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
61
+ ```
62
+
63
+ **配置内容:**
64
+ ```json
65
+ {
66
+ "mcpServers": {
67
+ "mcp-probe-kit": {
68
+ "command": "npx",
69
+ "args": ["mcp-probe-kit"]
70
+ }
71
+ }
72
+ }
73
+ ```
74
+
75
+ ---
76
+
77
+ ### 📦 方式二:全局安装
78
+
79
+ ```bash
80
+ # 全局安装
81
+ npm install -g mcp-probe-kit
82
+
83
+ # 在 Cursor 中配置
84
+ ```
85
+
86
+ **配置内容:**
87
+ ```json
88
+ {
89
+ "mcpServers": {
90
+ "mcp-probe-kit": {
91
+ "command": "mcp-probe-kit"
92
+ }
93
+ }
94
+ }
95
+ ```
96
+
97
+ ---
98
+
99
+ ### 📦 方式三:本地项目安装
100
+
101
+ ```bash
102
+ # 在项目中安装
103
+ npm install mcp-probe-kit
104
+
105
+ # 在 Cursor 中配置(使用项目路径)
106
+ ```
107
+
108
+ **配置内容:**
109
+ ```json
110
+ {
111
+ "mcpServers": {
112
+ "mcp-probe-kit": {
113
+ "command": "node",
114
+ "args": ["./node_modules/mcp-probe-kit/build/index.js"]
115
+ }
116
+ }
117
+ }
118
+ ```
119
+
120
+ ---
49
121
 
50
- ### 2. 配置 Cursor
122
+ ### 🔧 开发模式(本地开发)
51
123
 
52
- 将服务器添加到 Cursor 的 MCP 配置文件:
124
+ 如果你在本地开发或修改工具:
53
125
 
54
126
  **Windows:**
55
127
  ```
@@ -75,9 +147,9 @@ npm install && npm run build
75
147
 
76
148
  ⚠️ **重要**:将路径修改为你的实际项目路径
77
149
 
78
- ### 3. 重启 Cursor
150
+ ### 🔄 重启 Cursor
79
151
 
80
- 完全退出 Cursor 再重新打开(不是重新加载窗口)
152
+ 配置完成后,**完全退出 Cursor 再重新打开**(不是重新加载窗口)
81
153
 
82
154
  ---
83
155
 
package/build/index.js CHANGED
@@ -544,10 +544,8 @@ async function main() {
544
544
  await server.connect(transport);
545
545
  console.error("MCP Probe Kit 服务器已启动");
546
546
  }
547
- // 只在直接运行时启动服务器
548
- if (import.meta.url === `file://${process.argv[1]}`) {
549
- main().catch((error) => {
550
- console.error("服务器启动失败:", error);
551
- process.exit(1);
552
- });
553
- }
547
+ // 启动服务器
548
+ main().catch((error) => {
549
+ console.error("服务器启动失败:", error);
550
+ process.exit(1);
551
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-probe-kit",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Cursor Development Enhancement Toolkit - MCP Server with 22 practical tools for code quality, development efficiency, and project management",
5
5
  "type": "module",
6
6
  "main": "build/index.js",