@smithery/api 0.45.0 → 0.47.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 (184) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +5 -10
  3. package/client.d.mts +5 -5
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +5 -5
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -3
  10. package/client.mjs.map +1 -1
  11. package/lib/mcp-transport.js +3 -3
  12. package/lib/mcp-transport.js.map +1 -1
  13. package/lib/mcp-transport.mjs +3 -3
  14. package/lib/mcp-transport.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resources/{experimental/connect → connections}/connections.d.mts +24 -26
  17. package/resources/connections/connections.d.mts.map +1 -0
  18. package/resources/{experimental/connect → connections}/connections.d.ts +24 -26
  19. package/resources/connections/connections.d.ts.map +1 -0
  20. package/resources/{experimental/connect → connections}/connections.js +27 -25
  21. package/resources/connections/connections.js.map +1 -0
  22. package/resources/{experimental/connect → connections}/connections.mjs +26 -25
  23. package/resources/connections/connections.mjs.map +1 -0
  24. package/resources/{experimental/connect → connections}/index.d.mts +0 -1
  25. package/resources/connections/index.d.mts.map +1 -0
  26. package/resources/{experimental/connect → connections}/index.d.ts +0 -1
  27. package/resources/connections/index.d.ts.map +1 -0
  28. package/resources/{experimental/connect → connections}/index.js +1 -3
  29. package/resources/connections/index.js.map +1 -0
  30. package/resources/{experimental/connect → connections}/index.mjs +0 -1
  31. package/resources/connections/index.mjs.map +1 -0
  32. package/resources/{experimental/connect → connections}/mcp.d.mts +7 -8
  33. package/resources/connections/mcp.d.mts.map +1 -0
  34. package/resources/{experimental/connect → connections}/mcp.d.ts +7 -8
  35. package/resources/connections/mcp.d.ts.map +1 -0
  36. package/resources/{experimental/connect → connections}/mcp.js +6 -7
  37. package/resources/connections/mcp.js.map +1 -0
  38. package/resources/{experimental/connect → connections}/mcp.mjs +6 -7
  39. package/resources/connections/mcp.mjs.map +1 -0
  40. package/resources/connections.d.mts +2 -0
  41. package/resources/connections.d.mts.map +1 -0
  42. package/resources/connections.d.ts +2 -0
  43. package/resources/connections.d.ts.map +1 -0
  44. package/resources/{experimental.js → connections.js} +2 -2
  45. package/resources/connections.js.map +1 -0
  46. package/{src/resources/experimental.ts → resources/connections.mjs} +2 -2
  47. package/resources/connections.mjs.map +1 -0
  48. package/resources/index.d.mts +2 -2
  49. package/resources/index.d.mts.map +1 -1
  50. package/resources/index.d.ts +2 -2
  51. package/resources/index.d.ts.map +1 -1
  52. package/resources/index.js +3 -3
  53. package/resources/index.js.map +1 -1
  54. package/resources/index.mjs +1 -1
  55. package/resources/index.mjs.map +1 -1
  56. package/resources/servers/deployments.d.mts +61 -309
  57. package/resources/servers/deployments.d.mts.map +1 -1
  58. package/resources/servers/deployments.d.ts +61 -309
  59. package/resources/servers/deployments.d.ts.map +1 -1
  60. package/resources/servers/deployments.js +25 -112
  61. package/resources/servers/deployments.js.map +1 -1
  62. package/resources/servers/deployments.mjs +25 -112
  63. package/resources/servers/deployments.mjs.map +1 -1
  64. package/resources/servers/domains.d.mts +176 -0
  65. package/resources/servers/domains.d.mts.map +1 -0
  66. package/resources/servers/domains.d.ts +176 -0
  67. package/resources/servers/domains.d.ts.map +1 -0
  68. package/resources/servers/domains.js +67 -0
  69. package/resources/servers/domains.js.map +1 -0
  70. package/resources/servers/domains.mjs +63 -0
  71. package/resources/servers/domains.mjs.map +1 -0
  72. package/resources/servers/index.d.mts +6 -5
  73. package/resources/servers/index.d.mts.map +1 -1
  74. package/resources/servers/index.d.ts +6 -5
  75. package/resources/servers/index.d.ts.map +1 -1
  76. package/resources/servers/index.js +3 -1
  77. package/resources/servers/index.js.map +1 -1
  78. package/resources/servers/index.mjs +2 -1
  79. package/resources/servers/index.mjs.map +1 -1
  80. package/resources/servers/logs.d.mts +5 -79
  81. package/resources/servers/logs.d.mts.map +1 -1
  82. package/resources/servers/logs.d.ts +5 -79
  83. package/resources/servers/logs.d.ts.map +1 -1
  84. package/resources/servers/logs.js +5 -21
  85. package/resources/servers/logs.js.map +1 -1
  86. package/resources/servers/logs.mjs +5 -21
  87. package/resources/servers/logs.mjs.map +1 -1
  88. package/resources/servers/repo.d.mts +13 -103
  89. package/resources/servers/repo.d.mts.map +1 -1
  90. package/resources/servers/repo.d.ts +13 -103
  91. package/resources/servers/repo.d.ts.map +1 -1
  92. package/resources/servers/repo.js +15 -61
  93. package/resources/servers/repo.js.map +1 -1
  94. package/resources/servers/repo.mjs +15 -61
  95. package/resources/servers/repo.mjs.map +1 -1
  96. package/resources/servers/secrets.d.mts +14 -85
  97. package/resources/servers/secrets.d.mts.map +1 -1
  98. package/resources/servers/secrets.d.ts +14 -85
  99. package/resources/servers/secrets.d.ts.map +1 -1
  100. package/resources/servers/secrets.js +13 -63
  101. package/resources/servers/secrets.js.map +1 -1
  102. package/resources/servers/secrets.mjs +13 -63
  103. package/resources/servers/secrets.mjs.map +1 -1
  104. package/resources/servers/servers.d.mts +30 -182
  105. package/resources/servers/servers.d.mts.map +1 -1
  106. package/resources/servers/servers.d.ts +30 -182
  107. package/resources/servers/servers.d.ts.map +1 -1
  108. package/resources/servers/servers.js +26 -79
  109. package/resources/servers/servers.js.map +1 -1
  110. package/resources/servers/servers.mjs +28 -81
  111. package/resources/servers/servers.mjs.map +1 -1
  112. package/src/client.ts +26 -20
  113. package/src/lib/mcp-transport.ts +4 -4
  114. package/src/resources/{experimental/connect → connections}/connections.ts +34 -27
  115. package/src/resources/{experimental/connect → connections}/index.ts +0 -1
  116. package/src/resources/{experimental/connect → connections}/mcp.ts +8 -9
  117. package/src/resources/{experimental/connect.ts → connections.ts} +1 -1
  118. package/src/resources/index.ts +12 -9
  119. package/src/resources/servers/deployments.ts +69 -425
  120. package/src/resources/servers/domains.ts +270 -0
  121. package/src/resources/servers/index.ts +10 -36
  122. package/src/resources/servers/logs.ts +9 -118
  123. package/src/resources/servers/repo.ts +15 -150
  124. package/src/resources/servers/secrets.ts +17 -126
  125. package/src/resources/servers/servers.ts +51 -319
  126. package/src/version.ts +1 -1
  127. package/version.d.mts +1 -1
  128. package/version.d.ts +1 -1
  129. package/version.js +1 -1
  130. package/version.mjs +1 -1
  131. package/resources/experimental/connect/connect.d.mts +0 -14
  132. package/resources/experimental/connect/connect.d.mts.map +0 -1
  133. package/resources/experimental/connect/connect.d.ts +0 -14
  134. package/resources/experimental/connect/connect.d.ts.map +0 -1
  135. package/resources/experimental/connect/connect.js +0 -21
  136. package/resources/experimental/connect/connect.js.map +0 -1
  137. package/resources/experimental/connect/connect.mjs +0 -16
  138. package/resources/experimental/connect/connect.mjs.map +0 -1
  139. package/resources/experimental/connect/connections.d.mts.map +0 -1
  140. package/resources/experimental/connect/connections.d.ts.map +0 -1
  141. package/resources/experimental/connect/connections.js.map +0 -1
  142. package/resources/experimental/connect/connections.mjs.map +0 -1
  143. package/resources/experimental/connect/index.d.mts.map +0 -1
  144. package/resources/experimental/connect/index.d.ts.map +0 -1
  145. package/resources/experimental/connect/index.js.map +0 -1
  146. package/resources/experimental/connect/index.mjs.map +0 -1
  147. package/resources/experimental/connect/mcp.d.mts.map +0 -1
  148. package/resources/experimental/connect/mcp.d.ts.map +0 -1
  149. package/resources/experimental/connect/mcp.js.map +0 -1
  150. package/resources/experimental/connect/mcp.mjs.map +0 -1
  151. package/resources/experimental/connect.d.mts +0 -2
  152. package/resources/experimental/connect.d.mts.map +0 -1
  153. package/resources/experimental/connect.d.ts +0 -2
  154. package/resources/experimental/connect.d.ts.map +0 -1
  155. package/resources/experimental/connect.js +0 -6
  156. package/resources/experimental/connect.js.map +0 -1
  157. package/resources/experimental/connect.mjs +0 -3
  158. package/resources/experimental/connect.mjs.map +0 -1
  159. package/resources/experimental/experimental.d.mts +0 -10
  160. package/resources/experimental/experimental.d.mts.map +0 -1
  161. package/resources/experimental/experimental.d.ts +0 -10
  162. package/resources/experimental/experimental.d.ts.map +0 -1
  163. package/resources/experimental/experimental.js +0 -17
  164. package/resources/experimental/experimental.js.map +0 -1
  165. package/resources/experimental/experimental.mjs +0 -12
  166. package/resources/experimental/experimental.mjs.map +0 -1
  167. package/resources/experimental/index.d.mts +0 -3
  168. package/resources/experimental/index.d.mts.map +0 -1
  169. package/resources/experimental/index.d.ts +0 -3
  170. package/resources/experimental/index.d.ts.map +0 -1
  171. package/resources/experimental/index.js +0 -9
  172. package/resources/experimental/index.js.map +0 -1
  173. package/resources/experimental/index.mjs +0 -4
  174. package/resources/experimental/index.mjs.map +0 -1
  175. package/resources/experimental.d.mts +0 -2
  176. package/resources/experimental.d.mts.map +0 -1
  177. package/resources/experimental.d.ts +0 -2
  178. package/resources/experimental.d.ts.map +0 -1
  179. package/resources/experimental.js.map +0 -1
  180. package/resources/experimental.mjs +0 -3
  181. package/resources/experimental.mjs.map +0 -1
  182. package/src/resources/experimental/connect/connect.ts +0 -48
  183. package/src/resources/experimental/experimental.ts +0 -15
  184. package/src/resources/experimental/index.ts +0 -4
@@ -2,10 +2,12 @@
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import * as DeploymentsAPI from "./deployments.mjs";
4
4
  import { Deployments, } from "./deployments.mjs";
5
+ import * as DomainsAPI from "./domains.mjs";
6
+ import { Domains, } from "./domains.mjs";
5
7
  import * as LogsAPI from "./logs.mjs";
6
- import { Logs, } from "./logs.mjs";
8
+ import { Logs } from "./logs.mjs";
7
9
  import * as RepoAPI from "./repo.mjs";
8
- import { Repo, } from "./repo.mjs";
10
+ import { Repo } from "./repo.mjs";
9
11
  import * as SecretsAPI from "./secrets.mjs";
10
12
  import { Secrets, } from "./secrets.mjs";
11
13
  import { SmitheryPage } from "../../core/pagination.mjs";
@@ -18,35 +20,30 @@ export class Servers extends APIResource {
18
20
  this.logs = new LogsAPI.Logs(this._client);
19
21
  this.secrets = new SecretsAPI.Secrets(this._client);
20
22
  this.repo = new RepoAPI.Repo(this._client);
23
+ this.domains = new DomainsAPI.Domains(this._client);
21
24
  }
22
25
  /**
23
- * Create a new server under the specified namespace. This endpoint is idempotent -
24
- * if the server already exists and is owned by the user, returns success.
26
+ * Create a new server. Idempotent returns success if the server already exists
27
+ * and is owned by the caller.
25
28
  *
26
29
  * @example
27
30
  * ```ts
28
- * const server = await client.servers.create('server', {
29
- * namespace: 'namespace',
30
- * });
31
+ * const server = await client.servers.create('qualifiedName');
31
32
  * ```
32
33
  */
33
- create(server, params, options) {
34
- const { namespace, ...body } = params;
35
- return this._client.put(path `/servers/${namespace}/${server}`, { body, ...options });
34
+ create(qualifiedName, body = {}, options) {
35
+ return this._client.put(path `/servers/${qualifiedName}`, { body, ...options });
36
36
  }
37
37
  /**
38
- * Update metadata for a server by namespace and server name.
38
+ * Update server metadata such as display name, description, icon, or visibility.
39
39
  *
40
40
  * @example
41
41
  * ```ts
42
- * const server = await client.servers.update('server', {
43
- * namespace: 'namespace',
44
- * });
42
+ * const server = await client.servers.update('qualifiedName');
45
43
  * ```
46
44
  */
47
- update(server, params, options) {
48
- const { namespace, ...body } = params;
49
- return this._client.patch(path `/servers/${namespace}/${server}`, { body, ...options });
45
+ update(qualifiedName, body = {}, options) {
46
+ return this._client.patch(path `/servers/${qualifiedName}`, { body, ...options });
50
47
  }
51
48
  /**
52
49
  * Search and browse public MCP servers in the Smithery registry. Supports
@@ -65,101 +62,51 @@ export class Servers extends APIResource {
65
62
  return this._client.getAPIList('/servers', (SmitheryPage), { query, ...options });
66
63
  }
67
64
  /**
68
- * Delete a server by namespace and server name.
65
+ * Permanently delete a server, its releases, and associated resources.
69
66
  *
70
67
  * @example
71
68
  * ```ts
72
- * const server = await client.servers.delete('server', {
73
- * namespace: 'namespace',
74
- * });
69
+ * const server = await client.servers.delete('qualifiedName');
75
70
  * ```
76
71
  */
77
- delete(server, params, options) {
78
- const { namespace } = params;
79
- return this._client.delete(path `/servers/${namespace}/${server}`, options);
72
+ delete(qualifiedName, options) {
73
+ return this._client.delete(path `/servers/${qualifiedName}`, options);
80
74
  }
81
75
  /**
82
- * Create a namespace-only server where the namespace is also the server
83
- * identifier. This endpoint is idempotent - if the server already exists and is
84
- * owned by the user, returns success.
76
+ * Download the MCPB bundle for the latest successful stdio release.
85
77
  *
86
78
  * @example
87
79
  * ```ts
88
- * const response = await client.servers.createByNamespace(
89
- * 'namespace',
80
+ * const response = await client.servers.download(
81
+ * 'qualifiedName',
90
82
  * );
91
- * ```
92
- */
93
- createByNamespace(namespace, body = {}, options) {
94
- return this._client.put(path `/servers/${namespace}`, { body, ...options });
95
- }
96
- /**
97
- * Download the MCPB bundle for the latest successful stdio deployment
98
- *
99
- * @example
100
- * ```ts
101
- * const response = await client.servers.download('server', {
102
- * namespace: 'namespace',
103
- * });
104
83
  *
105
84
  * const content = await response.blob();
106
85
  * console.log(content);
107
86
  * ```
108
87
  */
109
- download(server, params, options) {
110
- const { namespace } = params;
111
- return this._client.get(path `/servers/${namespace}/${server}/download`, {
88
+ download(qualifiedName, options) {
89
+ return this._client.get(path `/servers/${qualifiedName}/download`, {
112
90
  ...options,
113
91
  headers: buildHeaders([{ Accept: 'application/zip' }, options?.headers]),
114
92
  __binaryResponse: true,
115
93
  });
116
94
  }
117
95
  /**
118
- * Get a single server by its namespace and server name.
96
+ * Retrieve server details including connections, tools, and security status.
119
97
  *
120
98
  * @example
121
99
  * ```ts
122
- * const server = await client.servers.get('server', {
123
- * namespace: 'namespace',
124
- * });
125
- * ```
126
- */
127
- get(server, params, options) {
128
- const { namespace } = params;
129
- return this._client.get(path `/servers/${namespace}/${server}`, options);
130
- }
131
- /**
132
- * Get a server by namespace name. Used for namespace-only servers where the
133
- * namespace name is also the server name. Also handles deprecated encoded
134
- * patterns.
135
- *
136
- * @example
137
- * ```ts
138
- * const response = await client.servers.getByNamespace(
139
- * 'namespace',
140
- * );
141
- * ```
142
- */
143
- getByNamespace(namespace, options) {
144
- return this._client.get(path `/servers/${namespace}`, options);
145
- }
146
- /**
147
- * Update metadata for a namespace-only server where the namespace is also the
148
- * server identifier.
149
- *
150
- * @example
151
- * ```ts
152
- * const response = await client.servers.updateByNamespace(
153
- * 'namespace',
154
- * );
100
+ * const server = await client.servers.get('qualifiedName');
155
101
  * ```
156
102
  */
157
- updateByNamespace(namespace, body = {}, options) {
158
- return this._client.patch(path `/servers/${namespace}`, { body, ...options });
103
+ get(qualifiedName, options) {
104
+ return this._client.get(path `/servers/${qualifiedName}`, options);
159
105
  }
160
106
  }
161
107
  Servers.Deployments = Deployments;
162
108
  Servers.Logs = Logs;
163
109
  Servers.Secrets = Secrets;
164
110
  Servers.Repo = Repo;
111
+ Servers.Domains = Domains;
165
112
  //# sourceMappingURL=servers.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"servers.mjs","sourceRoot":"","sources":["../../src/resources/servers/servers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAqBL,WAAW,GAKZ;OACM,KAAK,OAAO;OACZ,EAKL,IAAI,GACL;OACM,KAAK,OAAO;OACZ,EACL,IAAI,GAWL;OACM,KAAK,UAAU;OACf,EAYL,OAAO,GACR;OAEM,EAAe,YAAY,EAA2B;OACtD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2KtD,CAAC;IAzKC;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,SAA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ED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,YAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,aAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,aAAa,WAAW,EAAE;YAChE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,aAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAgTD,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAClC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;AAC1B,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;AACpB,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC"}
package/src/client.ts CHANGED
@@ -38,7 +38,18 @@ import {
38
38
  Tokens,
39
39
  } from './resources/tokens';
40
40
  import { Uplink, UplinkCreateTokenResponse } from './resources/uplink';
41
- import { Experimental } from './resources/experimental/experimental';
41
+ import {
42
+ Connection,
43
+ ConnectionCreateParams,
44
+ ConnectionDeleteParams,
45
+ ConnectionDeleteResponse,
46
+ ConnectionGetParams,
47
+ ConnectionListParams,
48
+ ConnectionSetParams,
49
+ Connections,
50
+ ConnectionsListResponse,
51
+ CreateConnectionRequest,
52
+ } from './resources/connections/connections';
42
53
  import {
43
54
  NamespaceCreateResponse,
44
55
  NamespaceDeleteResponse,
@@ -52,21 +63,13 @@ import {
52
63
  BuildConfig,
53
64
  DeploymentTarget,
54
65
  ProjectConfig,
55
- ServerCreateByNamespaceParams,
56
- ServerCreateByNamespaceResponse,
57
66
  ServerCreateParams,
58
67
  ServerCreateResponse,
59
- ServerDeleteParams,
60
68
  ServerDeleteResponse,
61
- ServerDownloadParams,
62
- ServerGetByNamespaceResponse,
63
- ServerGetParams,
64
69
  ServerGetResponse,
65
70
  ServerListParams,
66
71
  ServerListResponse,
67
72
  ServerListResponsesSmitheryPage,
68
- ServerUpdateByNamespaceParams,
69
- ServerUpdateByNamespaceResponse,
70
73
  ServerUpdateParams,
71
74
  ServerUpdateResponse,
72
75
  Servers,
@@ -805,7 +808,7 @@ export class Smithery {
805
808
  skills: API.Skills = new API.Skills(this);
806
809
  namespaces: API.Namespaces = new API.Namespaces(this);
807
810
  tokens: API.Tokens = new API.Tokens(this);
808
- experimental: API.Experimental = new API.Experimental(this);
811
+ connections: API.Connections = new API.Connections(this);
809
812
  }
810
813
 
811
814
  Smithery.Health = Health;
@@ -814,7 +817,7 @@ Smithery.Uplink = Uplink;
814
817
  Smithery.Skills = Skills;
815
818
  Smithery.Namespaces = Namespaces;
816
819
  Smithery.Tokens = Tokens;
817
- Smithery.Experimental = Experimental;
820
+ Smithery.Connections = Connections;
818
821
 
819
822
  export declare namespace Smithery {
820
823
  export type RequestOptions = Opts.RequestOptions;
@@ -845,19 +848,11 @@ export declare namespace Smithery {
845
848
  type ServerUpdateResponse as ServerUpdateResponse,
846
849
  type ServerListResponse as ServerListResponse,
847
850
  type ServerDeleteResponse as ServerDeleteResponse,
848
- type ServerCreateByNamespaceResponse as ServerCreateByNamespaceResponse,
849
851
  type ServerGetResponse as ServerGetResponse,
850
- type ServerGetByNamespaceResponse as ServerGetByNamespaceResponse,
851
- type ServerUpdateByNamespaceResponse as ServerUpdateByNamespaceResponse,
852
852
  type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
853
853
  type ServerCreateParams as ServerCreateParams,
854
854
  type ServerUpdateParams as ServerUpdateParams,
855
855
  type ServerListParams as ServerListParams,
856
- type ServerDeleteParams as ServerDeleteParams,
857
- type ServerCreateByNamespaceParams as ServerCreateByNamespaceParams,
858
- type ServerDownloadParams as ServerDownloadParams,
859
- type ServerGetParams as ServerGetParams,
860
- type ServerUpdateByNamespaceParams as ServerUpdateByNamespaceParams,
861
856
  };
862
857
 
863
858
  export { Uplink as Uplink, type UplinkCreateTokenResponse as UplinkCreateTokenResponse };
@@ -897,5 +892,16 @@ export declare namespace Smithery {
897
892
  type TokenCreateParams as TokenCreateParams,
898
893
  };
899
894
 
900
- export { Experimental as Experimental };
895
+ export {
896
+ Connections as Connections,
897
+ type Connection as Connection,
898
+ type ConnectionsListResponse as ConnectionsListResponse,
899
+ type CreateConnectionRequest as CreateConnectionRequest,
900
+ type ConnectionDeleteResponse as ConnectionDeleteResponse,
901
+ type ConnectionCreateParams as ConnectionCreateParams,
902
+ type ConnectionListParams as ConnectionListParams,
903
+ type ConnectionDeleteParams as ConnectionDeleteParams,
904
+ type ConnectionGetParams as ConnectionGetParams,
905
+ type ConnectionSetParams as ConnectionSetParams,
906
+ };
901
907
  }
@@ -33,7 +33,7 @@
33
33
 
34
34
  import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
35
35
  import { Smithery } from '../client';
36
- import type { Connection } from '../resources/experimental/connect/connections';
36
+ import type { Connection } from '../resources/connections';
37
37
 
38
38
  export interface CreateConnectionOptions {
39
39
  /**
@@ -200,15 +200,15 @@ async function resolveConnection(
200
200
  if (connectionId) {
201
201
  // Connection ID provided: try to get, or create if mcpUrl is provided
202
202
  try {
203
- return await client.experimental.connect.connections.get(connectionId, { namespace });
203
+ return await client.connections.get(connectionId, { namespace });
204
204
  } catch (error) {
205
205
  if (mcpUrl) {
206
- return await client.experimental.connect.connections.set(connectionId, { namespace, mcpUrl });
206
+ return await client.connections.set(connectionId, { namespace, mcpUrl });
207
207
  }
208
208
  throw error;
209
209
  }
210
210
  }
211
211
 
212
212
  // No connection ID: create a new connection with auto-generated ID
213
- return await client.experimental.connect.connections.create(namespace, { mcpUrl: mcpUrl! });
213
+ return await client.connections.create(namespace, { mcpUrl: mcpUrl! });
214
214
  }
@@ -1,22 +1,25 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { RequestOptions } from '../../../internal/request-options';
6
- import { path } from '../../../internal/utils/path';
3
+ import { APIResource } from '../../core/resource';
4
+ import * as McpAPI from './mcp';
5
+ import { JsonRpcRequest, JsonRpcResponse, Mcp, McpCallParams } from './mcp';
6
+ import { APIPromise } from '../../core/api-promise';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { path } from '../../internal/utils/path';
7
9
 
8
10
  export class Connections extends APIResource {
11
+ mcp: McpAPI.Mcp = new McpAPI.Mcp(this._client);
12
+
9
13
  /**
10
14
  * Create a new MCP connection with an auto-generated ID. Requires API key and
11
15
  * namespace ownership.
12
16
  *
13
17
  * @example
14
18
  * ```ts
15
- * const connection =
16
- * await client.experimental.connect.connections.create(
17
- * 'namespace',
18
- * { mcpUrl: 'https://mcp.example.com/sse' },
19
- * );
19
+ * const connection = await client.connections.create(
20
+ * 'namespace',
21
+ * { mcpUrl: 'https://mcp.example.com/sse' },
22
+ * );
20
23
  * ```
21
24
  */
22
25
  create(namespace: string, body: ConnectionCreateParams, options?: RequestOptions): APIPromise<Connection> {
@@ -30,9 +33,7 @@ export class Connections extends APIResource {
30
33
  * @example
31
34
  * ```ts
32
35
  * const connectionsListResponse =
33
- * await client.experimental.connect.connections.list(
34
- * 'namespace',
35
- * );
36
+ * await client.connections.list('namespace');
36
37
  * ```
37
38
  */
38
39
  list(
@@ -49,11 +50,10 @@ export class Connections extends APIResource {
49
50
  *
50
51
  * @example
51
52
  * ```ts
52
- * const connection =
53
- * await client.experimental.connect.connections.delete(
54
- * 'connectionId',
55
- * { namespace: 'namespace' },
56
- * );
53
+ * const connection = await client.connections.delete(
54
+ * 'connectionId',
55
+ * { namespace: 'namespace' },
56
+ * );
57
57
  * ```
58
58
  */
59
59
  delete(
@@ -71,11 +71,10 @@ export class Connections extends APIResource {
71
71
  *
72
72
  * @example
73
73
  * ```ts
74
- * const connection =
75
- * await client.experimental.connect.connections.get(
76
- * 'connectionId',
77
- * { namespace: 'namespace' },
78
- * );
74
+ * const connection = await client.connections.get(
75
+ * 'connectionId',
76
+ * { namespace: 'namespace' },
77
+ * );
79
78
  * ```
80
79
  */
81
80
  get(connectionID: string, params: ConnectionGetParams, options?: RequestOptions): APIPromise<Connection> {
@@ -91,11 +90,10 @@ export class Connections extends APIResource {
91
90
  *
92
91
  * @example
93
92
  * ```ts
94
- * const connection =
95
- * await client.experimental.connect.connections.set(
96
- * 'connectionId',
97
- * { namespace: 'namespace' },
98
- * );
93
+ * const connection = await client.connections.set(
94
+ * 'connectionId',
95
+ * { namespace: 'namespace' },
96
+ * );
99
97
  * ```
100
98
  */
101
99
  set(connectionID: string, params: ConnectionSetParams, options?: RequestOptions): APIPromise<Connection> {
@@ -314,6 +312,8 @@ export interface ConnectionSetParams {
314
312
  name?: string;
315
313
  }
316
314
 
315
+ Connections.Mcp = Mcp;
316
+
317
317
  export declare namespace Connections {
318
318
  export {
319
319
  type Connection as Connection,
@@ -326,4 +326,11 @@ export declare namespace Connections {
326
326
  type ConnectionGetParams as ConnectionGetParams,
327
327
  type ConnectionSetParams as ConnectionSetParams,
328
328
  };
329
+
330
+ export {
331
+ Mcp as Mcp,
332
+ type JsonRpcRequest as JsonRpcRequest,
333
+ type JsonRpcResponse as JsonRpcResponse,
334
+ type McpCallParams as McpCallParams,
335
+ };
329
336
  }
@@ -1,6 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Connect } from './connect';
4
3
  export {
5
4
  Connections,
6
5
  type Connection,
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../../core/resource';
4
- import { APIPromise } from '../../../core/api-promise';
5
- import { RequestOptions } from '../../../internal/request-options';
6
- import { path } from '../../../internal/utils/path';
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { RequestOptions } from '../../internal/request-options';
6
+ import { path } from '../../internal/utils/path';
7
7
 
8
8
  export class Mcp extends APIResource {
9
9
  /**
@@ -14,11 +14,10 @@ export class Mcp extends APIResource {
14
14
  *
15
15
  * @example
16
16
  * ```ts
17
- * const jsonRpcResponse =
18
- * await client.experimental.connect.mcp.call(
19
- * 'connectionId',
20
- * { namespace: 'namespace' },
21
- * );
17
+ * const jsonRpcResponse = await client.connections.mcp.call(
18
+ * 'connectionId',
19
+ * { namespace: 'namespace' },
20
+ * );
22
21
  * ```
23
22
  */
24
23
  call(connectionID: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse> {
@@ -1,3 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export * from './connect/index';
3
+ export * from './connections/index';
@@ -1,6 +1,17 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Experimental } from './experimental/experimental';
3
+ export {
4
+ Connections,
5
+ type Connection,
6
+ type ConnectionsListResponse,
7
+ type CreateConnectionRequest,
8
+ type ConnectionDeleteResponse,
9
+ type ConnectionCreateParams,
10
+ type ConnectionListParams,
11
+ type ConnectionDeleteParams,
12
+ type ConnectionGetParams,
13
+ type ConnectionSetParams,
14
+ } from './connections/connections';
4
15
  export { Health, type HealthCheckResponse } from './health';
5
16
  export {
6
17
  Namespaces,
@@ -20,18 +31,10 @@ export {
20
31
  type ServerUpdateResponse,
21
32
  type ServerListResponse,
22
33
  type ServerDeleteResponse,
23
- type ServerCreateByNamespaceResponse,
24
34
  type ServerGetResponse,
25
- type ServerGetByNamespaceResponse,
26
- type ServerUpdateByNamespaceResponse,
27
35
  type ServerCreateParams,
28
36
  type ServerUpdateParams,
29
37
  type ServerListParams,
30
- type ServerDeleteParams,
31
- type ServerCreateByNamespaceParams,
32
- type ServerDownloadParams,
33
- type ServerGetParams,
34
- type ServerUpdateByNamespaceParams,
35
38
  type ServerListResponsesSmitheryPage,
36
39
  } from './servers/servers';
37
40
  export {