aixx-mcp 1.0.0 → 1.0.2
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/index.js +4 -4
- package/package.json +8 -38
- package/README.md +0 -69
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* aixx_task - 轮询媒体任务(GET /v1/media/task/{id})
|
|
12
12
|
*
|
|
13
13
|
* 鉴权: 优先用工具参数 apiKey,其次环境变量 AIXX_API_KEY。
|
|
14
|
-
* Key 格式: sk- + 48
|
|
14
|
+
* Key 格式: sk- + 48位字母数字。
|
|
15
15
|
*/
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
@@ -138,7 +138,7 @@ async function handle(msg) {
|
|
|
138
138
|
return reply(id, {
|
|
139
139
|
protocolVersion: '2024-11-05',
|
|
140
140
|
capabilities: { tools: {} },
|
|
141
|
-
serverInfo: { name: 'aixx-mcp', version: '1.0.
|
|
141
|
+
serverInfo: { name: 'aixx-mcp', version: '1.0.1' }
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
if (method === 'notifications/initialized') return; // no response
|
|
@@ -158,8 +158,8 @@ async function callTool(id, params) {
|
|
|
158
158
|
if (!key) {
|
|
159
159
|
return toolResult(id, '缺少 AIXX API Key。请在连接器环境变量设置 AIXX_API_KEY,或在调用时传 apiKey 参数。注册并领取 Key: https://baodan.run/console/ (新用户送 ¥5,登录后在「令牌」页生成 sk- key)。', true);
|
|
160
160
|
}
|
|
161
|
-
if (!/^sk-[
|
|
162
|
-
return toolResult(id, 'API Key 格式不对:应为 sk- + 48
|
|
161
|
+
if (!/^sk-[A-Za-z0-9]{48}$/.test(key)) {
|
|
162
|
+
return toolResult(id, 'API Key 格式不对:应为 sk- + 48位字母数字。', true);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
try {
|
package/package.json
CHANGED
|
@@ -1,41 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aixx-mcp",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "AIXX MCP
|
|
5
|
-
"type": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"index.js",
|
|
12
|
-
"README.md"
|
|
13
|
-
],
|
|
14
|
-
"keywords": [
|
|
15
|
-
"aixx",
|
|
16
|
-
"mcp",
|
|
17
|
-
"model-context-protocol",
|
|
18
|
-
"openai-compatible",
|
|
19
|
-
"llm",
|
|
20
|
-
"ai",
|
|
21
|
-
"image-generation",
|
|
22
|
-
"video-generation",
|
|
23
|
-
"claude",
|
|
24
|
-
"gpt",
|
|
25
|
-
"gemini",
|
|
26
|
-
"deepseek"
|
|
27
|
-
],
|
|
28
|
-
"engines": {
|
|
29
|
-
"node": ">=18"
|
|
30
|
-
},
|
|
31
|
-
"license": "MIT",
|
|
32
|
-
"author": {
|
|
33
|
-
"name": "AIXX",
|
|
34
|
-
"url": "https://baodan.run/aixx/"
|
|
35
|
-
},
|
|
36
|
-
"homepage": "https://baodan.run/aixx/",
|
|
37
|
-
"repository": {
|
|
38
|
-
"type": "git",
|
|
39
|
-
"url": "https://gitee.com/kk0803/token-hub.git"
|
|
40
|
-
}
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "AIXX MCP Server - AI capability gateway (list models / chat / image / video / task)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": { "aixx-mcp": "./index.js" },
|
|
7
|
+
"keywords": ["aixx", "mcp", "ai", "llm", "gateway"],
|
|
8
|
+
"author": "AIXX",
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"engines": { "node": ">=16" }
|
|
41
11
|
}
|
package/README.md
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# @ AIXX MCP Server
|
|
2
|
-
|
|
3
|
-
> **Google for AI — One line. Every AI model.**
|
|
4
|
-
> A zero-dependency MCP server that lets any MCP-compatible client (WorkBuddy, Claude Desktop, Cursor, etc.) call **dozens of LLMs + image/video generation** through a single AIXX key.
|
|
5
|
-
|
|
6
|
-
## What it does
|
|
7
|
-
|
|
8
|
-
- 🔑 **One key, every model** — Claude, GPT, Gemini, DeepSeek, Qwen, GLM, Moonshot, MiniMax and more (38+ text models, live list).
|
|
9
|
-
- 🖼️ **Image generation** — GPT-Image-2, Nano Banana Pro, Seedream, Midjourney, ...
|
|
10
|
-
- 🎬 **Video generation** — MiniMax H3, Veo 3.1, Kling, Seedance, ... (async + task polling).
|
|
11
|
-
- 🔌 **OpenAI-compatible** — talks to `https://baodan.run/v1`.
|
|
12
|
-
- 🪶 **Zero dependencies** — single file, Node 18+ only.
|
|
13
|
-
|
|
14
|
-
## Get a key
|
|
15
|
-
|
|
16
|
-
Register at **https://baodan.run/console/** — new accounts get **¥5 free credit**. After login, generate your `sk-` key on the **令牌 (Tokens)** page.
|
|
17
|
-
|
|
18
|
-
Your key looks like `sk-` + 48 hex chars.
|
|
19
|
-
|
|
20
|
-
## Configure
|
|
21
|
-
|
|
22
|
-
Set your key via the `AIXX_API_KEY` environment variable (recommended), or pass `apiKey` per call.
|
|
23
|
-
|
|
24
|
-
### WorkBuddy
|
|
25
|
-
|
|
26
|
-
Add to `~/.workbuddy/mcp.json`:
|
|
27
|
-
|
|
28
|
-
```json
|
|
29
|
-
{
|
|
30
|
-
"mcpServers": {
|
|
31
|
-
"aixx": {
|
|
32
|
-
"command": "npx",
|
|
33
|
-
"args": ["-y", "aixx-mcp"],
|
|
34
|
-
"env": {
|
|
35
|
-
"AIXX_API_KEY": "sk-your-key-here"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### Claude Desktop / Cursor
|
|
43
|
-
|
|
44
|
-
Same block under `mcpServers` in your client's MCP config.
|
|
45
|
-
|
|
46
|
-
## Tools
|
|
47
|
-
|
|
48
|
-
| Tool | Description |
|
|
49
|
-
|------|-------------|
|
|
50
|
-
| `aixx_list_models` | List live text models (cached 5 min). |
|
|
51
|
-
| `aixx_chat` | Chat completion. Supports streaming internally, returns full text. |
|
|
52
|
-
| `aixx_image` | Generate an image (sync ≤90s, then falls back to task). |
|
|
53
|
-
| `aixx_video` | Submit a video generation task (async). |
|
|
54
|
-
| `aixx_task` | Poll an image/video task for status/result URL. |
|
|
55
|
-
|
|
56
|
-
### Tip: reasoning models
|
|
57
|
-
|
|
58
|
-
Models like `deepseek-v4-pro` spend tokens on reasoning. Give `max_tokens` enough headroom (≥500) or the visible answer may be empty.
|
|
59
|
-
|
|
60
|
-
## Billing
|
|
61
|
-
|
|
62
|
-
- Text: token-based credit.
|
|
63
|
-
- Images: from ¥0.06/image.
|
|
64
|
-
- Video: per-second (e.g. MiniMax 480p ¥0.048/s); rate limit 5 req/min/key.
|
|
65
|
-
- `402` means insufficient credit — top up at https://baodan.run/console/topup.
|
|
66
|
-
|
|
67
|
-
## License
|
|
68
|
-
|
|
69
|
-
MIT
|