@smithery/api 0.65.2 → 0.67.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 (46) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/connections/connections.d.mts +64 -10
  10. package/resources/connections/connections.d.mts.map +1 -1
  11. package/resources/connections/connections.d.ts +64 -10
  12. package/resources/connections/connections.d.ts.map +1 -1
  13. package/resources/connections/connections.js +5 -4
  14. package/resources/connections/connections.js.map +1 -1
  15. package/resources/connections/connections.mjs +5 -4
  16. package/resources/connections/connections.mjs.map +1 -1
  17. package/resources/index.d.mts +1 -1
  18. package/resources/index.d.mts.map +1 -1
  19. package/resources/index.d.ts +1 -1
  20. package/resources/index.d.ts.map +1 -1
  21. package/resources/index.js.map +1 -1
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/servers/index.d.mts +1 -1
  24. package/resources/servers/index.d.mts.map +1 -1
  25. package/resources/servers/index.d.ts +1 -1
  26. package/resources/servers/index.d.ts.map +1 -1
  27. package/resources/servers/index.js.map +1 -1
  28. package/resources/servers/index.mjs.map +1 -1
  29. package/resources/servers/servers.d.mts +28 -1
  30. package/resources/servers/servers.d.mts.map +1 -1
  31. package/resources/servers/servers.d.ts +28 -1
  32. package/resources/servers/servers.d.ts.map +1 -1
  33. package/resources/servers/servers.js +18 -0
  34. package/resources/servers/servers.js.map +1 -1
  35. package/resources/servers/servers.mjs +18 -0
  36. package/resources/servers/servers.mjs.map +1 -1
  37. package/src/client.ts +4 -0
  38. package/src/resources/connections/connections.ts +85 -10
  39. package/src/resources/index.ts +2 -0
  40. package/src/resources/servers/index.ts +2 -0
  41. package/src/resources/servers/servers.ts +43 -0
  42. package/src/version.ts +1 -1
  43. package/version.d.mts +1 -1
  44. package/version.d.ts +1 -1
  45. package/version.js +1 -1
  46. package/version.mjs +1 -1
package/src/client.ts CHANGED
@@ -89,6 +89,8 @@ import {
89
89
  ServerListParams,
90
90
  ServerListResponse,
91
91
  ServerListResponsesSmitheryPage,
92
+ ServerTransferParams,
93
+ ServerTransferResponse,
92
94
  ServerUpdateParams,
93
95
  ServerUpdateResponse,
94
96
  Servers,
@@ -895,10 +897,12 @@ export declare namespace Smithery {
895
897
  type ServerListResponse as ServerListResponse,
896
898
  type ServerDeleteResponse as ServerDeleteResponse,
897
899
  type ServerGetResponse as ServerGetResponse,
900
+ type ServerTransferResponse as ServerTransferResponse,
898
901
  type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
899
902
  type ServerCreateParams as ServerCreateParams,
900
903
  type ServerUpdateParams as ServerUpdateParams,
901
904
  type ServerListParams as ServerListParams,
905
+ type ServerTransferParams as ServerTransferParams,
902
906
  };
903
907
 
904
908
  export {
@@ -126,10 +126,11 @@ export class Connections extends APIResource {
126
126
  }
127
127
 
128
128
  /**
129
- * Create or update an MCP connection with the given ID. mcpUrl is required when
130
- * creating a new connection, but optional when updating. Returns 409 if a
131
- * different mcpUrl is provided, except while the connection is input_required and
132
- * the new URL keeps the same host and path.
129
+ * Create or update an MCP connection with the given ID. `server` is the Smithery
130
+ * registry qualified name; `mcpUrl` is for custom MCP URLs. One of them is
131
+ * required when creating a new HTTP connection, but optional when updating.
132
+ * Returns 409 if a different target URL is provided, except while the connection
133
+ * is input_required and the new URL keeps the same host and path.
133
134
  *
134
135
  * @example
135
136
  * ```ts
@@ -342,8 +343,7 @@ export interface CreateConnectionRequest {
342
343
  headers?: { [key: string]: string };
343
344
 
344
345
  /**
345
- * URL of the MCP server. Required for HTTP connections. Omit for uplink
346
- * connections.
346
+ * URL of a custom MCP server. For Smithery registry servers, prefer `server`.
347
347
  */
348
348
  mcpUrl?: string;
349
349
 
@@ -365,6 +365,14 @@ export interface CreateConnectionRequest {
365
365
  */
366
366
  name?: string;
367
367
 
368
+ /**
369
+ * Smithery registry server qualified name. Use this instead of mcpUrl for registry
370
+ * servers.
371
+ */
372
+ server?: string;
373
+
374
+ source?: CreateConnectionRequest.Source;
375
+
368
376
  /**
369
377
  * Connection transport. Use `uplink` for a local server paired over Smithery CLI.
370
378
  */
@@ -390,6 +398,22 @@ export namespace CreateConnectionRequest {
390
398
  */
391
399
  scenario?: string;
392
400
  }
401
+
402
+ export interface Source {
403
+ entrypoint: string;
404
+
405
+ kind: 'module';
406
+
407
+ sourceFiles: Array<Source.SourceFile>;
408
+ }
409
+
410
+ export namespace Source {
411
+ export interface SourceFile {
412
+ contents: string;
413
+
414
+ path: string;
415
+ }
416
+ }
393
417
  }
394
418
 
395
419
  export interface ConnectionDeleteResponse {
@@ -404,8 +428,7 @@ export interface ConnectionCreateParams {
404
428
  headers?: { [key: string]: string };
405
429
 
406
430
  /**
407
- * URL of the MCP server. Required for HTTP connections. Omit for uplink
408
- * connections.
431
+ * URL of a custom MCP server. For Smithery registry servers, prefer `server`.
409
432
  */
410
433
  mcpUrl?: string;
411
434
 
@@ -427,6 +450,14 @@ export interface ConnectionCreateParams {
427
450
  */
428
451
  name?: string;
429
452
 
453
+ /**
454
+ * Smithery registry server qualified name. Use this instead of mcpUrl for registry
455
+ * servers.
456
+ */
457
+ server?: string;
458
+
459
+ source?: ConnectionCreateParams.Source;
460
+
430
461
  /**
431
462
  * Connection transport. Use `uplink` for a local server paired over Smithery CLI.
432
463
  */
@@ -452,6 +483,22 @@ export namespace ConnectionCreateParams {
452
483
  */
453
484
  scenario?: string;
454
485
  }
486
+
487
+ export interface Source {
488
+ entrypoint: string;
489
+
490
+ kind: 'module';
491
+
492
+ sourceFiles: Array<Source.SourceFile>;
493
+ }
494
+
495
+ export namespace Source {
496
+ export interface SourceFile {
497
+ contents: string;
498
+
499
+ path: string;
500
+ }
501
+ }
455
502
  }
456
503
 
457
504
  export interface ConnectionListParams {
@@ -497,8 +544,9 @@ export interface ConnectionSetParams {
497
544
  headers?: { [key: string]: string };
498
545
 
499
546
  /**
500
- * Body param: URL of the MCP server. Required when creating a new connection.
501
- * Optional when updating omit to keep the existing URL.
547
+ * Body param: URL of a custom MCP server. For Smithery registry servers, prefer
548
+ * `server`. Required with `server` omitted when creating a new HTTP connection;
549
+ * optional when updating.
502
550
  */
503
551
  mcpUrl?: string;
504
552
 
@@ -518,6 +566,17 @@ export interface ConnectionSetParams {
518
566
  */
519
567
  name?: string;
520
568
 
569
+ /**
570
+ * Body param: Smithery registry server qualified name. Use this instead of mcpUrl
571
+ * for registry servers.
572
+ */
573
+ server?: string;
574
+
575
+ /**
576
+ * Body param
577
+ */
578
+ source?: ConnectionSetParams.Source;
579
+
521
580
  /**
522
581
  * Body param: Connection transport. Defaults to the existing connection transport
523
582
  * when updating.
@@ -542,6 +601,22 @@ export namespace ConnectionSetParams {
542
601
  */
543
602
  scenario?: string;
544
603
  }
604
+
605
+ export interface Source {
606
+ entrypoint: string;
607
+
608
+ kind: 'module';
609
+
610
+ sourceFiles: Array<Source.SourceFile>;
611
+ }
612
+
613
+ export namespace Source {
614
+ export interface SourceFile {
615
+ contents: string;
616
+
617
+ path: string;
618
+ }
619
+ }
545
620
  }
546
621
 
547
622
  Connections.Tools = Tools;
@@ -33,9 +33,11 @@ export {
33
33
  type ServerListResponse,
34
34
  type ServerDeleteResponse,
35
35
  type ServerGetResponse,
36
+ type ServerTransferResponse,
36
37
  type ServerCreateParams,
37
38
  type ServerUpdateParams,
38
39
  type ServerListParams,
40
+ type ServerTransferParams,
39
41
  type ServerListResponsesSmitheryPage,
40
42
  } from './servers/servers';
41
43
  export {
@@ -44,8 +44,10 @@ export {
44
44
  type ServerListResponse,
45
45
  type ServerDeleteResponse,
46
46
  type ServerGetResponse,
47
+ type ServerTransferResponse,
47
48
  type ServerCreateParams,
48
49
  type ServerUpdateParams,
49
50
  type ServerListParams,
51
+ type ServerTransferParams,
50
52
  type ServerListResponsesSmitheryPage,
51
53
  } from './servers';
@@ -149,6 +149,29 @@ export class Servers extends APIResource {
149
149
  get(qualifiedName: string, options?: RequestOptions): APIPromise<ServerGetResponse> {
150
150
  return this._client.get(path`/servers/${qualifiedName}`, options);
151
151
  }
152
+
153
+ /**
154
+ * Move a server to another namespace. The caller must have server write access to
155
+ * both the source namespace and the destination namespace.
156
+ *
157
+ * @example
158
+ * ```ts
159
+ * const response = await client.servers.transfer(
160
+ * 'qualifiedName',
161
+ * {
162
+ * targetNamespace: 'my-team',
163
+ * targetOrganizationId: 'org_01H1234567890',
164
+ * },
165
+ * );
166
+ * ```
167
+ */
168
+ transfer(
169
+ qualifiedName: string,
170
+ body: ServerTransferParams,
171
+ options?: RequestOptions,
172
+ ): APIPromise<ServerTransferResponse> {
173
+ return this._client.post(path`/servers/${qualifiedName}/transfer`, { body, ...options });
174
+ }
152
175
  }
153
176
 
154
177
  export type ServerListResponsesSmitheryPage = SmitheryPage<ServerListResponse>;
@@ -413,6 +436,16 @@ export namespace ServerGetResponse {
413
436
  }
414
437
  }
415
438
 
439
+ export interface ServerTransferResponse {
440
+ namespace: string;
441
+
442
+ qualifiedName: string;
443
+
444
+ server: string;
445
+
446
+ success: boolean;
447
+ }
448
+
416
449
  export interface ServerCreateParams {
417
450
  description?: string;
418
451
 
@@ -516,6 +549,14 @@ export interface ServerListParams extends SmitheryPageParams {
516
549
  verified?: '0' | '1' | 'true' | 'false';
517
550
  }
518
551
 
552
+ export interface ServerTransferParams {
553
+ targetNamespace: string;
554
+
555
+ targetOrganizationId: string;
556
+
557
+ targetSlug?: string;
558
+ }
559
+
519
560
  Servers.Releases = Releases;
520
561
  Servers.Logs = Logs;
521
562
  Servers.Secrets = Secrets;
@@ -532,10 +573,12 @@ export declare namespace Servers {
532
573
  type ServerListResponse as ServerListResponse,
533
574
  type ServerDeleteResponse as ServerDeleteResponse,
534
575
  type ServerGetResponse as ServerGetResponse,
576
+ type ServerTransferResponse as ServerTransferResponse,
535
577
  type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
536
578
  type ServerCreateParams as ServerCreateParams,
537
579
  type ServerUpdateParams as ServerUpdateParams,
538
580
  type ServerListParams as ServerListParams,
581
+ type ServerTransferParams as ServerTransferParams,
539
582
  };
540
583
 
541
584
  export {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.65.2'; // x-release-please-version
1
+ export const VERSION = '0.67.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.65.2";
1
+ export declare const VERSION = "0.67.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.65.2";
1
+ export declare const VERSION = "0.67.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.65.2'; // x-release-please-version
4
+ exports.VERSION = '0.67.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.65.2'; // x-release-please-version
1
+ export const VERSION = '0.67.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map