@smithery/api 0.46.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.
- package/CHANGELOG.md +9 -0
- package/README.md +5 -10
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +61 -309
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +61 -309
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +25 -112
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +25 -112
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/domains.d.mts +176 -0
- package/resources/servers/domains.d.mts.map +1 -0
- package/resources/servers/domains.d.ts +176 -0
- package/resources/servers/domains.d.ts.map +1 -0
- package/resources/servers/domains.js +67 -0
- package/resources/servers/domains.js.map +1 -0
- package/resources/servers/domains.mjs +63 -0
- package/resources/servers/domains.mjs.map +1 -0
- package/resources/servers/index.d.mts +6 -5
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +6 -5
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js +3 -1
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs +2 -1
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/logs.d.mts +5 -79
- package/resources/servers/logs.d.mts.map +1 -1
- package/resources/servers/logs.d.ts +5 -79
- package/resources/servers/logs.d.ts.map +1 -1
- package/resources/servers/logs.js +5 -21
- package/resources/servers/logs.js.map +1 -1
- package/resources/servers/logs.mjs +5 -21
- package/resources/servers/logs.mjs.map +1 -1
- package/resources/servers/repo.d.mts +13 -103
- package/resources/servers/repo.d.mts.map +1 -1
- package/resources/servers/repo.d.ts +13 -103
- package/resources/servers/repo.d.ts.map +1 -1
- package/resources/servers/repo.js +15 -61
- package/resources/servers/repo.js.map +1 -1
- package/resources/servers/repo.mjs +15 -61
- package/resources/servers/repo.mjs.map +1 -1
- package/resources/servers/secrets.d.mts +14 -85
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +14 -85
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +13 -63
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +13 -63
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/servers/servers.d.mts +30 -182
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +30 -182
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +26 -79
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +28 -81
- package/resources/servers/servers.mjs.map +1 -1
- package/src/client.ts +0 -16
- package/src/resources/index.ts +0 -8
- package/src/resources/servers/deployments.ts +69 -425
- package/src/resources/servers/domains.ts +270 -0
- package/src/resources/servers/index.ts +10 -36
- package/src/resources/servers/logs.ts +9 -118
- package/src/resources/servers/repo.ts +15 -150
- package/src/resources/servers/secrets.ts +17 -126
- package/src/resources/servers/servers.ts +51 -319
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -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
|
|
8
|
+
import { Logs } from "./logs.mjs";
|
|
7
9
|
import * as RepoAPI from "./repo.mjs";
|
|
8
|
-
import { Repo
|
|
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
|
|
24
|
-
*
|
|
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('
|
|
29
|
-
* namespace: 'namespace',
|
|
30
|
-
* });
|
|
31
|
+
* const server = await client.servers.create('qualifiedName');
|
|
31
32
|
* ```
|
|
32
33
|
*/
|
|
33
|
-
create(
|
|
34
|
-
|
|
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
|
|
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('
|
|
43
|
-
* namespace: 'namespace',
|
|
44
|
-
* });
|
|
42
|
+
* const server = await client.servers.update('qualifiedName');
|
|
45
43
|
* ```
|
|
46
44
|
*/
|
|
47
|
-
update(
|
|
48
|
-
|
|
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
|
-
*
|
|
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('
|
|
73
|
-
* namespace: 'namespace',
|
|
74
|
-
* });
|
|
69
|
+
* const server = await client.servers.delete('qualifiedName');
|
|
75
70
|
* ```
|
|
76
71
|
*/
|
|
77
|
-
delete(
|
|
78
|
-
|
|
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
|
-
*
|
|
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.
|
|
89
|
-
* '
|
|
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(
|
|
110
|
-
|
|
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
|
-
*
|
|
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('
|
|
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
|
-
|
|
158
|
-
return this._client.
|
|
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,
|
|
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,EAWL,WAAW,GAKZ;OACM,KAAK,UAAU;OACf,EAQL,OAAO,GACR;OACM,KAAK,OAAO;OACZ,EAAkC,IAAI,EAAE;OACxC,KAAK,OAAO;OACZ,EAAE,IAAI,EAAuE;OAC7E,KAAK,UAAU;OACf,EAML,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,CA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,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
|
@@ -63,21 +63,13 @@ import {
|
|
|
63
63
|
BuildConfig,
|
|
64
64
|
DeploymentTarget,
|
|
65
65
|
ProjectConfig,
|
|
66
|
-
ServerCreateByNamespaceParams,
|
|
67
|
-
ServerCreateByNamespaceResponse,
|
|
68
66
|
ServerCreateParams,
|
|
69
67
|
ServerCreateResponse,
|
|
70
|
-
ServerDeleteParams,
|
|
71
68
|
ServerDeleteResponse,
|
|
72
|
-
ServerDownloadParams,
|
|
73
|
-
ServerGetByNamespaceResponse,
|
|
74
|
-
ServerGetParams,
|
|
75
69
|
ServerGetResponse,
|
|
76
70
|
ServerListParams,
|
|
77
71
|
ServerListResponse,
|
|
78
72
|
ServerListResponsesSmitheryPage,
|
|
79
|
-
ServerUpdateByNamespaceParams,
|
|
80
|
-
ServerUpdateByNamespaceResponse,
|
|
81
73
|
ServerUpdateParams,
|
|
82
74
|
ServerUpdateResponse,
|
|
83
75
|
Servers,
|
|
@@ -856,19 +848,11 @@ export declare namespace Smithery {
|
|
|
856
848
|
type ServerUpdateResponse as ServerUpdateResponse,
|
|
857
849
|
type ServerListResponse as ServerListResponse,
|
|
858
850
|
type ServerDeleteResponse as ServerDeleteResponse,
|
|
859
|
-
type ServerCreateByNamespaceResponse as ServerCreateByNamespaceResponse,
|
|
860
851
|
type ServerGetResponse as ServerGetResponse,
|
|
861
|
-
type ServerGetByNamespaceResponse as ServerGetByNamespaceResponse,
|
|
862
|
-
type ServerUpdateByNamespaceResponse as ServerUpdateByNamespaceResponse,
|
|
863
852
|
type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
|
|
864
853
|
type ServerCreateParams as ServerCreateParams,
|
|
865
854
|
type ServerUpdateParams as ServerUpdateParams,
|
|
866
855
|
type ServerListParams as ServerListParams,
|
|
867
|
-
type ServerDeleteParams as ServerDeleteParams,
|
|
868
|
-
type ServerCreateByNamespaceParams as ServerCreateByNamespaceParams,
|
|
869
|
-
type ServerDownloadParams as ServerDownloadParams,
|
|
870
|
-
type ServerGetParams as ServerGetParams,
|
|
871
|
-
type ServerUpdateByNamespaceParams as ServerUpdateByNamespaceParams,
|
|
872
856
|
};
|
|
873
857
|
|
|
874
858
|
export { Uplink as Uplink, type UplinkCreateTokenResponse as UplinkCreateTokenResponse };
|
package/src/resources/index.ts
CHANGED
|
@@ -31,18 +31,10 @@ export {
|
|
|
31
31
|
type ServerUpdateResponse,
|
|
32
32
|
type ServerListResponse,
|
|
33
33
|
type ServerDeleteResponse,
|
|
34
|
-
type ServerCreateByNamespaceResponse,
|
|
35
34
|
type ServerGetResponse,
|
|
36
|
-
type ServerGetByNamespaceResponse,
|
|
37
|
-
type ServerUpdateByNamespaceResponse,
|
|
38
35
|
type ServerCreateParams,
|
|
39
36
|
type ServerUpdateParams,
|
|
40
37
|
type ServerListParams,
|
|
41
|
-
type ServerDeleteParams,
|
|
42
|
-
type ServerCreateByNamespaceParams,
|
|
43
|
-
type ServerDownloadParams,
|
|
44
|
-
type ServerGetParams,
|
|
45
|
-
type ServerUpdateByNamespaceParams,
|
|
46
38
|
type ServerListResponsesSmitheryPage,
|
|
47
39
|
} from './servers/servers';
|
|
48
40
|
export {
|