@smithery/api 0.34.1 → 0.36.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 (188) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +11 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -1
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +46 -0
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +46 -0
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +45 -1
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +42 -0
  17. package/core/pagination.mjs.map +1 -1
  18. package/lib/mcp-transport.d.mts +12 -0
  19. package/lib/mcp-transport.d.mts.map +1 -1
  20. package/lib/mcp-transport.d.ts +12 -0
  21. package/lib/mcp-transport.d.ts.map +1 -1
  22. package/lib/mcp-transport.js +5 -2
  23. package/lib/mcp-transport.js.map +1 -1
  24. package/lib/mcp-transport.mjs +5 -2
  25. package/lib/mcp-transport.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/resources/experimental/agents/agents.d.mts +84 -89
  28. package/resources/experimental/agents/agents.d.mts.map +1 -1
  29. package/resources/experimental/agents/agents.d.ts +84 -89
  30. package/resources/experimental/agents/agents.d.ts.map +1 -1
  31. package/resources/experimental/agents/agents.js.map +1 -1
  32. package/resources/experimental/agents/agents.mjs.map +1 -1
  33. package/resources/experimental/agents/index.d.mts +1 -1
  34. package/resources/experimental/agents/index.d.mts.map +1 -1
  35. package/resources/experimental/agents/index.d.ts +1 -1
  36. package/resources/experimental/agents/index.d.ts.map +1 -1
  37. package/resources/experimental/agents/index.js.map +1 -1
  38. package/resources/experimental/agents/index.mjs +1 -1
  39. package/resources/experimental/agents/index.mjs.map +1 -1
  40. package/resources/experimental/agents/responses.d.mts +1 -31
  41. package/resources/experimental/agents/responses.d.mts.map +1 -1
  42. package/resources/experimental/agents/responses.d.ts +1 -31
  43. package/resources/experimental/agents/responses.d.ts.map +1 -1
  44. package/resources/experimental/connect/connections.d.mts +4 -2
  45. package/resources/experimental/connect/connections.d.mts.map +1 -1
  46. package/resources/experimental/connect/connections.d.ts +4 -2
  47. package/resources/experimental/connect/connections.d.ts.map +1 -1
  48. package/resources/experimental/connect/connections.js +4 -2
  49. package/resources/experimental/connect/connections.js.map +1 -1
  50. package/resources/experimental/connect/connections.mjs +4 -2
  51. package/resources/experimental/connect/connections.mjs.map +1 -1
  52. package/resources/experimental/connect/mcp.d.mts +4 -2
  53. package/resources/experimental/connect/mcp.d.mts.map +1 -1
  54. package/resources/experimental/connect/mcp.d.ts +4 -2
  55. package/resources/experimental/connect/mcp.d.ts.map +1 -1
  56. package/resources/experimental/connect/mcp.js +4 -2
  57. package/resources/experimental/connect/mcp.js.map +1 -1
  58. package/resources/experimental/connect/mcp.mjs +4 -2
  59. package/resources/experimental/connect/mcp.mjs.map +1 -1
  60. package/resources/experimental/experimental.d.mts +2 -2
  61. package/resources/experimental/experimental.d.mts.map +1 -1
  62. package/resources/experimental/experimental.d.ts +2 -2
  63. package/resources/experimental/experimental.d.ts.map +1 -1
  64. package/resources/experimental/experimental.js.map +1 -1
  65. package/resources/experimental/experimental.mjs +1 -1
  66. package/resources/experimental/experimental.mjs.map +1 -1
  67. package/resources/experimental/index.d.mts +1 -1
  68. package/resources/experimental/index.d.mts.map +1 -1
  69. package/resources/experimental/index.d.ts +1 -1
  70. package/resources/experimental/index.d.ts.map +1 -1
  71. package/resources/experimental/index.js.map +1 -1
  72. package/resources/experimental/index.mjs +1 -1
  73. package/resources/experimental/index.mjs.map +1 -1
  74. package/resources/index.d.mts +3 -3
  75. package/resources/index.d.mts.map +1 -1
  76. package/resources/index.d.ts +3 -3
  77. package/resources/index.d.ts.map +1 -1
  78. package/resources/index.js +1 -1
  79. package/resources/index.js.map +1 -1
  80. package/resources/index.mjs +1 -1
  81. package/resources/index.mjs.map +1 -1
  82. package/resources/namespaces/index.d.mts +1 -1
  83. package/resources/namespaces/index.d.mts.map +1 -1
  84. package/resources/namespaces/index.d.ts +1 -1
  85. package/resources/namespaces/index.d.ts.map +1 -1
  86. package/resources/namespaces/index.js.map +1 -1
  87. package/resources/namespaces/index.mjs.map +1 -1
  88. package/resources/namespaces/namespaces.d.mts +35 -11
  89. package/resources/namespaces/namespaces.d.mts.map +1 -1
  90. package/resources/namespaces/namespaces.d.ts +35 -11
  91. package/resources/namespaces/namespaces.d.ts.map +1 -1
  92. package/resources/namespaces/namespaces.js +14 -4
  93. package/resources/namespaces/namespaces.js.map +1 -1
  94. package/resources/namespaces/namespaces.mjs +14 -4
  95. package/resources/namespaces/namespaces.mjs.map +1 -1
  96. package/resources/namespaces/servers.d.mts +3 -8
  97. package/resources/namespaces/servers.d.mts.map +1 -1
  98. package/resources/namespaces/servers.d.ts +3 -8
  99. package/resources/namespaces/servers.d.ts.map +1 -1
  100. package/resources/namespaces/servers.js +3 -8
  101. package/resources/namespaces/servers.js.map +1 -1
  102. package/resources/namespaces/servers.mjs +3 -8
  103. package/resources/namespaces/servers.mjs.map +1 -1
  104. package/resources/servers/deployments.d.mts +204 -6
  105. package/resources/servers/deployments.d.mts.map +1 -1
  106. package/resources/servers/deployments.d.ts +204 -6
  107. package/resources/servers/deployments.d.ts.map +1 -1
  108. package/resources/servers/deployments.js +14 -6
  109. package/resources/servers/deployments.js.map +1 -1
  110. package/resources/servers/deployments.mjs +14 -6
  111. package/resources/servers/deployments.mjs.map +1 -1
  112. package/resources/servers/index.d.mts +1 -1
  113. package/resources/servers/index.d.mts.map +1 -1
  114. package/resources/servers/index.d.ts +1 -1
  115. package/resources/servers/index.d.ts.map +1 -1
  116. package/resources/servers/index.js.map +1 -1
  117. package/resources/servers/index.mjs.map +1 -1
  118. package/resources/servers/servers.d.mts +135 -2
  119. package/resources/servers/servers.d.mts.map +1 -1
  120. package/resources/servers/servers.d.ts +135 -2
  121. package/resources/servers/servers.d.ts.map +1 -1
  122. package/resources/servers/servers.js +33 -1
  123. package/resources/servers/servers.js.map +1 -1
  124. package/resources/servers/servers.mjs +33 -1
  125. package/resources/servers/servers.mjs.map +1 -1
  126. package/resources/skills/index.d.mts +3 -0
  127. package/resources/skills/index.d.mts.map +1 -0
  128. package/resources/skills/index.d.ts +3 -0
  129. package/resources/skills/index.d.ts.map +1 -0
  130. package/resources/skills/index.js +9 -0
  131. package/resources/skills/index.js.map +1 -0
  132. package/resources/skills/index.mjs +4 -0
  133. package/resources/skills/index.mjs.map +1 -0
  134. package/resources/skills/reviews.d.mts +123 -0
  135. package/resources/skills/reviews.d.mts.map +1 -0
  136. package/resources/skills/reviews.d.ts +123 -0
  137. package/resources/skills/reviews.d.ts.map +1 -0
  138. package/resources/skills/reviews.js +40 -0
  139. package/resources/skills/reviews.js.map +1 -0
  140. package/resources/skills/reviews.mjs +36 -0
  141. package/resources/skills/reviews.mjs.map +1 -0
  142. package/resources/skills/skills.d.mts +135 -0
  143. package/resources/skills/skills.d.mts.map +1 -0
  144. package/resources/skills/skills.d.ts +135 -0
  145. package/resources/skills/skills.d.ts.map +1 -0
  146. package/resources/skills/skills.js +33 -0
  147. package/resources/skills/skills.js.map +1 -0
  148. package/resources/skills/skills.mjs +28 -0
  149. package/resources/skills/skills.mjs.map +1 -0
  150. package/resources/skills.d.mts +1 -39
  151. package/resources/skills.d.mts.map +1 -1
  152. package/resources/skills.d.ts +1 -39
  153. package/resources/skills.d.ts.map +1 -1
  154. package/resources/skills.js +2 -13
  155. package/resources/skills.js.map +1 -1
  156. package/resources/skills.mjs +1 -11
  157. package/resources/skills.mjs.map +1 -1
  158. package/resources/tokens.d.mts +5 -1
  159. package/resources/tokens.d.mts.map +1 -1
  160. package/resources/tokens.d.ts +5 -1
  161. package/resources/tokens.d.ts.map +1 -1
  162. package/src/client.ts +35 -1
  163. package/src/core/pagination.ts +118 -0
  164. package/src/lib/mcp-transport.ts +21 -2
  165. package/src/resources/experimental/agents/agents.ts +111 -106
  166. package/src/resources/experimental/agents/index.ts +17 -1
  167. package/src/resources/experimental/agents/responses.ts +1 -44
  168. package/src/resources/experimental/connect/connections.ts +4 -2
  169. package/src/resources/experimental/connect/mcp.ts +4 -2
  170. package/src/resources/experimental/experimental.ts +28 -1
  171. package/src/resources/experimental/index.ts +17 -1
  172. package/src/resources/index.ts +9 -1
  173. package/src/resources/namespaces/index.ts +2 -0
  174. package/src/resources/namespaces/namespaces.ts +49 -13
  175. package/src/resources/namespaces/servers.ts +3 -8
  176. package/src/resources/servers/deployments.ts +204 -6
  177. package/src/resources/servers/index.ts +4 -0
  178. package/src/resources/servers/servers.ts +170 -1
  179. package/src/resources/skills/index.ts +21 -0
  180. package/src/resources/skills/reviews.ts +191 -0
  181. package/src/resources/skills/skills.ts +219 -0
  182. package/src/resources/skills.ts +1 -72
  183. package/src/resources/tokens.ts +5 -1
  184. package/src/version.ts +1 -1
  185. package/version.d.mts +1 -1
  186. package/version.d.ts +1 -1
  187. package/version.js +1 -1
  188. package/version.mjs +1 -1
@@ -11,7 +11,8 @@ import { path } from '../../internal/utils/path';
11
11
 
12
12
  export class Deployments extends APIResource {
13
13
  /**
14
- * List deployments for a server
14
+ * List all deployments for a server, ordered by most recent first. Does not
15
+ * include deployment logs — fetch a specific deployment to see logs.
15
16
  *
16
17
  * @example
17
18
  * ```ts
@@ -31,7 +32,9 @@ export class Deployments extends APIResource {
31
32
  }
32
33
 
33
34
  /**
34
- * Upload and deploy an MCP server (hosted or external)
35
+ * Deploy an MCP server via multipart form. Supports hosted deployments (upload a
36
+ * JS module), external deployments (register a URL), stdio deployments (upload an
37
+ * MCPB bundle), and repo deployments (build from a connected GitHub repository).
35
38
  *
36
39
  * @example
37
40
  * ```ts
@@ -54,7 +57,9 @@ export class Deployments extends APIResource {
54
57
  }
55
58
 
56
59
  /**
57
- * Upload and deploy an MCP server (hosted or external)
60
+ * Deploy an MCP server via multipart form. Supports hosted deployments (upload a
61
+ * JS module), external deployments (register a URL), stdio deployments (upload an
62
+ * MCPB bundle), and repo deployments (build from a connected GitHub repository).
58
63
  *
59
64
  * @example
60
65
  * ```ts
@@ -77,7 +82,8 @@ export class Deployments extends APIResource {
77
82
  }
78
83
 
79
84
  /**
80
- * Get deployment status
85
+ * Get full details for a specific deployment, including status, type, git
86
+ * metadata, pipeline logs, and MCP endpoint URL.
81
87
  *
82
88
  * @example
83
89
  * ```ts
@@ -93,7 +99,8 @@ export class Deployments extends APIResource {
93
99
  }
94
100
 
95
101
  /**
96
- * Get deployment status
102
+ * Get full details for a specific deployment, including status, type, git
103
+ * metadata, pipeline logs, and MCP endpoint URL.
97
104
  *
98
105
  * @example
99
106
  * ```ts
@@ -113,7 +120,8 @@ export class Deployments extends APIResource {
113
120
  }
114
121
 
115
122
  /**
116
- * List deployments for a server
123
+ * List all deployments for a server, ordered by most recent first. Does not
124
+ * include deployment logs — fetch a specific deployment to see logs.
117
125
  *
118
126
  * @example
119
127
  * ```ts
@@ -485,84 +493,191 @@ export namespace DeploymentListResponse {
485
493
  export interface DeploymentListResponseItem {
486
494
  id: string;
487
495
 
496
+ /**
497
+ * ISO 8601 timestamp of when the deployment was created.
498
+ */
488
499
  createdAt: string;
489
500
 
501
+ /**
502
+ * Current deployment status: QUEUED, WORKING, SUCCESS, FAILURE, FAILURE_SCAN,
503
+ * AUTH_REQUIRED, CANCELLED, or INTERNAL_ERROR.
504
+ */
490
505
  status: string;
491
506
 
507
+ /**
508
+ * Deployment type: hosted_shttp (Smithery-hosted), external_shttp (external URL),
509
+ * or stdio (local binary).
510
+ */
492
511
  type: string;
493
512
 
513
+ /**
514
+ * ISO 8601 timestamp of the last status change.
515
+ */
494
516
  updatedAt: string;
495
517
 
518
+ /**
519
+ * Git branch this deployment was built from.
520
+ */
496
521
  branch?: string | null;
497
522
 
523
+ /**
524
+ * Git commit SHA that triggered this deployment. Present for repo and
525
+ * source-tracked deployments.
526
+ */
498
527
  commit?: string | null;
499
528
 
529
+ /**
530
+ * Git commit message associated with this deployment.
531
+ */
500
532
  commitMessage?: string | null;
501
533
 
534
+ /**
535
+ * The MCP endpoint URL for connecting to this server.
536
+ */
502
537
  mcpUrl?: string;
503
538
 
539
+ /**
540
+ * Upstream MCP server URL. Present only for external deployments.
541
+ */
504
542
  upstreamUrl?: string | null;
505
543
  }
506
544
  }
507
545
 
508
546
  export interface DeploymentDeployResponse {
547
+ /**
548
+ * Unique identifier for this deployment.
549
+ */
509
550
  deploymentId: string;
510
551
 
552
+ /**
553
+ * The MCP endpoint URL for connecting to this server once deployed.
554
+ */
511
555
  mcpUrl: string;
512
556
 
557
+ /**
558
+ * Initial deployment status. Will be WORKING while the deployment is in progress.
559
+ */
513
560
  status: string;
514
561
 
562
+ /**
563
+ * Non-fatal warnings encountered during deployment submission.
564
+ */
515
565
  warnings?: Array<string>;
516
566
  }
517
567
 
518
568
  export interface DeploymentDeployByNamespaceResponse {
569
+ /**
570
+ * Unique identifier for this deployment.
571
+ */
519
572
  deploymentId: string;
520
573
 
574
+ /**
575
+ * The MCP endpoint URL for connecting to this server once deployed.
576
+ */
521
577
  mcpUrl: string;
522
578
 
579
+ /**
580
+ * Initial deployment status. Will be WORKING while the deployment is in progress.
581
+ */
523
582
  status: string;
524
583
 
584
+ /**
585
+ * Non-fatal warnings encountered during deployment submission.
586
+ */
525
587
  warnings?: Array<string>;
526
588
  }
527
589
 
528
590
  export interface DeploymentGetResponse {
529
591
  id: string;
530
592
 
593
+ /**
594
+ * ISO 8601 timestamp of when the deployment was created.
595
+ */
531
596
  createdAt: string;
532
597
 
598
+ /**
599
+ * Current deployment status: QUEUED, WORKING, SUCCESS, FAILURE, FAILURE_SCAN,
600
+ * AUTH_REQUIRED, CANCELLED, or INTERNAL_ERROR.
601
+ */
533
602
  status: string;
534
603
 
604
+ /**
605
+ * Deployment type: hosted_shttp (Smithery-hosted), external_shttp (external URL),
606
+ * or stdio (local binary).
607
+ */
535
608
  type: string;
536
609
 
610
+ /**
611
+ * ISO 8601 timestamp of the last status change.
612
+ */
537
613
  updatedAt: string;
538
614
 
615
+ /**
616
+ * Git branch this deployment was built from.
617
+ */
539
618
  branch?: string | null;
540
619
 
620
+ /**
621
+ * Git commit SHA that triggered this deployment. Present for repo and
622
+ * source-tracked deployments.
623
+ */
541
624
  commit?: string | null;
542
625
 
626
+ /**
627
+ * Git commit message associated with this deployment.
628
+ */
543
629
  commitMessage?: string | null;
544
630
 
631
+ /**
632
+ * Deployment pipeline log entries. Only included when fetching a single
633
+ * deployment.
634
+ */
545
635
  logs?: Array<DeploymentGetResponse.Log>;
546
636
 
637
+ /**
638
+ * The MCP endpoint URL for connecting to this server.
639
+ */
547
640
  mcpUrl?: string;
548
641
 
642
+ /**
643
+ * Upstream MCP server URL. Present only for external deployments.
644
+ */
549
645
  upstreamUrl?: string | null;
550
646
  }
551
647
 
552
648
  export namespace DeploymentGetResponse {
553
649
  export interface Log {
650
+ /**
651
+ * Log level: 'start', 'end', 'info', 'success', or 'failure'.
652
+ */
554
653
  level: string;
555
654
 
655
+ /**
656
+ * Human-readable log message.
657
+ */
556
658
  message: string;
557
659
 
660
+ /**
661
+ * Deployment pipeline stage: deploy (bundle upload), scan (security/OAuth check),
662
+ * metadata (tool discovery), publish (making the server live).
663
+ */
558
664
  stage: 'deploy' | 'scan' | 'metadata' | 'publish';
559
665
 
666
+ /**
667
+ * ISO 8601 timestamp of the log entry.
668
+ */
560
669
  timestamp: string;
561
670
 
671
+ /**
672
+ * Error details, present only when the stage failed.
673
+ */
562
674
  error?: Log.Error;
563
675
  }
564
676
 
565
677
  export namespace Log {
678
+ /**
679
+ * Error details, present only when the stage failed.
680
+ */
566
681
  export interface Error {
567
682
  message?: string;
568
683
  }
@@ -572,41 +687,94 @@ export namespace DeploymentGetResponse {
572
687
  export interface DeploymentGetByNamespaceResponse {
573
688
  id: string;
574
689
 
690
+ /**
691
+ * ISO 8601 timestamp of when the deployment was created.
692
+ */
575
693
  createdAt: string;
576
694
 
695
+ /**
696
+ * Current deployment status: QUEUED, WORKING, SUCCESS, FAILURE, FAILURE_SCAN,
697
+ * AUTH_REQUIRED, CANCELLED, or INTERNAL_ERROR.
698
+ */
577
699
  status: string;
578
700
 
701
+ /**
702
+ * Deployment type: hosted_shttp (Smithery-hosted), external_shttp (external URL),
703
+ * or stdio (local binary).
704
+ */
579
705
  type: string;
580
706
 
707
+ /**
708
+ * ISO 8601 timestamp of the last status change.
709
+ */
581
710
  updatedAt: string;
582
711
 
712
+ /**
713
+ * Git branch this deployment was built from.
714
+ */
583
715
  branch?: string | null;
584
716
 
717
+ /**
718
+ * Git commit SHA that triggered this deployment. Present for repo and
719
+ * source-tracked deployments.
720
+ */
585
721
  commit?: string | null;
586
722
 
723
+ /**
724
+ * Git commit message associated with this deployment.
725
+ */
587
726
  commitMessage?: string | null;
588
727
 
728
+ /**
729
+ * Deployment pipeline log entries. Only included when fetching a single
730
+ * deployment.
731
+ */
589
732
  logs?: Array<DeploymentGetByNamespaceResponse.Log>;
590
733
 
734
+ /**
735
+ * The MCP endpoint URL for connecting to this server.
736
+ */
591
737
  mcpUrl?: string;
592
738
 
739
+ /**
740
+ * Upstream MCP server URL. Present only for external deployments.
741
+ */
593
742
  upstreamUrl?: string | null;
594
743
  }
595
744
 
596
745
  export namespace DeploymentGetByNamespaceResponse {
597
746
  export interface Log {
747
+ /**
748
+ * Log level: 'start', 'end', 'info', 'success', or 'failure'.
749
+ */
598
750
  level: string;
599
751
 
752
+ /**
753
+ * Human-readable log message.
754
+ */
600
755
  message: string;
601
756
 
757
+ /**
758
+ * Deployment pipeline stage: deploy (bundle upload), scan (security/OAuth check),
759
+ * metadata (tool discovery), publish (making the server live).
760
+ */
602
761
  stage: 'deploy' | 'scan' | 'metadata' | 'publish';
603
762
 
763
+ /**
764
+ * ISO 8601 timestamp of the log entry.
765
+ */
604
766
  timestamp: string;
605
767
 
768
+ /**
769
+ * Error details, present only when the stage failed.
770
+ */
606
771
  error?: Log.Error;
607
772
  }
608
773
 
609
774
  export namespace Log {
775
+ /**
776
+ * Error details, present only when the stage failed.
777
+ */
610
778
  export interface Error {
611
779
  message?: string;
612
780
  }
@@ -620,22 +788,52 @@ export namespace DeploymentListByNamespaceResponse {
620
788
  export interface DeploymentListByNamespaceResponseItem {
621
789
  id: string;
622
790
 
791
+ /**
792
+ * ISO 8601 timestamp of when the deployment was created.
793
+ */
623
794
  createdAt: string;
624
795
 
796
+ /**
797
+ * Current deployment status: QUEUED, WORKING, SUCCESS, FAILURE, FAILURE_SCAN,
798
+ * AUTH_REQUIRED, CANCELLED, or INTERNAL_ERROR.
799
+ */
625
800
  status: string;
626
801
 
802
+ /**
803
+ * Deployment type: hosted_shttp (Smithery-hosted), external_shttp (external URL),
804
+ * or stdio (local binary).
805
+ */
627
806
  type: string;
628
807
 
808
+ /**
809
+ * ISO 8601 timestamp of the last status change.
810
+ */
629
811
  updatedAt: string;
630
812
 
813
+ /**
814
+ * Git branch this deployment was built from.
815
+ */
631
816
  branch?: string | null;
632
817
 
818
+ /**
819
+ * Git commit SHA that triggered this deployment. Present for repo and
820
+ * source-tracked deployments.
821
+ */
633
822
  commit?: string | null;
634
823
 
824
+ /**
825
+ * Git commit message associated with this deployment.
826
+ */
635
827
  commitMessage?: string | null;
636
828
 
829
+ /**
830
+ * The MCP endpoint URL for connecting to this server.
831
+ */
637
832
  mcpUrl?: string;
638
833
 
834
+ /**
835
+ * Upstream MCP server URL. Present only for external deployments.
836
+ */
639
837
  upstreamUrl?: string | null;
640
838
  }
641
839
  }
@@ -66,12 +66,16 @@ export {
66
66
  type BuildConfig,
67
67
  type DeploymentTarget,
68
68
  type ProjectConfig,
69
+ type ServerCreateResponse,
69
70
  type ServerListResponse,
70
71
  type ServerDeleteResponse,
72
+ type ServerCreateByNamespaceResponse,
71
73
  type ServerGetResponse,
72
74
  type ServerGetByNamespaceResponse,
75
+ type ServerCreateParams,
73
76
  type ServerListParams,
74
77
  type ServerDeleteParams,
78
+ type ServerCreateByNamespaceParams,
75
79
  type ServerDownloadParams,
76
80
  type ServerGetParams,
77
81
  type ServerListResponsesSmitheryPage,
@@ -79,7 +79,29 @@ export class Servers extends APIResource {
79
79
  repo: RepoAPI.Repo = new RepoAPI.Repo(this._client);
80
80
 
81
81
  /**
82
- * Get a paginated list of all servers. Use the `q` parameter to search.
82
+ * Create a new server under the specified namespace. This endpoint is idempotent -
83
+ * if the server already exists and is owned by the user, returns success.
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * const server = await client.servers.create('server', {
88
+ * namespace: 'namespace',
89
+ * });
90
+ * ```
91
+ */
92
+ create(
93
+ server: string,
94
+ params: ServerCreateParams,
95
+ options?: RequestOptions,
96
+ ): APIPromise<ServerCreateResponse> {
97
+ const { namespace, ...body } = params;
98
+ return this._client.put(path`/servers/${namespace}/${server}`, { body, ...options });
99
+ }
100
+
101
+ /**
102
+ * Search and browse public MCP servers in the Smithery registry. Supports
103
+ * full-text and semantic search via the `q` parameter, and filtering by deployment
104
+ * status, verification, ownership, and more.
83
105
  *
84
106
  * @example
85
107
  * ```ts
@@ -115,6 +137,26 @@ export class Servers extends APIResource {
115
137
  return this._client.delete(path`/servers/${namespace}/${server}`, options);
116
138
  }
117
139
 
140
+ /**
141
+ * Create a namespace-only server where the namespace is also the server
142
+ * identifier. This endpoint is idempotent - if the server already exists and is
143
+ * owned by the user, returns success.
144
+ *
145
+ * @example
146
+ * ```ts
147
+ * const response = await client.servers.createByNamespace(
148
+ * 'namespace',
149
+ * );
150
+ * ```
151
+ */
152
+ createByNamespace(
153
+ namespace: string,
154
+ body: ServerCreateByNamespaceParams | null | undefined = {},
155
+ options?: RequestOptions,
156
+ ): APIPromise<ServerCreateByNamespaceResponse> {
157
+ return this._client.put(path`/servers/${namespace}`, { body, ...options });
158
+ }
159
+
118
160
  /**
119
161
  * Download the MCPB bundle for the latest successful stdio deployment
120
162
  *
@@ -228,33 +270,76 @@ export namespace ProjectConfig {
228
270
  }
229
271
  }
230
272
 
273
+ export interface ServerCreateResponse {
274
+ createdAt: string;
275
+
276
+ description: string;
277
+
278
+ displayName: string;
279
+
280
+ namespace: string;
281
+
282
+ server: string;
283
+ }
284
+
231
285
  export interface ServerListResponse {
232
286
  id: string;
233
287
 
288
+ /**
289
+ * ISO 8601 timestamp of when the server was registered.
290
+ */
234
291
  createdAt: string;
235
292
 
236
293
  description: string;
237
294
 
238
295
  displayName: string;
239
296
 
297
+ /**
298
+ * URL to the server's page on smithery.ai.
299
+ */
240
300
  homepage: string;
241
301
 
242
302
  iconUrl: string | null;
243
303
 
304
+ /**
305
+ * Whether the server is currently hosted on Smithery infrastructure.
306
+ */
244
307
  isDeployed: boolean;
245
308
 
309
+ /**
310
+ * The namespace this server belongs to, or null if unassigned.
311
+ */
246
312
  namespace: string | null;
247
313
 
314
+ /**
315
+ * User ID of the server owner, or null for community servers.
316
+ */
248
317
  owner: string | null;
249
318
 
319
+ /**
320
+ * Unique identifier in namespace/slug format.
321
+ */
250
322
  qualifiedName: string;
251
323
 
324
+ /**
325
+ * Whether the server is accessed via URL (true) or runs locally via stdio (false).
326
+ * Null if unknown.
327
+ */
252
328
  remote: boolean | null;
253
329
 
330
+ /**
331
+ * URL-friendly short name within the namespace.
332
+ */
254
333
  slug: string | null;
255
334
 
335
+ /**
336
+ * Total number of times this server has been connected to.
337
+ */
256
338
  useCount: number;
257
339
 
340
+ /**
341
+ * Whether this server has been verified by Smithery.
342
+ */
258
343
  verified: boolean;
259
344
  }
260
345
 
@@ -264,6 +349,18 @@ export interface ServerDeleteResponse {
264
349
  success: boolean;
265
350
  }
266
351
 
352
+ export interface ServerCreateByNamespaceResponse {
353
+ createdAt: string;
354
+
355
+ description: string;
356
+
357
+ displayName: string;
358
+
359
+ namespace: string;
360
+
361
+ server: string;
362
+ }
363
+
267
364
  export interface ServerGetResponse {
268
365
  connections: Array<ServerGetResponse.StdioConnection | ServerGetResponse.HTTPConnection>;
269
366
 
@@ -390,25 +487,87 @@ export namespace ServerGetByNamespaceResponse {
390
487
  }
391
488
  }
392
489
 
490
+ export interface ServerCreateParams {
491
+ /**
492
+ * Path param
493
+ */
494
+ namespace: string;
495
+
496
+ /**
497
+ * Body param
498
+ */
499
+ description?: string;
500
+
501
+ /**
502
+ * Body param
503
+ */
504
+ displayName?: string;
505
+ }
506
+
393
507
  export interface ServerListParams extends SmitheryPageParams {
508
+ /**
509
+ * Comma-separated list of fields to include in response
510
+ */
511
+ fields?: string;
512
+
513
+ /**
514
+ * Filter by specific server IDs.
515
+ */
394
516
  ids?: Array<string>;
395
517
 
518
+ /**
519
+ * Filter by deployment status. Deployed servers are hosted on Smithery
520
+ * infrastructure.
521
+ */
396
522
  isDeployed?: '0' | '1' | 'true' | 'false';
397
523
 
524
+ /**
525
+ * Filter by the namespace that owns the server.
526
+ */
527
+ namespace?: string;
528
+
529
+ /**
530
+ * Filter by the server owner's user ID.
531
+ */
398
532
  ownerId?: string;
399
533
 
534
+ /**
535
+ * Search query for full-text and semantic search across server names and
536
+ * descriptions.
537
+ */
400
538
  q?: string;
401
539
 
540
+ /**
541
+ * Exact match on the server's qualified name (e.g. "smithery/hello-world").
542
+ * Deprecated: use GET /servers/:namespace/:server instead.
543
+ */
402
544
  qualifiedName?: string;
403
545
 
546
+ /**
547
+ * Filter by remote status. Remote servers are accessed via URL; non-remote servers
548
+ * run locally via stdio.
549
+ */
404
550
  remote?: '0' | '1' | 'true' | 'false';
405
551
 
552
+ /**
553
+ * Filter by connected GitHub repository name.
554
+ */
406
555
  repoName?: string;
407
556
 
557
+ /**
558
+ * Filter by connected GitHub repository owner.
559
+ */
408
560
  repoOwner?: string;
409
561
 
562
+ /**
563
+ * Maximum number of candidate results to consider from the search index before
564
+ * pagination.
565
+ */
410
566
  topK?: number;
411
567
 
568
+ /**
569
+ * Filter to only verified servers.
570
+ */
412
571
  verified?: '0' | '1' | 'true' | 'false';
413
572
  }
414
573
 
@@ -416,6 +575,12 @@ export interface ServerDeleteParams {
416
575
  namespace: string;
417
576
  }
418
577
 
578
+ export interface ServerCreateByNamespaceParams {
579
+ description?: string;
580
+
581
+ displayName?: string;
582
+ }
583
+
419
584
  export interface ServerDownloadParams {
420
585
  namespace: string;
421
586
  }
@@ -434,13 +599,17 @@ export declare namespace Servers {
434
599
  type BuildConfig as BuildConfig,
435
600
  type DeploymentTarget as DeploymentTarget,
436
601
  type ProjectConfig as ProjectConfig,
602
+ type ServerCreateResponse as ServerCreateResponse,
437
603
  type ServerListResponse as ServerListResponse,
438
604
  type ServerDeleteResponse as ServerDeleteResponse,
605
+ type ServerCreateByNamespaceResponse as ServerCreateByNamespaceResponse,
439
606
  type ServerGetResponse as ServerGetResponse,
440
607
  type ServerGetByNamespaceResponse as ServerGetByNamespaceResponse,
441
608
  type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
609
+ type ServerCreateParams as ServerCreateParams,
442
610
  type ServerListParams as ServerListParams,
443
611
  type ServerDeleteParams as ServerDeleteParams,
612
+ type ServerCreateByNamespaceParams as ServerCreateByNamespaceParams,
444
613
  type ServerDownloadParams as ServerDownloadParams,
445
614
  type ServerGetParams as ServerGetParams,
446
615
  };
@@ -0,0 +1,21 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Reviews,
5
+ type CreateReviewRequest,
6
+ type CreateReviewResponse,
7
+ type ReviewItem,
8
+ type ReviewsListResponse,
9
+ type ReviewCreateParams,
10
+ type ReviewListParams,
11
+ type ReviewDeleteParams,
12
+ type ReviewItemsReviewsPage,
13
+ } from './reviews';
14
+ export {
15
+ Skills,
16
+ type SkillListResponse,
17
+ type SkillGetResponse,
18
+ type SkillListParams,
19
+ type SkillGetParams,
20
+ type SkillListResponsesSkillsPage,
21
+ } from './skills';