xn-fe-tools 1.5.0 → 1.5.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
@@ -106,6 +106,8 @@ xn-fe-tools 内置了 [MCP(Model Context Protocol)](https://modelcontextprot
106
106
 
107
107
  在项目中创建 MCP 配置文件:
108
108
 
109
+ > **注意:** `xn-fe-tools-mcp` 是 `xn-fe-tools` 包内注册的 bin 命令,不是独立的 npm 包。必须通过 `-p` 参数指定包名。
110
+
109
111
  **Kiro** — `.kiro/settings/mcp.json`:
110
112
 
111
113
  ```json
@@ -113,7 +115,7 @@ xn-fe-tools 内置了 [MCP(Model Context Protocol)](https://modelcontextprot
113
115
  "mcpServers": {
114
116
  "xn-fe-tools": {
115
117
  "command": "npx",
116
- "args": ["xn-fe-tools-mcp"]
118
+ "args": ["-p", "xn-fe-tools", "xn-fe-tools-mcp"]
117
119
  }
118
120
  }
119
121
  }
@@ -126,7 +128,7 @@ xn-fe-tools 内置了 [MCP(Model Context Protocol)](https://modelcontextprot
126
128
  "mcpServers": {
127
129
  "xn-fe-tools": {
128
130
  "command": "npx",
129
- "args": ["xn-fe-tools-mcp"]
131
+ "args": ["-p", "xn-fe-tools", "xn-fe-tools-mcp"]
130
132
  }
131
133
  }
132
134
  }
@@ -139,7 +141,20 @@ xn-fe-tools 内置了 [MCP(Model Context Protocol)](https://modelcontextprot
139
141
  "mcpServers": {
140
142
  "xn-fe-tools": {
141
143
  "command": "npx",
142
- "args": ["xn-fe-tools-mcp"]
144
+ "args": ["-p", "xn-fe-tools", "xn-fe-tools-mcp"]
145
+ }
146
+ }
147
+ }
148
+ ```
149
+
150
+ 如果项目已安装 xn-fe-tools,也可以直接指向本地文件:
151
+
152
+ ```json
153
+ {
154
+ "mcpServers": {
155
+ "xn-fe-tools": {
156
+ "command": "node",
157
+ "args": ["node_modules/xn-fe-tools/dist/mcp/server.mjs"]
143
158
  }
144
159
  }
145
160
  }
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.5.0",
3
- "generatedAt": "2026-03-02T07:16:55.846Z",
2
+ "version": "1.5.1",
3
+ "generatedAt": "2026-03-02T08:09:52.648Z",
4
4
  "hooks": [
5
5
  {
6
6
  "name": "toAwaitFetch",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="1.5.0";exports.VERSION=e,exports.getVersion=function(){return e};
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="1.5.1";exports.VERSION=e,exports.getVersion=function(){return e};
@@ -1 +1 @@
1
- const n="1.5.0";function t(){return n}export{n as VERSION,t as getVersion};
1
+ const n="1.5.1";function t(){return n}export{n as VERSION,t as getVersion};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xn-fe-tools",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "A powerful fetch wrapper with chaining & tuple API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
@@ -52,7 +52,7 @@
52
52
  "addHook": "node scripts/add-hook.js",
53
53
  "removeHook": "node scripts/remove-hook.js",
54
54
  "prepublishOnly": "node scripts/prepublish.js",
55
- "postinstall": "simple-git-hooks"
55
+ "prepare": "simple-git-hooks"
56
56
  },
57
57
  "keywords": [
58
58
  "vue",