@tokenlabai/mcp-server 0.6.26 → 0.6.28

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 CHANGED
@@ -10,7 +10,7 @@ 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.26 generates 87 endpoint tools; with the two MCP-only composite discovery tools, the full profile returns 89 tools from `tools/list`.
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.28 generates 87 endpoint tools; with the two MCP-only composite discovery tools, the full profile returns 89 tools from `tools/list`.
14
14
 
15
15
  | Profile | Endpoint tools | Total registered tools | Model-facing schema | Coverage |
16
16
  | --- | ---: | ---: | --- | --- |
@@ -18,9 +18,9 @@ The checked-in `generated/tools.json` manifest is generated from TokenLab's publ
18
18
  | `core` (default) | 30 | 32 | Portable | Catalog and pricing; Chat Completions, Responses, Anthropic Messages, Gemini generateContent; System One typed decisions; images, video, music, 3D, speech and transcription; async tasks; files; embeddings, rerank, and translation |
19
19
  | `full` | 87 | 89 | 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
- The total registered count is the number returned by `tools/list`. All profiles include `compare_models` and `get_api_overview`, producing totals of 6, 32, and 89 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.
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, 32, and 89 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. `create_gemini_content` exposes the camelCase Gemini fields (`systemInstruction`, `generationConfig`, `safetySettings`, `toolConfig`, `cachedContent`) and hides their snake_case proto spellings, which the API accepts as aliases.
22
22
 
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.
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 115 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 and keep its function declarations within 90 KB.
24
24
 
25
25
  Set `TOKENLAB_MCP_TOOL_PROFILE=catalog` for the smallest public-only tool list or `TOKENLAB_MCP_TOOL_PROFILE=full` for the broad developer API. Set `TOKENLAB_MCP_SCHEMA_MODE=exact` only when a client needs the complete nested JSON Schema and can accept its larger/deeper tool payload. Use `strict` for providers that require every property to be listed in `required` and every object to set `additionalProperties: false`; complex top-level arguments are represented as JSON-encoded strings and decoded before canonical validation. Canonical tool names, descriptions, input JSON Schemas, HTTP bindings, content types, auth requirements, and task behavior can be inspected in [`generated/tools.json`](./generated/tools.json).
26
26
 
@@ -134,7 +134,7 @@ This repository includes `server.json` for the official MCP Registry.
134
134
 
135
135
  Release metadata:
136
136
 
137
- - npm package: `@tokenlabai/mcp-server@0.6.26`
137
+ - npm package: `@tokenlabai/mcp-server@0.6.28`
138
138
  - MCP registry name: `io.github.hedging8563/tokenlab`
139
139
  - `package.json.mcpName`: `io.github.hedging8563/tokenlab`
140
140
 
@@ -63,7 +63,8 @@
63
63
  "max_endpoint_tools": 87,
64
64
  "max_input_schema_bytes": 78000,
65
65
  "max_input_schema_depth": 8,
66
- "max_tools_list_bytes": 115000
66
+ "max_tools_list_bytes": 115000,
67
+ "max_gemini_declarations_bytes": 90000
67
68
  },
68
69
  "include_tags": [
69
70
  "Chat",
@@ -317,7 +318,12 @@
317
318
  "geminiGenerateContent": {
318
319
  "tool_name": "create_gemini_content",
319
320
  "omit_arguments": [
320
- "key"
321
+ "key",
322
+ "system_instruction",
323
+ "generation_config",
324
+ "safety_settings",
325
+ "tool_config",
326
+ "cached_content"
321
327
  ]
322
328
  },
323
329
  "createChatCompletion": {