@zhixuan92/multi-model-agent-mcp 0.1.2 → 0.1.3

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 +8 -19
  2. package/package.json +7 -3
package/README.md CHANGED
@@ -2,22 +2,9 @@
2
2
 
3
3
  MCP stdio server for [`multi-model-agent`](https://github.com/zhixuan312/multi-model-agent). Exposes one tool — `delegate_tasks` — that runs work in parallel across multiple LLM providers (Claude, Codex, OpenAI-compatible) and auto-routes each task to the cheapest provider that can handle it.
4
4
 
5
- ## Install
5
+ ## How it works
6
6
 
7
- ```bash
8
- # Run without installing
9
- npx @zhixuan92/multi-model-agent-mcp serve
10
-
11
- # Or install globally
12
- npm install -g @zhixuan92/multi-model-agent-mcp
13
- multi-model-agent serve
14
- ```
15
-
16
- If you plan to use `openai-compatible` providers, also install the optional peer dependencies:
17
-
18
- ```bash
19
- npm install -g @zhixuan92/multi-model-agent-mcp @openai/agents openai
20
- ```
7
+ You don't run this server yourself. Your MCP client (Claude Code, Claude Desktop, Cursor, …) spawns it over stdio whenever a session starts, using the config snippet below. No install step, no long-running process to manage — `npx` fetches the latest version on demand.
21
8
 
22
9
  Requires Node `>= 22`.
23
10
 
@@ -63,12 +50,14 @@ Provider auth:
63
50
  - **`claude`** uses `ANTHROPIC_API_KEY` if set, otherwise the local Claude auth flow
64
51
  - **`openai-compatible`** uses `apiKeyEnv` (preferred) or inline `apiKey`
65
52
 
66
- ## Register with an MCP client
53
+ ## Setup
67
54
 
68
55
  ### Claude Code
69
56
 
57
+ One command — the client will spawn the server on demand:
58
+
70
59
  ```bash
71
- claude mcp add multi-model-agent -- npx @zhixuan92/multi-model-agent-mcp serve
60
+ claude mcp add multi-model-agent -- npx -y @zhixuan92/multi-model-agent-mcp serve
72
61
  ```
73
62
 
74
63
  If your providers need environment variables:
@@ -78,7 +67,7 @@ claude mcp add multi-model-agent \
78
67
  -e OPENAI_API_KEY=sk-... \
79
68
  -e ANTHROPIC_API_KEY=sk-ant-... \
80
69
  -e MINIMAX_API_KEY=... \
81
- -- npx @zhixuan92/multi-model-agent-mcp serve
70
+ -- npx -y @zhixuan92/multi-model-agent-mcp serve
82
71
  ```
83
72
 
84
73
  ### Claude Desktop
@@ -90,7 +79,7 @@ Add to `claude_desktop_config.json`:
90
79
  "mcpServers": {
91
80
  "multi-model-agent": {
92
81
  "command": "npx",
93
- "args": ["@zhixuan92/multi-model-agent-mcp", "serve"],
82
+ "args": ["-y", "@zhixuan92/multi-model-agent-mcp", "serve"],
94
83
  "env": {
95
84
  "OPENAI_API_KEY": "sk-...",
96
85
  "ANTHROPIC_API_KEY": "sk-ant-...",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhixuan92/multi-model-agent-mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "MCP server for multi-model-agent. Exposes a delegate_tasks tool that routes work to Claude, Codex, or OpenAI-compatible sub-agents based on capability, quality tier, and cost.",
@@ -23,7 +23,9 @@
23
23
  },
24
24
  "homepage": "https://github.com/zhixuan312/multi-model-agent#readme",
25
25
  "bugs": "https://github.com/zhixuan312/multi-model-agent/issues",
26
- "files": ["dist"],
26
+ "files": [
27
+ "dist"
28
+ ],
27
29
  "main": "./dist/index.js",
28
30
  "types": "./dist/index.d.ts",
29
31
  "bin": {
@@ -43,7 +45,9 @@
43
45
  "build": "tsc && chmod +x dist/cli.js",
44
46
  "prepublishOnly": "npm run build"
45
47
  },
46
- "engines": { "node": ">=22.0.0" },
48
+ "engines": {
49
+ "node": ">=22.0.0"
50
+ },
47
51
  "dependencies": {
48
52
  "@zhixuan92/multi-model-agent-core": "^0.1.1",
49
53
  "@modelcontextprotocol/sdk": "^1.0.0",