@give-tech/lingxi-mcp-server 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.
Files changed (2) hide show
  1. package/README.md +10 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -14,18 +14,15 @@
14
14
 
15
15
  ## 安装
16
16
 
17
+ 无需安装,直接使用 `npx` 运行:
18
+
17
19
  ```bash
18
- npm install -g @lingxi/mcp-server
20
+ npx @give-tech/lingxi-mcp-server@latest
19
21
  ```
20
22
 
21
23
  ## 配置
22
24
 
23
- 设置环境变量:
24
-
25
- ```bash
26
- export LINGXI_API_TOKEN="your-api-token-here"
27
- export LINGXI_API_BASE_URL="https://lingxiapi.8jinkeji.com" # 可选,默认为此地址
28
- ```
25
+ 在 MCP 配置中设置环境变量即可,无需单独配置。
29
26
 
30
27
  ### 获取 API Token
31
28
 
@@ -56,8 +53,8 @@ curl -X POST https://lingxiapi.8jinkeji.com/api/v1/users/tokens \
56
53
  {
57
54
  "mcpServers": {
58
55
  "lingxi": {
59
- "command": "node",
60
- "args": ["/path/to/mcp-server/dist/index.js"],
56
+ "command": "npx",
57
+ "args": ["-y", "@give-tech/lingxi-mcp-server@latest"],
61
58
  "env": {
62
59
  "LINGXI_API_TOKEN": "your-api-token-here",
63
60
  "LINGXI_API_BASE_URL": "https://lingxiapi.8jinkeji.com"
@@ -68,8 +65,6 @@ curl -X POST https://lingxiapi.8jinkeji.com/api/v1/users/tokens \
68
65
  ```
69
66
 
70
67
  **配置说明**:
71
- - `command`: 运行 MCP Server 的命令(`node` 或直接指向编译后的文件)
72
- - `args`: MCP Server 文件路径(需替换为实际路径)
73
68
  - `LINGXI_API_TOKEN`: **必填**,灵犀平台的 API Token
74
69
  - `LINGXI_API_BASE_URL`: 可选,默认为 `https://lingxiapi.8jinkeji.com`
75
70
 
@@ -84,9 +79,11 @@ curl -X POST https://lingxiapi.8jinkeji.com/api/v1/users/tokens \
84
79
  {
85
80
  "mcpServers": {
86
81
  "lingxi": {
87
- "command": "lingxi-mcp-server",
82
+ "command": "npx",
83
+ "args": ["-y", "@give-tech/lingxi-mcp-server@latest"],
88
84
  "env": {
89
- "LINGXI_API_TOKEN": "your-api-token-here"
85
+ "LINGXI_API_TOKEN": "your-api-token-here",
86
+ "LINGXI_API_BASE_URL": "https://lingxiapi.8jinkeji.com"
90
87
  }
91
88
  }
92
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@give-tech/lingxi-mcp-server",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP Server for Lingxi API Management Platform",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",