@tokenlabai/mcp-server 0.6.15 → 0.6.18
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 +8 -8
- package/contract/openapi.json +935 -309
- package/generated/public-contract.json +6 -6
- package/generated/tools.json +547 -288
- package/package.json +2 -2
- package/scripts/generate-contract.mjs +9 -9
- package/src/index.js +62 -6
- package/src/tool-schema.js +19 -6
package/README.md
CHANGED
|
@@ -10,15 +10,15 @@ It exposes public catalog tools for agents that need to choose models, inspect s
|
|
|
10
10
|
|
|
11
11
|
## Generated Tool Profiles
|
|
12
12
|
|
|
13
|
-
The checked-in `generated/tools.json` manifest is generated from TokenLab's public OpenAPI document plus the small MCP-only overlay in `contract/mcp-overlay.json`. Version 0.6.
|
|
13
|
+
The checked-in `generated/tools.json` manifest is generated from TokenLab's public OpenAPI document plus the small MCP-only overlay in `contract/mcp-overlay.json`. Version 0.6.18 generates 78 endpoint tools; with the two MCP-only composite discovery tools, the full profile returns 80 tools from `tools/list`.
|
|
14
14
|
|
|
15
|
-
| Profile | Endpoint tools | Model-facing schema | Coverage |
|
|
16
|
-
| --- | ---: | --- | --- |
|
|
17
|
-
| `catalog` | 4 | Exact | Public model discovery and pricing only; no API key required |
|
|
18
|
-
| `core` (default) | 29 | Portable | Catalog and pricing; Chat Completions, Responses, Anthropic Messages, Gemini generateContent; images, video, music, 3D, speech and transcription; async tasks; files; embeddings, rerank, and translation |
|
|
19
|
-
| `full` | 78 | Portable | Every allowlisted developer API operation in the checked-in OpenAPI snapshot, including core plus response lifecycle, batches, worlds, and native model discovery |
|
|
15
|
+
| Profile | Endpoint tools | Total registered tools | Model-facing schema | Coverage |
|
|
16
|
+
| --- | ---: | ---: | --- | --- |
|
|
17
|
+
| `catalog` | 4 | 6 | Exact | Public model discovery and pricing only; no API key required |
|
|
18
|
+
| `core` (default) | 29 | 31 | Portable | Catalog and pricing; Chat Completions, Responses, Anthropic Messages, Gemini generateContent; images, video, music, 3D, speech and transcription; async tasks; files; embeddings, rerank, and translation |
|
|
19
|
+
| `full` | 78 | 80 | Portable | Every allowlisted developer API operation in the checked-in OpenAPI snapshot, including core plus response lifecycle, batches, worlds, and native model discovery |
|
|
20
20
|
|
|
21
|
-
All profiles
|
|
21
|
+
The total registered count is the number returned by `tools/list`. All profiles include `compare_models` and `get_api_overview`, producing totals of 6, 31, and 80 tools. Realtime and streaming-only operations are excluded because stdio MCP tool calls return one final result. API operations that accept `stream` fix it internally to `false` without exposing a boolean `const` to provider adapters, and the Gemini query-string API key is intentionally hidden from tool arguments.
|
|
22
22
|
|
|
23
23
|
The portable projection keeps every top-level argument but bounds deeply nested model-facing shapes. The server still validates calls against the complete generated OpenAPI schema before issuing an API request. Compatibility budgets keep `core` at no more than 60 KB and depth 8, and `full` at no more than 100 KB and depth 8 for the complete `tools/list` response. Tests also run the full profile through the Google AI SDK version used by the observed OpenCode/Gemini failure.
|
|
24
24
|
|
|
@@ -133,7 +133,7 @@ This repository includes `server.json` for the official MCP Registry.
|
|
|
133
133
|
|
|
134
134
|
Release metadata:
|
|
135
135
|
|
|
136
|
-
- npm package: `@tokenlabai/mcp-server@0.6.
|
|
136
|
+
- npm package: `@tokenlabai/mcp-server@0.6.18`
|
|
137
137
|
- MCP registry name: `io.github.hedging8563/tokenlab`
|
|
138
138
|
- `package.json.mcpName`: `io.github.hedging8563/tokenlab`
|
|
139
139
|
|