@apteva/integrations 0.15.11 → 0.15.12

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.
@@ -1,109 +1,363 @@
1
1
  {
2
2
  "slug": "replicate",
3
3
  "name": "Replicate",
4
- "description": "MCP server for Replicate AI model hosting - predictions, models",
4
+ "description": "Replicate API for running image, video, audio, and ML models via predictions, official-model predictions, deployments, trainings, model discovery, hardware discovery, account inspection, and webhook signing secrets.",
5
5
  "logo": "https://www.google.com/s2/favicons?domain=replicate.com&sz=128",
6
- "categories": [
7
- "ai",
8
- "ml",
9
- "models",
10
- "inference"
11
- ],
6
+ "categories": ["ai", "ml", "models", "inference", "image-generation", "video-generation", "replicate"],
12
7
  "base_url": "https://api.replicate.com/v1",
13
8
  "auth": {
14
- "types": [
15
- "bearer"
16
- ],
9
+ "types": ["bearer"],
17
10
  "headers": {
18
- "Authorization": "Token {{token}}"
11
+ "Authorization": "Bearer {{token}}",
12
+ "Content-Type": "application/json"
19
13
  },
20
14
  "credential_fields": [
21
15
  {
22
- "name": "apiToken",
23
- "label": "Api Token",
24
- "description": "Your Replicate API Token"
16
+ "name": "token",
17
+ "label": "API Token",
18
+ "type": "password",
19
+ "description": "Replicate API token from https://replicate.com/account/api-tokens."
25
20
  }
26
21
  ]
27
22
  },
23
+ "health_check": {
24
+ "tool": "get_account"
25
+ },
28
26
  "tools": [
29
27
  {
30
- "name": "predict",
31
- "description": "Run a model prediction",
28
+ "name": "search",
29
+ "description": "Search public Replicate models, collections, and docs. Use this to discover image/video model IDs before creating predictions.",
32
30
  "method": "GET",
33
- "path": "/predict",
31
+ "path": "/search",
32
+ "input_schema": {
33
+ "type": "object",
34
+ "properties": {
35
+ "query": { "type": "string", "description": "Search query, e.g. 'flux image generation' or 'video upscaler'." },
36
+ "limit": { "type": "integer", "description": "Maximum results, 1-50." }
37
+ },
38
+ "required": ["query"]
39
+ }
40
+ },
41
+ {
42
+ "name": "create_prediction",
43
+ "description": "Create a prediction for a community model version or official model identifier. Pass version plus the model input object directly. For model-specific fields, first call get_model_version and inspect openapi_schema.",
44
+ "method": "POST",
45
+ "path": "/predictions",
34
46
  "input_schema": {
35
47
  "type": "object",
36
48
  "properties": {
37
- "model": {
38
- "type": "string",
39
- "description": "Model in owner/name format"
40
- },
41
- "version": {
42
- "type": "string"
43
- },
44
- "input": {
45
- "type": "object"
46
- }
49
+ "version": { "type": "string", "description": "Model identifier or version. Official models may use owner/model; community models normally need owner/model:version_id or a 64-character version id." },
50
+ "input": { "type": "object", "description": "Model input object. Example: {\"prompt\":\"A cinematic product photo\"}. The exact schema is model-specific." },
51
+ "webhook": { "type": "string", "description": "Optional HTTPS webhook URL for prediction updates." },
52
+ "webhook_events_filter": { "type": "array", "description": "Webhook event filter.", "items": { "type": "string", "enum": ["start", "output", "logs", "completed"] } },
53
+ "stream": { "type": "boolean", "description": "Deprecated by Replicate but still accepted by older models." }
47
54
  },
48
- "required": [
49
- "model",
50
- "input"
51
- ]
55
+ "required": ["version", "input"]
52
56
  }
53
57
  },
54
58
  {
55
59
  "name": "get_prediction",
56
- "description": "Get prediction status and results",
60
+ "description": "Get prediction status, logs, output URLs, errors, and metrics.",
57
61
  "method": "GET",
58
- "path": "/get-prediction",
62
+ "path": "/predictions/{prediction_id}",
63
+ "input_schema": { "type": "object", "properties": { "prediction_id": { "type": "string" } }, "required": ["prediction_id"] }
64
+ },
65
+ {
66
+ "name": "list_predictions",
67
+ "description": "List predictions for the authenticated user or organization.",
68
+ "method": "GET",
69
+ "path": "/predictions",
70
+ "input_schema": { "type": "object", "properties": { "cursor": { "type": "string" } } }
71
+ },
72
+ {
73
+ "name": "cancel_prediction",
74
+ "description": "Cancel a running prediction.",
75
+ "method": "POST",
76
+ "path": "/predictions/{prediction_id}/cancel",
77
+ "input_schema": { "type": "object", "properties": { "prediction_id": { "type": "string" } }, "required": ["prediction_id"] }
78
+ },
79
+ {
80
+ "name": "list_models",
81
+ "description": "List public Replicate models.",
82
+ "method": "GET",
83
+ "path": "/models",
84
+ "input_schema": { "type": "object", "properties": { "cursor": { "type": "string" } } }
85
+ },
86
+ {
87
+ "name": "get_model",
88
+ "description": "Get one model by owner/name, including latest version metadata where available.",
89
+ "method": "GET",
90
+ "path": "/models/{owner}/{name}",
91
+ "input_schema": { "type": "object", "properties": { "owner": { "type": "string" }, "name": { "type": "string" } }, "required": ["owner", "name"] }
92
+ },
93
+ {
94
+ "name": "create_model",
95
+ "description": "Create a private or public Replicate model container.",
96
+ "method": "POST",
97
+ "path": "/models",
59
98
  "input_schema": {
60
99
  "type": "object",
61
100
  "properties": {
62
- "prediction_id": {
63
- "type": "string"
64
- }
101
+ "owner": { "type": "string", "description": "User or organization that will own the model." },
102
+ "name": { "type": "string", "description": "Unique model name." },
103
+ "visibility": { "type": "string", "enum": ["public", "private"] },
104
+ "hardware": { "type": "string", "description": "Hardware SKU from list_hardware." },
105
+ "description": { "type": "string" },
106
+ "github_url": { "type": "string" },
107
+ "paper_url": { "type": "string" },
108
+ "license_url": { "type": "string" },
109
+ "cover_image_url": { "type": "string" }
65
110
  },
66
- "required": [
67
- "prediction_id"
68
- ]
111
+ "required": ["owner", "name", "visibility", "hardware"]
69
112
  }
70
113
  },
71
114
  {
72
- "name": "cancel_prediction",
73
- "description": "Cancel a running prediction",
115
+ "name": "update_model",
116
+ "description": "Update Replicate model metadata.",
117
+ "method": "PATCH",
118
+ "path": "/models/{owner}/{name}",
119
+ "input_schema": {
120
+ "type": "object",
121
+ "properties": {
122
+ "owner": { "type": "string" },
123
+ "name": { "type": "string" },
124
+ "description": { "type": "string" },
125
+ "readme": { "type": "string" },
126
+ "github_url": { "type": "string" },
127
+ "paper_url": { "type": "string" },
128
+ "weights_url": { "type": "string" },
129
+ "license_url": { "type": "string" }
130
+ },
131
+ "required": ["owner", "name"]
132
+ }
133
+ },
134
+ {
135
+ "name": "delete_model",
136
+ "description": "Delete a Replicate model.",
137
+ "method": "DELETE",
138
+ "path": "/models/{owner}/{name}",
139
+ "input_schema": { "type": "object", "properties": { "owner": { "type": "string" }, "name": { "type": "string" } }, "required": ["owner", "name"] }
140
+ },
141
+ {
142
+ "name": "search_models",
143
+ "description": "Search public Replicate models.",
144
+ "method": "GET",
145
+ "path": "/models/search",
146
+ "input_schema": { "type": "object", "properties": { "query": { "type": "string" }, "cursor": { "type": "string" } }, "required": ["query"] }
147
+ },
148
+ {
149
+ "name": "list_model_examples",
150
+ "description": "List examples for a model.",
74
151
  "method": "GET",
75
- "path": "/cancel-prediction",
152
+ "path": "/models/{owner}/{name}/examples",
153
+ "input_schema": { "type": "object", "properties": { "owner": { "type": "string" }, "name": { "type": "string" } }, "required": ["owner", "name"] }
154
+ },
155
+ {
156
+ "name": "create_model_prediction",
157
+ "description": "Create a prediction using an official model route. Pass input plus optional webhook fields.",
158
+ "method": "POST",
159
+ "path": "/models/{owner}/{name}/predictions",
76
160
  "input_schema": {
77
161
  "type": "object",
78
162
  "properties": {
79
- "prediction_id": {
80
- "type": "string"
81
- }
163
+ "owner": { "type": "string" },
164
+ "name": { "type": "string" },
165
+ "input": { "type": "object", "description": "Model-specific input object." },
166
+ "webhook": { "type": "string" },
167
+ "webhook_events_filter": { "type": "array", "items": { "type": "string", "enum": ["start", "output", "logs", "completed"] } },
168
+ "stream": { "type": "boolean" }
82
169
  },
83
- "required": [
84
- "prediction_id"
85
- ]
170
+ "required": ["owner", "name", "input"]
86
171
  }
87
172
  },
88
173
  {
89
- "name": "list_models",
90
- "description": "List available models",
174
+ "name": "get_model_readme",
175
+ "description": "Get a model README.",
91
176
  "method": "GET",
92
- "path": "/list-models",
177
+ "path": "/models/{owner}/{name}/readme",
178
+ "input_schema": { "type": "object", "properties": { "owner": { "type": "string" }, "name": { "type": "string" } }, "required": ["owner", "name"] }
179
+ },
180
+ {
181
+ "name": "list_model_versions",
182
+ "description": "List versions for a model.",
183
+ "method": "GET",
184
+ "path": "/models/{owner}/{name}/versions",
185
+ "input_schema": { "type": "object", "properties": { "owner": { "type": "string" }, "name": { "type": "string" } }, "required": ["owner", "name"] }
186
+ },
187
+ {
188
+ "name": "get_model_version",
189
+ "description": "Get a specific model version including input OpenAPI schema.",
190
+ "method": "GET",
191
+ "path": "/models/{owner}/{name}/versions/{version_id}",
192
+ "input_schema": { "type": "object", "properties": { "owner": { "type": "string" }, "name": { "type": "string" }, "version_id": { "type": "string" } }, "required": ["owner", "name", "version_id"] }
193
+ },
194
+ {
195
+ "name": "delete_model_version",
196
+ "description": "Delete a model version.",
197
+ "method": "DELETE",
198
+ "path": "/models/{owner}/{name}/versions/{version_id}",
199
+ "input_schema": { "type": "object", "properties": { "owner": { "type": "string" }, "name": { "type": "string" }, "version_id": { "type": "string" } }, "required": ["owner", "name", "version_id"] }
200
+ },
201
+ {
202
+ "name": "list_collections",
203
+ "description": "List model collections.",
204
+ "method": "GET",
205
+ "path": "/collections",
206
+ "input_schema": { "type": "object", "properties": { "cursor": { "type": "string" } } }
207
+ },
208
+ {
209
+ "name": "get_collection",
210
+ "description": "Get one model collection.",
211
+ "method": "GET",
212
+ "path": "/collections/{collection_slug}",
213
+ "input_schema": { "type": "object", "properties": { "collection_slug": { "type": "string" } }, "required": ["collection_slug"] }
214
+ },
215
+ {
216
+ "name": "list_deployments",
217
+ "description": "List private Replicate deployments.",
218
+ "method": "GET",
219
+ "path": "/deployments",
220
+ "input_schema": { "type": "object", "properties": { "cursor": { "type": "string" } } }
221
+ },
222
+ {
223
+ "name": "create_deployment",
224
+ "description": "Create a private deployment for a model version.",
225
+ "method": "POST",
226
+ "path": "/deployments",
93
227
  "input_schema": {
94
228
  "type": "object",
95
229
  "properties": {
96
- "owner": {
97
- "type": "string"
98
- },
99
- "cursor": {
100
- "type": "string"
101
- }
102
- }
230
+ "owner": { "type": "string", "description": "Deployment owner." },
231
+ "name": { "type": "string", "description": "Deployment name." },
232
+ "model": { "type": "string", "description": "Full model name, e.g. stability-ai/sdxl." },
233
+ "version": { "type": "string", "description": "Model version id to deploy." },
234
+ "hardware": { "type": "string", "description": "Hardware SKU from list_hardware." },
235
+ "min_instances": { "type": "integer" },
236
+ "max_instances": { "type": "integer" }
237
+ },
238
+ "required": ["owner", "name", "model", "version", "hardware", "min_instances", "max_instances"]
103
239
  }
240
+ },
241
+ {
242
+ "name": "get_deployment",
243
+ "description": "Get a deployment by owner/name.",
244
+ "method": "GET",
245
+ "path": "/deployments/{owner}/{name}",
246
+ "input_schema": { "type": "object", "properties": { "owner": { "type": "string" }, "name": { "type": "string" } }, "required": ["owner", "name"] }
247
+ },
248
+ {
249
+ "name": "update_deployment",
250
+ "description": "Update a deployment.",
251
+ "method": "PATCH",
252
+ "path": "/deployments/{owner}/{name}",
253
+ "input_schema": {
254
+ "type": "object",
255
+ "properties": {
256
+ "owner": { "type": "string" },
257
+ "name": { "type": "string" },
258
+ "version": { "type": "string" },
259
+ "hardware": { "type": "string" },
260
+ "min_instances": { "type": "integer" },
261
+ "max_instances": { "type": "integer" }
262
+ },
263
+ "required": ["owner", "name"]
264
+ }
265
+ },
266
+ {
267
+ "name": "delete_deployment",
268
+ "description": "Delete a deployment.",
269
+ "method": "DELETE",
270
+ "path": "/deployments/{owner}/{name}",
271
+ "input_schema": { "type": "object", "properties": { "owner": { "type": "string" }, "name": { "type": "string" } }, "required": ["owner", "name"] }
272
+ },
273
+ {
274
+ "name": "create_deployment_prediction",
275
+ "description": "Create a prediction using a private deployment.",
276
+ "method": "POST",
277
+ "path": "/deployments/{owner}/{name}/predictions",
278
+ "input_schema": {
279
+ "type": "object",
280
+ "properties": {
281
+ "owner": { "type": "string" },
282
+ "name": { "type": "string" },
283
+ "input": { "type": "object", "description": "Deployment input object." },
284
+ "webhook": { "type": "string" },
285
+ "webhook_events_filter": { "type": "array", "items": { "type": "string", "enum": ["start", "output", "logs", "completed"] } },
286
+ "stream": { "type": "boolean" }
287
+ },
288
+ "required": ["owner", "name", "input"]
289
+ }
290
+ },
291
+ {
292
+ "name": "create_training",
293
+ "description": "Create a model training job.",
294
+ "method": "POST",
295
+ "path": "/trainings",
296
+ "input_schema": {
297
+ "type": "object",
298
+ "properties": {
299
+ "version": { "type": "string", "description": "Model version used as the trainer." },
300
+ "destination": { "type": "string", "description": "Destination model in owner/name format." },
301
+ "input": { "type": "object", "description": "Training input object. The exact schema is trainer-specific." },
302
+ "webhook": { "type": "string" },
303
+ "webhook_events_filter": { "type": "array", "items": { "type": "string", "enum": ["start", "output", "logs", "completed"] } }
304
+ },
305
+ "required": ["version", "destination", "input"]
306
+ }
307
+ },
308
+ {
309
+ "name": "get_training",
310
+ "description": "Get a training job.",
311
+ "method": "GET",
312
+ "path": "/trainings/{training_id}",
313
+ "input_schema": { "type": "object", "properties": { "training_id": { "type": "string" } }, "required": ["training_id"] }
314
+ },
315
+ {
316
+ "name": "list_trainings",
317
+ "description": "List training jobs.",
318
+ "method": "GET",
319
+ "path": "/trainings",
320
+ "input_schema": { "type": "object", "properties": { "cursor": { "type": "string" } } }
321
+ },
322
+ {
323
+ "name": "cancel_training",
324
+ "description": "Cancel a running training job.",
325
+ "method": "POST",
326
+ "path": "/trainings/{training_id}/cancel",
327
+ "input_schema": { "type": "object", "properties": { "training_id": { "type": "string" } }, "required": ["training_id"] }
328
+ },
329
+ {
330
+ "name": "list_hardware",
331
+ "description": "List available hardware options for models and deployments.",
332
+ "method": "GET",
333
+ "path": "/hardware",
334
+ "input_schema": { "type": "object", "properties": {} }
335
+ },
336
+ {
337
+ "name": "get_account",
338
+ "description": "Get the authenticated Replicate account.",
339
+ "method": "GET",
340
+ "path": "/account",
341
+ "input_schema": { "type": "object", "properties": {} }
342
+ },
343
+ {
344
+ "name": "get_default_webhook_secret",
345
+ "description": "Get the signing secret for Replicate's default webhook.",
346
+ "method": "GET",
347
+ "path": "/webhooks/default/secret",
348
+ "input_schema": { "type": "object", "properties": {} }
104
349
  }
105
350
  ],
106
- "health_check": {
107
- "tool": "list_models"
351
+ "webhooks": {
352
+ "signature_header": "webhook-signature",
353
+ "registration": {
354
+ "manual_setup": "Replicate webhooks are registered per prediction/training request by passing webhook and webhook_events_filter in the create payload."
355
+ },
356
+ "events": [
357
+ { "name": "start", "description": "Prediction started." },
358
+ { "name": "output", "description": "Prediction produced incremental output." },
359
+ { "name": "logs", "description": "Prediction produced logs." },
360
+ { "name": "completed", "description": "Prediction reached succeeded, failed, or canceled." }
361
+ ]
108
362
  }
109
- }
363
+ }