@tokenlabai/mcp-server 0.4.2 → 0.6.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 +24 -9
- package/contract/mcp-overlay.json +124 -0
- package/contract/openapi.json +379 -186
- package/generated/public-contract.json +324 -0
- package/generated/tools.json +237 -9
- package/llms-install.md +3 -1
- package/package.json +4 -3
- package/scripts/generate-contract.mjs +141 -17
- package/src/index.js +180 -31
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"generated_at": null,
|
|
4
|
+
"asset": {
|
|
5
|
+
"id": "tokenlab-mcp-server",
|
|
6
|
+
"name": "@tokenlabai/mcp-server",
|
|
7
|
+
"title": "TokenLab MCP Server",
|
|
8
|
+
"version": "0.6.0",
|
|
9
|
+
"registry_name": "io.github.hedging8563/tokenlab",
|
|
10
|
+
"source_url": "https://github.com/hedging8563/tokenlab-mcp-server",
|
|
11
|
+
"landing_url": "https://tokenlab.sh/mcp",
|
|
12
|
+
"docs_url": "https://docs.tokenlab.sh/integrations/tokenlab-mcp-server",
|
|
13
|
+
"recommended_client_name": "tokenlab",
|
|
14
|
+
"transport": "stdio",
|
|
15
|
+
"command": "npx",
|
|
16
|
+
"args": [
|
|
17
|
+
"-y",
|
|
18
|
+
"@tokenlabai/mcp-server"
|
|
19
|
+
],
|
|
20
|
+
"api_key_environment_variable": "TOKENLAB_API_KEY",
|
|
21
|
+
"tool_profile_environment_variable": "TOKENLAB_MCP_TOOL_PROFILE"
|
|
22
|
+
},
|
|
23
|
+
"source": {
|
|
24
|
+
"url": "https://docs.tokenlab.sh/openapi.json",
|
|
25
|
+
"openapi": "3.0.3",
|
|
26
|
+
"title": "TokenLab AI Gateway",
|
|
27
|
+
"version": "1.0.0",
|
|
28
|
+
"sha256": "586c32a9e47c4557977b92d73183518e986e70666f6530e2718ef5b7293a1706",
|
|
29
|
+
"tool_manifest_sha256": "e38134c2fa2489313f79dbefae73808ff8222d7009f1eb81c0c958f09d2c8677"
|
|
30
|
+
},
|
|
31
|
+
"profiles": {
|
|
32
|
+
"catalog": {
|
|
33
|
+
"is_default": false,
|
|
34
|
+
"endpoint_tools": 4,
|
|
35
|
+
"composite_tools": 2,
|
|
36
|
+
"total_tools": 6,
|
|
37
|
+
"tool_names": [
|
|
38
|
+
"compare_models",
|
|
39
|
+
"get_api_overview",
|
|
40
|
+
"get_model",
|
|
41
|
+
"get_model_pricing",
|
|
42
|
+
"get_pricing",
|
|
43
|
+
"list_models"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"core": {
|
|
47
|
+
"is_default": true,
|
|
48
|
+
"endpoint_tools": 29,
|
|
49
|
+
"composite_tools": 2,
|
|
50
|
+
"total_tools": 31,
|
|
51
|
+
"tool_names": [
|
|
52
|
+
"cancel_task",
|
|
53
|
+
"compare_models",
|
|
54
|
+
"create_3d_model",
|
|
55
|
+
"create_anthropic_message",
|
|
56
|
+
"create_chat_completion",
|
|
57
|
+
"create_embedding",
|
|
58
|
+
"create_gemini_content",
|
|
59
|
+
"create_image",
|
|
60
|
+
"create_image_file",
|
|
61
|
+
"create_multimodal_embedding",
|
|
62
|
+
"create_music",
|
|
63
|
+
"create_response",
|
|
64
|
+
"create_speech",
|
|
65
|
+
"create_video",
|
|
66
|
+
"delete_file",
|
|
67
|
+
"edit_image",
|
|
68
|
+
"edit_image_file",
|
|
69
|
+
"get_api_overview",
|
|
70
|
+
"get_model",
|
|
71
|
+
"get_model_pricing",
|
|
72
|
+
"get_pricing",
|
|
73
|
+
"get_task_status",
|
|
74
|
+
"list_files",
|
|
75
|
+
"list_models",
|
|
76
|
+
"rerank_documents",
|
|
77
|
+
"retrieve_file",
|
|
78
|
+
"retrieve_file_content",
|
|
79
|
+
"transcribe_audio",
|
|
80
|
+
"translate_audio",
|
|
81
|
+
"translate_text",
|
|
82
|
+
"upload_file"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"full": {
|
|
86
|
+
"is_default": false,
|
|
87
|
+
"endpoint_tools": 76,
|
|
88
|
+
"composite_tools": 2,
|
|
89
|
+
"total_tools": 78,
|
|
90
|
+
"tool_names": [
|
|
91
|
+
"bind_seedance_visual_validation_result",
|
|
92
|
+
"cancel_anthropic_message_batch",
|
|
93
|
+
"cancel_batch",
|
|
94
|
+
"cancel_task",
|
|
95
|
+
"compact_response",
|
|
96
|
+
"compare_models",
|
|
97
|
+
"count_anthropic_message_tokens",
|
|
98
|
+
"create_3d_model",
|
|
99
|
+
"create_anthropic_message",
|
|
100
|
+
"create_anthropic_message_batch",
|
|
101
|
+
"create_batch",
|
|
102
|
+
"create_chat_completion",
|
|
103
|
+
"create_embedding",
|
|
104
|
+
"create_gemini_content",
|
|
105
|
+
"create_image",
|
|
106
|
+
"create_image_file",
|
|
107
|
+
"create_image_variation",
|
|
108
|
+
"create_multimodal_embedding",
|
|
109
|
+
"create_music",
|
|
110
|
+
"create_response",
|
|
111
|
+
"create_seedance_material_asset",
|
|
112
|
+
"create_seedance_material_asset_group",
|
|
113
|
+
"create_seedance_visual_validation_session",
|
|
114
|
+
"create_speech",
|
|
115
|
+
"create_video",
|
|
116
|
+
"create_volc_compatible_seedance_task",
|
|
117
|
+
"create_world",
|
|
118
|
+
"delete_anthropic_message_batch",
|
|
119
|
+
"delete_file",
|
|
120
|
+
"delete_response",
|
|
121
|
+
"delete_seedance_material_asset",
|
|
122
|
+
"delete_seedance_material_asset_group",
|
|
123
|
+
"delete_volc_compatible_seedance_task",
|
|
124
|
+
"delete_world",
|
|
125
|
+
"dispatch_volc_compatible_seedance_action_get",
|
|
126
|
+
"dispatch_volc_compatible_seedance_action_post",
|
|
127
|
+
"edit_image",
|
|
128
|
+
"edit_image_file",
|
|
129
|
+
"get_3_dtask",
|
|
130
|
+
"get_api_overview",
|
|
131
|
+
"get_gemini_model",
|
|
132
|
+
"get_image_task_status_alias",
|
|
133
|
+
"get_model",
|
|
134
|
+
"get_model_pricing",
|
|
135
|
+
"get_music_task",
|
|
136
|
+
"get_pricing",
|
|
137
|
+
"get_seedance_material_asset",
|
|
138
|
+
"get_seedance_material_asset_group",
|
|
139
|
+
"get_task_status",
|
|
140
|
+
"get_video_task",
|
|
141
|
+
"get_volc_compatible_seedance_task",
|
|
142
|
+
"get_world",
|
|
143
|
+
"get_world_media_asset",
|
|
144
|
+
"get_world_status",
|
|
145
|
+
"list_anthropic_message_batches",
|
|
146
|
+
"list_batches",
|
|
147
|
+
"list_files",
|
|
148
|
+
"list_gemini_models",
|
|
149
|
+
"list_models",
|
|
150
|
+
"list_seedance_material_asset_groups",
|
|
151
|
+
"list_seedance_material_assets",
|
|
152
|
+
"list_seedance_visual_validation_history",
|
|
153
|
+
"list_volc_compatible_seedance_tasks",
|
|
154
|
+
"list_worlds",
|
|
155
|
+
"prepare_world_media_asset_upload",
|
|
156
|
+
"rerank_documents",
|
|
157
|
+
"retrieve_anthropic_message_batch",
|
|
158
|
+
"retrieve_anthropic_message_batch_results",
|
|
159
|
+
"retrieve_batch",
|
|
160
|
+
"retrieve_file",
|
|
161
|
+
"retrieve_file_content",
|
|
162
|
+
"retrieve_response",
|
|
163
|
+
"transcribe_audio",
|
|
164
|
+
"translate_audio",
|
|
165
|
+
"translate_text",
|
|
166
|
+
"update_seedance_material_asset",
|
|
167
|
+
"update_seedance_material_asset_group",
|
|
168
|
+
"upload_file"
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"core_tool_layers": [
|
|
173
|
+
{
|
|
174
|
+
"id": "discover",
|
|
175
|
+
"authentication": "none",
|
|
176
|
+
"tool_rows": [
|
|
177
|
+
[
|
|
178
|
+
"list_models",
|
|
179
|
+
"get_model",
|
|
180
|
+
"get_pricing"
|
|
181
|
+
],
|
|
182
|
+
[
|
|
183
|
+
"get_model_pricing",
|
|
184
|
+
"compare_models",
|
|
185
|
+
"get_api_overview"
|
|
186
|
+
]
|
|
187
|
+
],
|
|
188
|
+
"tool_count": 6
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"id": "create",
|
|
192
|
+
"authentication": "api_key",
|
|
193
|
+
"tool_rows": [
|
|
194
|
+
[
|
|
195
|
+
"create_chat_completion",
|
|
196
|
+
"create_response",
|
|
197
|
+
"create_anthropic_message",
|
|
198
|
+
"create_gemini_content"
|
|
199
|
+
],
|
|
200
|
+
[
|
|
201
|
+
"create_image",
|
|
202
|
+
"create_image_file",
|
|
203
|
+
"edit_image",
|
|
204
|
+
"edit_image_file"
|
|
205
|
+
],
|
|
206
|
+
[
|
|
207
|
+
"create_video",
|
|
208
|
+
"create_music",
|
|
209
|
+
"create_3d_model",
|
|
210
|
+
"create_speech",
|
|
211
|
+
"transcribe_audio",
|
|
212
|
+
"translate_audio"
|
|
213
|
+
]
|
|
214
|
+
],
|
|
215
|
+
"tool_count": 14
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"id": "operate",
|
|
219
|
+
"authentication": "api_key",
|
|
220
|
+
"tool_rows": [
|
|
221
|
+
[
|
|
222
|
+
"upload_file",
|
|
223
|
+
"list_files",
|
|
224
|
+
"retrieve_file"
|
|
225
|
+
],
|
|
226
|
+
[
|
|
227
|
+
"retrieve_file_content",
|
|
228
|
+
"delete_file",
|
|
229
|
+
"get_task_status",
|
|
230
|
+
"cancel_task"
|
|
231
|
+
],
|
|
232
|
+
[
|
|
233
|
+
"create_embedding",
|
|
234
|
+
"create_multimodal_embedding",
|
|
235
|
+
"rerank_documents",
|
|
236
|
+
"translate_text"
|
|
237
|
+
]
|
|
238
|
+
],
|
|
239
|
+
"tool_count": 11
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"features": {
|
|
243
|
+
"structured_content": true,
|
|
244
|
+
"tool_annotations": true,
|
|
245
|
+
"composite_tools": [
|
|
246
|
+
{
|
|
247
|
+
"name": "compare_models",
|
|
248
|
+
"profiles": [
|
|
249
|
+
"catalog",
|
|
250
|
+
"core",
|
|
251
|
+
"full"
|
|
252
|
+
],
|
|
253
|
+
"auth": "optional",
|
|
254
|
+
"annotations": {
|
|
255
|
+
"readOnlyHint": true,
|
|
256
|
+
"destructiveHint": false,
|
|
257
|
+
"idempotentHint": true,
|
|
258
|
+
"openWorldHint": true
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "get_api_overview",
|
|
263
|
+
"profiles": [
|
|
264
|
+
"catalog",
|
|
265
|
+
"core",
|
|
266
|
+
"full"
|
|
267
|
+
],
|
|
268
|
+
"auth": "optional",
|
|
269
|
+
"annotations": {
|
|
270
|
+
"readOnlyHint": true,
|
|
271
|
+
"destructiveHint": false,
|
|
272
|
+
"idempotentHint": true,
|
|
273
|
+
"openWorldHint": true
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"async_delivery_tools": [
|
|
278
|
+
"cancel_task",
|
|
279
|
+
"create_3d_model",
|
|
280
|
+
"create_image",
|
|
281
|
+
"create_image_file",
|
|
282
|
+
"create_music",
|
|
283
|
+
"create_video",
|
|
284
|
+
"create_world",
|
|
285
|
+
"edit_image",
|
|
286
|
+
"edit_image_file",
|
|
287
|
+
"get_task_status",
|
|
288
|
+
"get_world_status"
|
|
289
|
+
],
|
|
290
|
+
"resources": [
|
|
291
|
+
{
|
|
292
|
+
"name": "tokenlab-api-overview",
|
|
293
|
+
"title": "TokenLab API Overview",
|
|
294
|
+
"uri": "tokenlab://api/overview",
|
|
295
|
+
"mime_type": "text/plain",
|
|
296
|
+
"freshness": "live"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "tokenlab-openapi-contract",
|
|
300
|
+
"title": "TokenLab OpenAPI Contract",
|
|
301
|
+
"uri": "tokenlab://contract/openapi",
|
|
302
|
+
"mime_type": "application/json",
|
|
303
|
+
"freshness": "package_snapshot"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "tokenlab-mcp-public-contract",
|
|
307
|
+
"title": "TokenLab MCP Public Contract",
|
|
308
|
+
"uri": "tokenlab://contract/mcp",
|
|
309
|
+
"mime_type": "application/json",
|
|
310
|
+
"freshness": "package_snapshot"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"prompts": [
|
|
314
|
+
{
|
|
315
|
+
"name": "choose_tokenlab_model",
|
|
316
|
+
"title": "Choose a TokenLab Model"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "build_tokenlab_request",
|
|
320
|
+
"title": "Build a TokenLab Request"
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
}
|