@smithery/api 0.1.0-alpha.8 → 0.1.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +5 -5
  3. package/client.d.mts +6 -1
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -1
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +22 -0
  12. package/core/pagination.d.mts.map +1 -1
  13. package/core/pagination.d.ts +22 -0
  14. package/core/pagination.d.ts.map +1 -1
  15. package/core/pagination.js +23 -1
  16. package/core/pagination.js.map +1 -1
  17. package/core/pagination.mjs +21 -0
  18. package/core/pagination.mjs.map +1 -1
  19. package/package.json +1 -1
  20. package/resources/index.d.mts +1 -0
  21. package/resources/index.d.mts.map +1 -1
  22. package/resources/index.d.ts +1 -0
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js +3 -1
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs +1 -0
  27. package/resources/index.mjs.map +1 -1
  28. package/resources/search.d.mts +4 -0
  29. package/resources/search.d.mts.map +1 -0
  30. package/resources/search.d.ts +4 -0
  31. package/resources/search.d.ts.map +1 -0
  32. package/resources/search.js +9 -0
  33. package/resources/search.js.map +1 -0
  34. package/resources/search.mjs +5 -0
  35. package/resources/search.mjs.map +1 -0
  36. package/resources/servers/deployments.d.mts +165 -288
  37. package/resources/servers/deployments.d.mts.map +1 -1
  38. package/resources/servers/deployments.d.ts +165 -288
  39. package/resources/servers/deployments.d.ts.map +1 -1
  40. package/resources/servers/index.d.mts +1 -1
  41. package/resources/servers/index.d.mts.map +1 -1
  42. package/resources/servers/index.d.ts +1 -1
  43. package/resources/servers/index.d.ts.map +1 -1
  44. package/resources/servers/index.js.map +1 -1
  45. package/resources/servers/index.mjs.map +1 -1
  46. package/resources/servers/servers.d.mts +9 -3
  47. package/resources/servers/servers.d.mts.map +1 -1
  48. package/resources/servers/servers.d.ts +9 -3
  49. package/resources/servers/servers.d.ts.map +1 -1
  50. package/resources/servers/servers.js +1 -1
  51. package/resources/servers/servers.js.map +1 -1
  52. package/resources/servers/servers.mjs +1 -1
  53. package/resources/servers/servers.mjs.map +1 -1
  54. package/src/client.ts +15 -1
  55. package/src/core/pagination.ts +57 -0
  56. package/src/resources/index.ts +1 -0
  57. package/src/resources/search.ts +5 -0
  58. package/src/resources/servers/deployments.ts +202 -385
  59. package/src/resources/servers/index.ts +5 -0
  60. package/src/resources/servers/servers.ts +23 -1
  61. package/src/version.ts +1 -1
  62. package/version.d.mts +1 -1
  63. package/version.d.mts.map +1 -1
  64. package/version.d.ts +1 -1
  65. package/version.d.ts.map +1 -1
  66. package/version.js +1 -1
  67. package/version.js.map +1 -1
  68. package/version.mjs +1 -1
  69. package/version.mjs.map +1 -1
@@ -54,520 +54,332 @@ export class Deployments extends APIResource {
54
54
  }
55
55
  }
56
56
 
57
- export interface DeploymentRetrieveResponse {
58
- id: string;
59
-
60
- createdAt: string;
61
-
62
- status: string;
63
-
64
- updatedAt: string;
57
+ export type DeployPayload = HostedDeployPayload | ExternalDeployPayload | StdioDeployPayload;
65
58
 
66
- logs?: Array<DeploymentRetrieveResponse.Log>;
59
+ export interface ExternalDeployPayload {
60
+ type: 'external';
67
61
 
68
- mcpUrl?: string;
62
+ upstreamUrl: string;
69
63
  }
70
64
 
71
- export namespace DeploymentRetrieveResponse {
72
- export interface Log {
73
- level: string;
65
+ export interface HostedDeployPayload {
66
+ stateful: boolean;
74
67
 
75
- message: string;
68
+ type: 'hosted';
76
69
 
77
- stage: 'deploy' | 'scan' | 'metadata' | 'publish';
70
+ configSchema?: { [key: string]: unknown };
78
71
 
79
- timestamp: string;
72
+ serverCard?: ServerCard;
80
73
 
81
- error?: Log.Error;
82
- }
83
-
84
- export namespace Log {
85
- export interface Error {
86
- message?: string;
87
- }
88
- }
74
+ source?: HostedDeployPayload.Source;
89
75
  }
90
76
 
91
- export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
77
+ export namespace HostedDeployPayload {
78
+ export interface Source {
79
+ branch?: string;
92
80
 
93
- export namespace DeploymentListResponse {
94
- export interface DeploymentListResponseItem {
95
- id: string;
96
-
97
- createdAt: string;
98
-
99
- status: string;
100
-
101
- updatedAt: string;
102
-
103
- mcpUrl?: string;
81
+ commit?: string;
104
82
  }
105
83
  }
106
84
 
107
- export interface DeploymentDeployResponse {
108
- deploymentId: string;
109
-
110
- mcpUrl: string;
85
+ export interface ServerCard {
86
+ serverInfo: ServerCard.ServerInfo;
111
87
 
112
- status: string;
88
+ authentication?: ServerCard.Authentication;
113
89
 
114
- warnings?: Array<string>;
115
- }
90
+ prompts?: Array<ServerCard.Prompt>;
116
91
 
117
- export interface DeploymentResumeResponse {
118
- deploymentId: string;
92
+ resources?: Array<ServerCard.Resource>;
119
93
 
120
- status: string;
121
- }
94
+ tools?: Array<ServerCard.Tool>;
122
95
 
123
- export interface DeploymentRetrieveParams {
124
- qualifiedName: string;
96
+ [k: string]: unknown;
125
97
  }
126
98
 
127
- export interface DeploymentDeployParams {
128
- payload:
129
- | DeploymentDeployParams.HostedDeployPayload
130
- | DeploymentDeployParams.ExternalDeployPayload
131
- | DeploymentDeployParams.StdioDeployPayload;
132
-
133
- /**
134
- * MCPB bundle file (for stdio deployments)
135
- */
136
- bundle?: Uploadable;
137
-
138
- /**
139
- * JavaScript module file (for hosted deployments)
140
- */
141
- module?: Uploadable;
142
-
143
- /**
144
- * Source map file (for hosted deployments)
145
- */
146
- sourcemap?: Uploadable;
147
- }
99
+ export namespace ServerCard {
100
+ export interface ServerInfo {
101
+ name: string;
148
102
 
149
- export namespace DeploymentDeployParams {
150
- export interface HostedDeployPayload {
151
- stateful: boolean;
103
+ version: string;
152
104
 
153
- type: 'hosted';
105
+ description?: string;
154
106
 
155
- configSchema?: { [key: string]: unknown };
107
+ icons?: Array<ServerInfo.Icon>;
156
108
 
157
- serverCard?: HostedDeployPayload.ServerCard;
109
+ title?: string;
158
110
 
159
- source?: HostedDeployPayload.Source;
111
+ websiteUrl?: string;
160
112
  }
161
113
 
162
- export namespace HostedDeployPayload {
163
- export interface ServerCard {
164
- serverInfo: ServerCard.ServerInfo;
165
-
166
- authentication?: ServerCard.Authentication;
114
+ export namespace ServerInfo {
115
+ export interface Icon {
116
+ src: string;
167
117
 
168
- prompts?: Array<ServerCard.Prompt>;
118
+ mimeType?: string;
169
119
 
170
- resources?: Array<ServerCard.Resource>;
120
+ sizes?: Array<string>;
171
121
 
172
- tools?: Array<ServerCard.Tool>;
173
-
174
- [k: string]: unknown;
122
+ theme?: 'light' | 'dark';
175
123
  }
124
+ }
176
125
 
177
- export namespace ServerCard {
178
- export interface ServerInfo {
179
- name: string;
180
-
181
- version: string;
182
-
183
- description?: string;
184
-
185
- icons?: Array<ServerInfo.Icon>;
186
-
187
- title?: string;
188
-
189
- websiteUrl?: string;
190
- }
191
-
192
- export namespace ServerInfo {
193
- export interface Icon {
194
- src: string;
195
-
196
- mimeType?: string;
197
-
198
- sizes?: Array<string>;
199
-
200
- theme?: 'light' | 'dark';
201
- }
202
- }
203
-
204
- export interface Authentication {
205
- required: boolean;
206
-
207
- schemes: Array<string>;
208
- }
209
-
210
- export interface Prompt {
211
- name: string;
212
-
213
- _meta?: { [key: string]: unknown };
214
-
215
- arguments?: Array<Prompt.Argument>;
216
-
217
- description?: string;
218
-
219
- icons?: Array<Prompt.Icon>;
220
-
221
- title?: string;
222
- }
223
-
224
- export namespace Prompt {
225
- export interface Argument {
226
- name: string;
227
-
228
- description?: string;
229
-
230
- required?: boolean;
231
- }
232
-
233
- export interface Icon {
234
- src: string;
235
-
236
- mimeType?: string;
237
-
238
- sizes?: Array<string>;
239
-
240
- theme?: 'light' | 'dark';
241
- }
242
- }
243
-
244
- export interface Resource {
245
- name: string;
246
-
247
- uri: string;
248
-
249
- _meta?: { [key: string]: unknown };
250
-
251
- annotations?: Resource.Annotations;
252
-
253
- description?: string;
254
-
255
- icons?: Array<Resource.Icon>;
256
-
257
- mimeType?: string;
258
-
259
- title?: string;
260
- }
261
-
262
- export namespace Resource {
263
- export interface Annotations {
264
- audience?: Array<'user' | 'assistant'>;
265
-
266
- lastModified?: string;
267
-
268
- priority?: number;
269
- }
270
-
271
- export interface Icon {
272
- src: string;
273
-
274
- mimeType?: string;
275
-
276
- sizes?: Array<string>;
277
-
278
- theme?: 'light' | 'dark';
279
- }
280
- }
126
+ export interface Authentication {
127
+ required: boolean;
281
128
 
282
- export interface Tool {
283
- inputSchema: Tool.InputSchema;
129
+ schemes: Array<string>;
130
+ }
284
131
 
285
- name: string;
132
+ export interface Prompt {
133
+ name: string;
286
134
 
287
- _meta?: { [key: string]: unknown };
135
+ _meta?: { [key: string]: unknown };
288
136
 
289
- annotations?: Tool.Annotations;
137
+ arguments?: Array<Prompt.Argument>;
290
138
 
291
- description?: string;
139
+ description?: string;
292
140
 
293
- execution?: Tool.Execution;
141
+ icons?: Array<Prompt.Icon>;
294
142
 
295
- icons?: Array<Tool.Icon>;
143
+ title?: string;
144
+ }
296
145
 
297
- outputSchema?: Tool.OutputSchema;
146
+ export namespace Prompt {
147
+ export interface Argument {
148
+ name: string;
298
149
 
299
- title?: string;
300
- }
150
+ description?: string;
301
151
 
302
- export namespace Tool {
303
- export interface InputSchema {
304
- type: 'object';
152
+ required?: boolean;
153
+ }
305
154
 
306
- properties?: { [key: string]: unknown };
155
+ export interface Icon {
156
+ src: string;
307
157
 
308
- required?: Array<string>;
158
+ mimeType?: string;
309
159
 
310
- [k: string]: unknown;
311
- }
160
+ sizes?: Array<string>;
312
161
 
313
- export interface Annotations {
314
- destructiveHint?: boolean;
162
+ theme?: 'light' | 'dark';
163
+ }
164
+ }
315
165
 
316
- idempotentHint?: boolean;
166
+ export interface Resource {
167
+ name: string;
317
168
 
318
- openWorldHint?: boolean;
169
+ uri: string;
319
170
 
320
- readOnlyHint?: boolean;
171
+ _meta?: { [key: string]: unknown };
321
172
 
322
- title?: string;
323
- }
173
+ annotations?: Resource.Annotations;
324
174
 
325
- export interface Execution {
326
- taskSupport?: 'required' | 'optional' | 'forbidden';
327
- }
175
+ description?: string;
328
176
 
329
- export interface Icon {
330
- src: string;
177
+ icons?: Array<Resource.Icon>;
331
178
 
332
- mimeType?: string;
179
+ mimeType?: string;
333
180
 
334
- sizes?: Array<string>;
181
+ title?: string;
182
+ }
335
183
 
336
- theme?: 'light' | 'dark';
337
- }
184
+ export namespace Resource {
185
+ export interface Annotations {
186
+ audience?: Array<'user' | 'assistant'>;
338
187
 
339
- export interface OutputSchema {
340
- type: 'object';
188
+ lastModified?: string;
341
189
 
342
- properties?: { [key: string]: unknown };
190
+ priority?: number;
191
+ }
343
192
 
344
- required?: Array<string>;
193
+ export interface Icon {
194
+ src: string;
345
195
 
346
- [k: string]: unknown;
347
- }
348
- }
349
- }
196
+ mimeType?: string;
350
197
 
351
- export interface Source {
352
- branch?: string;
198
+ sizes?: Array<string>;
353
199
 
354
- commit?: string;
200
+ theme?: 'light' | 'dark';
355
201
  }
356
202
  }
357
203
 
358
- export interface ExternalDeployPayload {
359
- type: 'external';
204
+ export interface Tool {
205
+ inputSchema: Tool.InputSchema;
360
206
 
361
- upstreamUrl: string;
362
- }
207
+ name: string;
363
208
 
364
- export interface StdioDeployPayload {
365
- runtime: 'node';
209
+ _meta?: { [key: string]: unknown };
366
210
 
367
- type: 'stdio';
211
+ annotations?: Tool.Annotations;
368
212
 
369
- configSchema?: { [key: string]: unknown };
213
+ description?: string;
370
214
 
371
- serverCard?: StdioDeployPayload.ServerCard;
215
+ execution?: Tool.Execution;
372
216
 
373
- source?: StdioDeployPayload.Source;
374
- }
217
+ icons?: Array<Tool.Icon>;
375
218
 
376
- export namespace StdioDeployPayload {
377
- export interface ServerCard {
378
- serverInfo: ServerCard.ServerInfo;
219
+ outputSchema?: Tool.OutputSchema;
379
220
 
380
- authentication?: ServerCard.Authentication;
221
+ title?: string;
222
+ }
381
223
 
382
- prompts?: Array<ServerCard.Prompt>;
224
+ export namespace Tool {
225
+ export interface InputSchema {
226
+ type: 'object';
383
227
 
384
- resources?: Array<ServerCard.Resource>;
228
+ properties?: { [key: string]: unknown };
385
229
 
386
- tools?: Array<ServerCard.Tool>;
230
+ required?: Array<string>;
387
231
 
388
232
  [k: string]: unknown;
389
233
  }
390
234
 
391
- export namespace ServerCard {
392
- export interface ServerInfo {
393
- name: string;
394
-
395
- version: string;
396
-
397
- description?: string;
398
-
399
- icons?: Array<ServerInfo.Icon>;
400
-
401
- title?: string;
402
-
403
- websiteUrl?: string;
404
- }
405
-
406
- export namespace ServerInfo {
407
- export interface Icon {
408
- src: string;
409
-
410
- mimeType?: string;
411
-
412
- sizes?: Array<string>;
413
-
414
- theme?: 'light' | 'dark';
415
- }
416
- }
417
-
418
- export interface Authentication {
419
- required: boolean;
420
-
421
- schemes: Array<string>;
422
- }
423
-
424
- export interface Prompt {
425
- name: string;
426
-
427
- _meta?: { [key: string]: unknown };
235
+ export interface Annotations {
236
+ destructiveHint?: boolean;
428
237
 
429
- arguments?: Array<Prompt.Argument>;
238
+ idempotentHint?: boolean;
430
239
 
431
- description?: string;
240
+ openWorldHint?: boolean;
432
241
 
433
- icons?: Array<Prompt.Icon>;
242
+ readOnlyHint?: boolean;
434
243
 
435
- title?: string;
436
- }
437
-
438
- export namespace Prompt {
439
- export interface Argument {
440
- name: string;
441
-
442
- description?: string;
443
-
444
- required?: boolean;
445
- }
446
-
447
- export interface Icon {
448
- src: string;
449
-
450
- mimeType?: string;
451
-
452
- sizes?: Array<string>;
244
+ title?: string;
245
+ }
453
246
 
454
- theme?: 'light' | 'dark';
455
- }
456
- }
247
+ export interface Execution {
248
+ taskSupport?: 'required' | 'optional' | 'forbidden';
249
+ }
457
250
 
458
- export interface Resource {
459
- name: string;
251
+ export interface Icon {
252
+ src: string;
460
253
 
461
- uri: string;
254
+ mimeType?: string;
462
255
 
463
- _meta?: { [key: string]: unknown };
256
+ sizes?: Array<string>;
464
257
 
465
- annotations?: Resource.Annotations;
258
+ theme?: 'light' | 'dark';
259
+ }
466
260
 
467
- description?: string;
261
+ export interface OutputSchema {
262
+ type: 'object';
468
263
 
469
- icons?: Array<Resource.Icon>;
264
+ properties?: { [key: string]: unknown };
470
265
 
471
- mimeType?: string;
266
+ required?: Array<string>;
472
267
 
473
- title?: string;
474
- }
268
+ [k: string]: unknown;
269
+ }
270
+ }
271
+ }
475
272
 
476
- export namespace Resource {
477
- export interface Annotations {
478
- audience?: Array<'user' | 'assistant'>;
273
+ export interface StdioDeployPayload {
274
+ runtime: 'node';
479
275
 
480
- lastModified?: string;
276
+ type: 'stdio';
481
277
 
482
- priority?: number;
483
- }
278
+ configSchema?: { [key: string]: unknown };
484
279
 
485
- export interface Icon {
486
- src: string;
280
+ serverCard?: ServerCard;
487
281
 
488
- mimeType?: string;
282
+ source?: StdioDeployPayload.Source;
283
+ }
489
284
 
490
- sizes?: Array<string>;
285
+ export namespace StdioDeployPayload {
286
+ export interface Source {
287
+ branch?: string;
491
288
 
492
- theme?: 'light' | 'dark';
493
- }
494
- }
289
+ commit?: string;
290
+ }
291
+ }
495
292
 
496
- export interface Tool {
497
- inputSchema: Tool.InputSchema;
293
+ export interface DeploymentRetrieveResponse {
294
+ id: string;
498
295
 
499
- name: string;
296
+ createdAt: string;
500
297
 
501
- _meta?: { [key: string]: unknown };
298
+ status: string;
502
299
 
503
- annotations?: Tool.Annotations;
300
+ updatedAt: string;
504
301
 
505
- description?: string;
302
+ logs?: Array<DeploymentRetrieveResponse.Log>;
506
303
 
507
- execution?: Tool.Execution;
304
+ mcpUrl?: string;
305
+ }
508
306
 
509
- icons?: Array<Tool.Icon>;
307
+ export namespace DeploymentRetrieveResponse {
308
+ export interface Log {
309
+ level: string;
510
310
 
511
- outputSchema?: Tool.OutputSchema;
311
+ message: string;
512
312
 
513
- title?: string;
514
- }
313
+ stage: 'deploy' | 'scan' | 'metadata' | 'publish';
515
314
 
516
- export namespace Tool {
517
- export interface InputSchema {
518
- type: 'object';
315
+ timestamp: string;
519
316
 
520
- properties?: { [key: string]: unknown };
317
+ error?: Log.Error;
318
+ }
521
319
 
522
- required?: Array<string>;
320
+ export namespace Log {
321
+ export interface Error {
322
+ message?: string;
323
+ }
324
+ }
325
+ }
523
326
 
524
- [k: string]: unknown;
525
- }
327
+ export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
526
328
 
527
- export interface Annotations {
528
- destructiveHint?: boolean;
329
+ export namespace DeploymentListResponse {
330
+ export interface DeploymentListResponseItem {
331
+ id: string;
529
332
 
530
- idempotentHint?: boolean;
333
+ createdAt: string;
531
334
 
532
- openWorldHint?: boolean;
335
+ status: string;
533
336
 
534
- readOnlyHint?: boolean;
337
+ updatedAt: string;
535
338
 
536
- title?: string;
537
- }
339
+ mcpUrl?: string;
340
+ }
341
+ }
538
342
 
539
- export interface Execution {
540
- taskSupport?: 'required' | 'optional' | 'forbidden';
541
- }
343
+ export interface DeploymentDeployResponse {
344
+ deploymentId: string;
542
345
 
543
- export interface Icon {
544
- src: string;
346
+ mcpUrl: string;
545
347
 
546
- mimeType?: string;
348
+ status: string;
547
349
 
548
- sizes?: Array<string>;
350
+ warnings?: Array<string>;
351
+ }
549
352
 
550
- theme?: 'light' | 'dark';
551
- }
353
+ export interface DeploymentResumeResponse {
354
+ deploymentId: string;
552
355
 
553
- export interface OutputSchema {
554
- type: 'object';
356
+ status: string;
357
+ }
555
358
 
556
- properties?: { [key: string]: unknown };
359
+ export interface DeploymentRetrieveParams {
360
+ qualifiedName: string;
361
+ }
557
362
 
558
- required?: Array<string>;
363
+ export interface DeploymentDeployParams {
364
+ /**
365
+ * JSON-encoded deployment payload. See DeployPayload schema for structure.
366
+ */
367
+ payload: string;
559
368
 
560
- [k: string]: unknown;
561
- }
562
- }
563
- }
369
+ /**
370
+ * MCPB bundle file (for stdio deployments)
371
+ */
372
+ bundle?: Uploadable;
564
373
 
565
- export interface Source {
566
- branch?: string;
374
+ /**
375
+ * JavaScript module file (for hosted deployments)
376
+ */
377
+ module?: Uploadable;
567
378
 
568
- commit?: string;
569
- }
570
- }
379
+ /**
380
+ * Source map file (for hosted deployments)
381
+ */
382
+ sourcemap?: Uploadable;
571
383
  }
572
384
 
573
385
  export interface DeploymentResumeParams {
@@ -576,6 +388,11 @@ export interface DeploymentResumeParams {
576
388
 
577
389
  export declare namespace Deployments {
578
390
  export {
391
+ type DeployPayload as DeployPayload,
392
+ type ExternalDeployPayload as ExternalDeployPayload,
393
+ type HostedDeployPayload as HostedDeployPayload,
394
+ type ServerCard as ServerCard,
395
+ type StdioDeployPayload as StdioDeployPayload,
579
396
  type DeploymentRetrieveResponse as DeploymentRetrieveResponse,
580
397
  type DeploymentListResponse as DeploymentListResponse,
581
398
  type DeploymentDeployResponse as DeploymentDeployResponse,