offrouter-mcp 0.3.0 → 0.4.0
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 +37 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# offrouter-mcp
|
|
2
|
+
|
|
3
|
+
MCP stdio server for OffRouter. Exposes routing, delegation, and policy tools to any MCP-compatible harness (Claude Code, Codex CLI, Gemini CLI, etc.).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install offrouter-mcp
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Start the server:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
offrouter-mcp
|
|
17
|
+
# or
|
|
18
|
+
offrouter mcp serve
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Exposed tools
|
|
22
|
+
|
|
23
|
+
| Tool | Description |
|
|
24
|
+
|-------------------|-------------|
|
|
25
|
+
| `route` | Route a prompt through policy and return the chosen provider/model |
|
|
26
|
+
| `delegate` | Delegate a sub-task to a specific provider with fallback policy |
|
|
27
|
+
| `status` | Return current usage, active subscriptions, and available capacity |
|
|
28
|
+
| `explain_decision`| Show why a particular provider/model was chosen for a prompt |
|
|
29
|
+
| `cancel` | Cancel an in-flight delegated request |
|
|
30
|
+
|
|
31
|
+
## Links
|
|
32
|
+
|
|
33
|
+
- [offrouter.com](https://offrouter.com)
|
|
34
|
+
- [GitHub](https://github.com/pooriaarab/offrouter)
|
|
35
|
+
- [Docs](https://offrouter.com/docs/quickstart.html)
|
|
36
|
+
|
|
37
|
+
Claude Code primary model is unchanged in V1; OffRouter routes delegated work.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "offrouter-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "vitest run --root ../.. packages/mcp/src/server.test.ts"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"offrouter-core": "0.
|
|
15
|
+
"offrouter-core": "0.4.0",
|
|
16
16
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
17
17
|
"zod": "^3.23.0"
|
|
18
18
|
},
|