@index9/mcp 1.0.30 → 4.0.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 +16 -64
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +868 -0
- package/manifest.json +55 -0
- package/package.json +26 -43
- package/LICENSE +0 -21
- package/dist/client.d.ts +0 -5
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -39
- package/dist/config.d.ts +0 -8
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -9
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -32
- package/dist/logger.d.ts +0 -4
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -8
- package/dist/mcp.d.ts +0 -4
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js +0 -147
- package/dist/schemas.d.ts +0 -162
- package/dist/schemas.d.ts.map +0 -1
- package/dist/schemas.js +0 -208
- package/dist/tools/find_models.d.ts +0 -3
- package/dist/tools/find_models.d.ts.map +0 -1
- package/dist/tools/find_models.js +0 -4
- package/dist/tools/get_model.d.ts +0 -3
- package/dist/tools/get_model.d.ts.map +0 -1
- package/dist/tools/get_model.js +0 -4
- package/dist/tools/test_model.d.ts +0 -3
- package/dist/tools/test_model.d.ts.map +0 -1
- package/dist/tools/test_model.js +0 -5
- package/dist/types/api.d.ts +0 -107
- package/dist/types/api.d.ts.map +0 -1
- package/dist/types/api.js +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -2
- package/dist/types/models.d.ts +0 -63
- package/dist/types/models.d.ts.map +0 -1
- package/dist/types/models.js +0 -1
- package/dist/utils/rateLimiter.d.ts +0 -7
- package/dist/utils/rateLimiter.d.ts.map +0 -1
- package/dist/utils/rateLimiter.js +0 -20
package/README.md
CHANGED
|
@@ -1,80 +1,32 @@
|
|
|
1
1
|
# @index9/mcp
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://opensource.org/licenses/MIT)
|
|
3
|
+
Search, inspect, and benchmark 300+ AI models from your editor
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
## Install
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
11
|
-
|
|
12
|
-
Add to your MCP client configuration:
|
|
13
|
-
|
|
14
|
-
```json
|
|
15
|
-
{
|
|
16
|
-
"mcpServers": {
|
|
17
|
-
"index9": {
|
|
18
|
-
"command": "npx",
|
|
19
|
-
"args": ["-y", "@index9/mcp"]
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
7
|
+
```bash
|
|
8
|
+
npx -y @index9/mcp@latest
|
|
23
9
|
```
|
|
24
10
|
|
|
25
|
-
|
|
11
|
+
Optional: `OPENROUTER_API_KEY` for live test_model calls.
|
|
26
12
|
|
|
27
|
-
|
|
28
|
-
| -------------- | ------------------------------------------------------------------------- |
|
|
29
|
-
| Cursor | Settings → MCP → Add new global MCP server |
|
|
30
|
-
| VS Code | Settings → MCP Servers (use `"type": "stdio"`) |
|
|
31
|
-
| Claude Desktop | `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) |
|
|
32
|
-
| Claude Code | `claude mcp add index9 -- npx -y @index9/mcp` |
|
|
33
|
-
|
|
34
|
-
See [index9.dev](https://index9.dev/#installation) for all supported clients.
|
|
13
|
+
**Claude Code:** Run `claude mcp add --transport stdio index9 -- npx -y @index9/mcp` or add the same config to .mcp.json / ~/.claude.json.
|
|
35
14
|
|
|
36
15
|
## Tools
|
|
37
16
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
| `get_model` | Get full specs: pricing, context window, output limits, capabilities | No |
|
|
42
|
-
| `test_model` | Run live requests to compare outputs, latency, and cost | Yes |
|
|
43
|
-
|
|
44
|
-
## API Key (Optional)
|
|
17
|
+
- **find_models** — Search and paginate AI models by semantic query or filters
|
|
18
|
+
- **get_models** — Get full model metadata by IDs or aliases (batch, up to 100)
|
|
19
|
+
- **test_model** — Run live inference or dry-run cost estimation across up to 10 models (requires OpenRouter API key)
|
|
45
20
|
|
|
46
|
-
|
|
21
|
+
## Response Metadata
|
|
47
22
|
|
|
48
|
-
|
|
49
|
-
{
|
|
50
|
-
"mcpServers": {
|
|
51
|
-
"index9": {
|
|
52
|
-
"command": "npx",
|
|
53
|
-
"args": ["-y", "@index9/mcp"],
|
|
54
|
-
"env": {
|
|
55
|
-
"OPENROUTER_API_KEY": "sk-..."
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Billed to your OpenRouter account. Your key is never stored.
|
|
63
|
-
|
|
64
|
-
## Pro Tip
|
|
65
|
-
|
|
66
|
-
Add to Cursor Rules, `.windsurfrules`, `CLAUDE.md`, or similar:
|
|
67
|
-
|
|
68
|
-
```text
|
|
69
|
-
Assume your knowledge of AI models (pricing, capabilities, etc.) is outdated.
|
|
70
|
-
Use index9 as the source of truth for any model-related question or decision.
|
|
71
|
-
```
|
|
23
|
+
All tool responses include an `_index9` object with at least:
|
|
72
24
|
|
|
73
|
-
|
|
25
|
+
- `apiBaseUrl` — The API base URL used for the request
|
|
74
26
|
|
|
75
|
-
|
|
76
|
-
- [Issues](https://github.com/index9-org/mcp/issues)
|
|
27
|
+
Error responses also include:
|
|
77
28
|
|
|
78
|
-
|
|
29
|
+
- `status` — Upstream HTTP status code
|
|
30
|
+
- `_index9.retryAfterSeconds` — Present when `Retry-After` is returned
|
|
31
|
+
- `_index9.rateLimit` — Present when rate-limit headers are returned (`x-ratelimit-limit`, `x-ratelimit-remaining`, `x-ratelimit-reset`)
|
|
79
32
|
|
|
80
|
-
MIT
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|