@smithery/api 0.24.0 → 0.26.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 +22 -0
- package/client.d.mts +9 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -7
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +14 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +14 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +25 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +23 -0
- package/core/pagination.mjs.map +1 -1
- package/lib/mcp-transport.d.mts +20 -15
- package/lib/mcp-transport.d.mts.map +1 -1
- package/lib/mcp-transport.d.ts +20 -15
- package/lib/mcp-transport.d.ts.map +1 -1
- package/lib/mcp-transport.js +39 -19
- package/lib/mcp-transport.js.map +1 -1
- package/lib/mcp-transport.mjs +37 -17
- package/lib/mcp-transport.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/connect/connect.d.mts +6 -2
- package/resources/beta/connect/connect.d.mts.map +1 -1
- package/resources/beta/connect/connect.d.ts +6 -2
- package/resources/beta/connect/connect.d.ts.map +1 -1
- package/resources/beta/connect/connect.js +4 -0
- package/resources/beta/connect/connect.js.map +1 -1
- package/resources/beta/connect/connect.mjs +4 -0
- package/resources/beta/connect/connect.mjs.map +1 -1
- package/resources/beta/connect/connections.d.mts +38 -24
- package/resources/beta/connect/connections.d.mts.map +1 -1
- package/resources/beta/connect/connections.d.ts +38 -24
- package/resources/beta/connect/connections.d.ts.map +1 -1
- package/resources/beta/connect/connections.js +21 -21
- package/resources/beta/connect/connections.js.map +1 -1
- package/resources/beta/connect/connections.mjs +21 -21
- package/resources/beta/connect/connections.mjs.map +1 -1
- package/resources/beta/connect/index.d.mts +2 -1
- package/resources/beta/connect/index.d.mts.map +1 -1
- package/resources/beta/connect/index.d.ts +2 -1
- package/resources/beta/connect/index.d.ts.map +1 -1
- package/resources/beta/connect/index.js +3 -1
- package/resources/beta/connect/index.js.map +1 -1
- package/resources/beta/connect/index.mjs +1 -0
- package/resources/beta/connect/index.mjs.map +1 -1
- package/resources/beta/connect/tools.d.mts +51 -0
- package/resources/beta/connect/tools.d.mts.map +1 -0
- package/resources/beta/connect/tools.d.ts +51 -0
- package/resources/beta/connect/tools.d.ts.map +1 -0
- package/resources/beta/connect/tools.js +26 -0
- package/resources/beta/connect/tools.js.map +1 -0
- package/resources/beta/connect/tools.mjs +22 -0
- package/resources/beta/connect/tools.mjs.map +1 -0
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/namespaces.d.mts +11 -16
- package/resources/namespaces.d.mts.map +1 -1
- package/resources/namespaces.d.ts +11 -16
- package/resources/namespaces.d.ts.map +1 -1
- package/resources/namespaces.js +12 -15
- package/resources/namespaces.js.map +1 -1
- package/resources/namespaces.mjs +12 -15
- package/resources/namespaces.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +30 -27
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +30 -27
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +7 -7
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +7 -7
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/index.d.mts +2 -2
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +2 -2
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/servers.d.mts +30 -30
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +30 -30
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +6 -6
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +6 -6
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/tokens.d.mts +96 -63
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +96 -63
- package/resources/tokens.d.ts.map +1 -1
- package/resources/tokens.js +1 -4
- package/resources/tokens.js.map +1 -1
- package/resources/tokens.mjs +1 -4
- package/resources/tokens.mjs.map +1 -1
- package/src/client.ts +28 -5
- package/src/core/pagination.ts +47 -0
- package/src/lib/mcp-transport.ts +47 -24
- package/src/resources/beta/connect/connect.ts +14 -2
- package/src/resources/beta/connect/connections.ts +53 -35
- package/src/resources/beta/connect/index.ts +3 -1
- package/src/resources/beta/connect/tools.ts +73 -0
- package/src/resources/index.ts +13 -3
- package/src/resources/namespaces.ts +17 -17
- package/src/resources/servers/deployments.ts +45 -47
- package/src/resources/servers/index.ts +3 -3
- package/src/resources/servers/servers.ts +49 -49
- package/src/resources/tokens.ts +103 -58
- 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
|
@@ -24,30 +24,8 @@ export class Connections extends APIResource {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const connection =
|
|
33
|
-
* await client.beta.connect.connections.retrieve(
|
|
34
|
-
* 'connectionId',
|
|
35
|
-
* { namespace: 'namespace' },
|
|
36
|
-
* );
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
retrieve(
|
|
40
|
-
connectionID: string,
|
|
41
|
-
params: ConnectionRetrieveParams,
|
|
42
|
-
options?: RequestOptions,
|
|
43
|
-
): APIPromise<Connection> {
|
|
44
|
-
const { namespace } = params;
|
|
45
|
-
return this._client.get(path`/connect/${namespace}/${connectionID}`, options);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* List all connections in a namespace. Requires service token with
|
|
50
|
-
* connections:read scope.
|
|
27
|
+
* List all connections in a namespace. Supports filtering by metadata using
|
|
28
|
+
* `metadata.{key}={value}` query params (e.g., `metadata.userId=alice`).
|
|
51
29
|
*
|
|
52
30
|
* @example
|
|
53
31
|
* ```ts
|
|
@@ -55,8 +33,12 @@ export class Connections extends APIResource {
|
|
|
55
33
|
* await client.beta.connect.connections.list('namespace');
|
|
56
34
|
* ```
|
|
57
35
|
*/
|
|
58
|
-
list(
|
|
59
|
-
|
|
36
|
+
list(
|
|
37
|
+
namespace: string,
|
|
38
|
+
query: ConnectionListParams | null | undefined = {},
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<ConnectionsListResponse> {
|
|
41
|
+
return this._client.get(path`/connect/${namespace}`, { query, ...options });
|
|
60
42
|
}
|
|
61
43
|
|
|
62
44
|
/**
|
|
@@ -81,6 +63,24 @@ export class Connections extends APIResource {
|
|
|
81
63
|
return this._client.delete(path`/connect/${namespace}/${connectionID}`, options);
|
|
82
64
|
}
|
|
83
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Get details for a specific connection. Requires service token with
|
|
68
|
+
* connections:read scope.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const connection =
|
|
73
|
+
* await client.beta.connect.connections.get(
|
|
74
|
+
* 'connectionId',
|
|
75
|
+
* { namespace: 'namespace' },
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
get(connectionID: string, params: ConnectionGetParams, options?: RequestOptions): APIPromise<Connection> {
|
|
80
|
+
const { namespace } = params;
|
|
81
|
+
return this._client.get(path`/connect/${namespace}/${connectionID}`, options);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
84
|
/**
|
|
85
85
|
* Create a new MCP connection with the given ID. Returns 409 if connection already
|
|
86
86
|
* exists - delete it first to recreate. Requires API key and namespace ownership.
|
|
@@ -137,9 +137,9 @@ export interface Connection {
|
|
|
137
137
|
* Connection status after initialization (only returned on create)
|
|
138
138
|
*/
|
|
139
139
|
status?:
|
|
140
|
-
| Connection.
|
|
141
|
-
| Connection.
|
|
142
|
-
| Connection.
|
|
140
|
+
| Connection.ConnectionStatusConnected
|
|
141
|
+
| Connection.ConnectionStatusAuthRequired
|
|
142
|
+
| Connection.ConnectionStatusError;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
export namespace Connection {
|
|
@@ -172,11 +172,11 @@ export namespace Connection {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export interface
|
|
175
|
+
export interface ConnectionStatusConnected {
|
|
176
176
|
state: 'connected';
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
export interface
|
|
179
|
+
export interface ConnectionStatusAuthRequired {
|
|
180
180
|
state: 'auth_required';
|
|
181
181
|
|
|
182
182
|
/**
|
|
@@ -185,7 +185,7 @@ export namespace Connection {
|
|
|
185
185
|
authorizationUrl?: string;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
export interface
|
|
188
|
+
export interface ConnectionStatusError {
|
|
189
189
|
/**
|
|
190
190
|
* Error message
|
|
191
191
|
*/
|
|
@@ -254,14 +254,31 @@ export interface ConnectionCreateParams {
|
|
|
254
254
|
name?: string;
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
export interface
|
|
258
|
-
|
|
257
|
+
export interface ConnectionListParams {
|
|
258
|
+
/**
|
|
259
|
+
* Pagination cursor from previous response's nextCursor
|
|
260
|
+
*/
|
|
261
|
+
cursor?: string;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Maximum number of items to return (default 100, max 100)
|
|
265
|
+
*/
|
|
266
|
+
limit?: number;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Filter by exact connection name
|
|
270
|
+
*/
|
|
271
|
+
name?: string;
|
|
259
272
|
}
|
|
260
273
|
|
|
261
274
|
export interface ConnectionDeleteParams {
|
|
262
275
|
namespace: string;
|
|
263
276
|
}
|
|
264
277
|
|
|
278
|
+
export interface ConnectionGetParams {
|
|
279
|
+
namespace: string;
|
|
280
|
+
}
|
|
281
|
+
|
|
265
282
|
export interface ConnectionSetParams {
|
|
266
283
|
/**
|
|
267
284
|
* Path param
|
|
@@ -297,8 +314,9 @@ export declare namespace Connections {
|
|
|
297
314
|
type CreateConnectionRequest as CreateConnectionRequest,
|
|
298
315
|
type ConnectionDeleteResponse as ConnectionDeleteResponse,
|
|
299
316
|
type ConnectionCreateParams as ConnectionCreateParams,
|
|
300
|
-
type
|
|
317
|
+
type ConnectionListParams as ConnectionListParams,
|
|
301
318
|
type ConnectionDeleteParams as ConnectionDeleteParams,
|
|
319
|
+
type ConnectionGetParams as ConnectionGetParams,
|
|
302
320
|
type ConnectionSetParams as ConnectionSetParams,
|
|
303
321
|
};
|
|
304
322
|
}
|
|
@@ -8,8 +8,10 @@ export {
|
|
|
8
8
|
type CreateConnectionRequest,
|
|
9
9
|
type ConnectionDeleteResponse,
|
|
10
10
|
type ConnectionCreateParams,
|
|
11
|
-
type
|
|
11
|
+
type ConnectionListParams,
|
|
12
12
|
type ConnectionDeleteParams,
|
|
13
|
+
type ConnectionGetParams,
|
|
13
14
|
type ConnectionSetParams,
|
|
14
15
|
} from './connections';
|
|
15
16
|
export { Rpc, type JsonRpcRequest, type JsonRpcResponse, type RpcCallParams } from './rpc';
|
|
17
|
+
export { Tools, type ToolSearchResponse, type ToolSearchParams } from './tools';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
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';
|
|
7
|
+
|
|
8
|
+
export class Tools extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Search indexed tools across all connections in a namespace. Filter by
|
|
11
|
+
* connectionId or server URL. Metadata constraints from service tokens are applied
|
|
12
|
+
* automatically.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await client.beta.connect.tools.search(
|
|
17
|
+
* 'namespace',
|
|
18
|
+
* { q: 'x' },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
search(
|
|
23
|
+
namespace: string,
|
|
24
|
+
query: ToolSearchParams,
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): APIPromise<ToolSearchResponse> {
|
|
27
|
+
return this._client.get(path`/connect/tools/${namespace}`, { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ToolSearchResponse {
|
|
32
|
+
nextCursor: string | null;
|
|
33
|
+
|
|
34
|
+
tools: Array<ToolSearchResponse.Tool>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export namespace ToolSearchResponse {
|
|
38
|
+
export interface Tool {
|
|
39
|
+
connectionId: string;
|
|
40
|
+
|
|
41
|
+
serverUrl: string;
|
|
42
|
+
|
|
43
|
+
tool: Tool.Tool;
|
|
44
|
+
|
|
45
|
+
score?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace Tool {
|
|
49
|
+
export interface Tool {
|
|
50
|
+
name: string;
|
|
51
|
+
|
|
52
|
+
description?: string;
|
|
53
|
+
|
|
54
|
+
inputSchema?: { [key: string]: unknown };
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface ToolSearchParams {
|
|
60
|
+
q: string;
|
|
61
|
+
|
|
62
|
+
connectionId?: string;
|
|
63
|
+
|
|
64
|
+
cursor?: string;
|
|
65
|
+
|
|
66
|
+
limit?: number;
|
|
67
|
+
|
|
68
|
+
server?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export declare namespace Tools {
|
|
72
|
+
export { type ToolSearchResponse as ToolSearchResponse, type ToolSearchParams as ToolSearchParams };
|
|
73
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -6,16 +6,16 @@ export {
|
|
|
6
6
|
Namespaces,
|
|
7
7
|
type NamespaceCreateResponse,
|
|
8
8
|
type NamespaceListResponse,
|
|
9
|
-
type
|
|
9
|
+
type NamespaceSetResponse,
|
|
10
10
|
} from './namespaces';
|
|
11
11
|
export {
|
|
12
12
|
Servers,
|
|
13
13
|
type BuildConfig,
|
|
14
14
|
type DeploymentTarget,
|
|
15
15
|
type ProjectConfig,
|
|
16
|
-
type ServerRetrieveResponse,
|
|
17
16
|
type ServerListResponse,
|
|
18
17
|
type ServerDeleteResponse,
|
|
18
|
+
type ServerGetResponse,
|
|
19
19
|
type ServerListParams,
|
|
20
20
|
type ServerListResponsesSmitheryPage,
|
|
21
21
|
} from './servers/servers';
|
|
@@ -25,5 +25,15 @@ export {
|
|
|
25
25
|
type SkillListParams,
|
|
26
26
|
type SkillListResponsesSkillsPage,
|
|
27
27
|
} from './skills';
|
|
28
|
-
export {
|
|
28
|
+
export {
|
|
29
|
+
Tokens,
|
|
30
|
+
type Action,
|
|
31
|
+
type Allow,
|
|
32
|
+
type ConnectionScope,
|
|
33
|
+
type CreateTokenRequest,
|
|
34
|
+
type CreateTokenResponse,
|
|
35
|
+
type ResourceScope,
|
|
36
|
+
type RpcScope,
|
|
37
|
+
type TokenCreateParams,
|
|
38
|
+
} from './tokens';
|
|
29
39
|
export { Uplink, type UplinkCreateTokenResponse } from './uplink';
|
|
@@ -3,33 +3,31 @@
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
6
7
|
|
|
7
8
|
export class Namespaces extends APIResource {
|
|
8
9
|
/**
|
|
9
|
-
* Create a new namespace owned by the
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const namespace = await client.namespaces.create({
|
|
14
|
-
* name: 'myorg',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
10
|
+
* Create a new namespace with a server-generated human-readable name, owned by the
|
|
11
|
+
* authenticated user
|
|
17
12
|
*/
|
|
18
|
-
create(
|
|
19
|
-
return this._client.
|
|
13
|
+
create(options?: RequestOptions): APIPromise<NamespaceCreateResponse> {
|
|
14
|
+
return this._client.post('/namespaces', options);
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
/**
|
|
23
18
|
* Get a list of all namespaces owned by the authenticated user
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const namespaces = await client.namespaces.list();
|
|
28
|
-
* ```
|
|
29
19
|
*/
|
|
30
20
|
list(options?: RequestOptions): APIPromise<NamespaceListResponse> {
|
|
31
21
|
return this._client.get('/namespaces', options);
|
|
32
22
|
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Create a new namespace with a user-specified name, owned by the authenticated
|
|
26
|
+
* user
|
|
27
|
+
*/
|
|
28
|
+
set(name: string, options?: RequestOptions): APIPromise<NamespaceSetResponse> {
|
|
29
|
+
return this._client.put(path`/namespaces/${name}`, options);
|
|
30
|
+
}
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
export interface NamespaceCreateResponse {
|
|
@@ -50,7 +48,9 @@ export namespace NamespaceListResponse {
|
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
|
|
53
|
-
export interface
|
|
51
|
+
export interface NamespaceSetResponse {
|
|
52
|
+
createdAt: string;
|
|
53
|
+
|
|
54
54
|
name: string;
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -58,6 +58,6 @@ export declare namespace Namespaces {
|
|
|
58
58
|
export {
|
|
59
59
|
type NamespaceCreateResponse as NamespaceCreateResponse,
|
|
60
60
|
type NamespaceListResponse as NamespaceListResponse,
|
|
61
|
-
type
|
|
61
|
+
type NamespaceSetResponse as NamespaceSetResponse,
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -8,18 +8,6 @@ import { multipartFormRequestOptions } from '../../internal/uploads';
|
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class Deployments extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Get deployment status
|
|
13
|
-
*/
|
|
14
|
-
retrieve(
|
|
15
|
-
id: string,
|
|
16
|
-
params: DeploymentRetrieveParams,
|
|
17
|
-
options?: RequestOptions,
|
|
18
|
-
): APIPromise<DeploymentRetrieveResponse> {
|
|
19
|
-
const { qualifiedName } = params;
|
|
20
|
-
return this._client.get(path`/servers/${qualifiedName}/deployments/${id}`, options);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
11
|
/**
|
|
24
12
|
* List deployments for a server
|
|
25
13
|
*/
|
|
@@ -41,6 +29,14 @@ export class Deployments extends APIResource {
|
|
|
41
29
|
);
|
|
42
30
|
}
|
|
43
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Get deployment status
|
|
34
|
+
*/
|
|
35
|
+
get(id: string, params: DeploymentGetParams, options?: RequestOptions): APIPromise<DeploymentGetResponse> {
|
|
36
|
+
const { qualifiedName } = params;
|
|
37
|
+
return this._client.get(path`/servers/${qualifiedName}/deployments/${id}`, options);
|
|
38
|
+
}
|
|
39
|
+
|
|
44
40
|
/**
|
|
45
41
|
* Use id='latest' to resume the most recent deployment
|
|
46
42
|
*/
|
|
@@ -72,6 +68,8 @@ export interface ExternalDeployPayload {
|
|
|
72
68
|
upstreamUrl: string;
|
|
73
69
|
|
|
74
70
|
configSchema?: { [key: string]: unknown };
|
|
71
|
+
|
|
72
|
+
scanCredentials?: { [key: string]: string };
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
export interface HostedDeployPayload {
|
|
@@ -302,7 +300,33 @@ export namespace StdioDeployPayload {
|
|
|
302
300
|
}
|
|
303
301
|
}
|
|
304
302
|
|
|
305
|
-
export
|
|
303
|
+
export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
|
|
304
|
+
|
|
305
|
+
export namespace DeploymentListResponse {
|
|
306
|
+
export interface DeploymentListResponseItem {
|
|
307
|
+
id: string;
|
|
308
|
+
|
|
309
|
+
createdAt: string;
|
|
310
|
+
|
|
311
|
+
status: string;
|
|
312
|
+
|
|
313
|
+
updatedAt: string;
|
|
314
|
+
|
|
315
|
+
mcpUrl?: string;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface DeploymentDeployResponse {
|
|
320
|
+
deploymentId: string;
|
|
321
|
+
|
|
322
|
+
mcpUrl: string;
|
|
323
|
+
|
|
324
|
+
status: string;
|
|
325
|
+
|
|
326
|
+
warnings?: Array<string>;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export interface DeploymentGetResponse {
|
|
306
330
|
id: string;
|
|
307
331
|
|
|
308
332
|
createdAt: string;
|
|
@@ -311,12 +335,12 @@ export interface DeploymentRetrieveResponse {
|
|
|
311
335
|
|
|
312
336
|
updatedAt: string;
|
|
313
337
|
|
|
314
|
-
logs?: Array<
|
|
338
|
+
logs?: Array<DeploymentGetResponse.Log>;
|
|
315
339
|
|
|
316
340
|
mcpUrl?: string;
|
|
317
341
|
}
|
|
318
342
|
|
|
319
|
-
export namespace
|
|
343
|
+
export namespace DeploymentGetResponse {
|
|
320
344
|
export interface Log {
|
|
321
345
|
level: string;
|
|
322
346
|
|
|
@@ -336,42 +360,12 @@ export namespace DeploymentRetrieveResponse {
|
|
|
336
360
|
}
|
|
337
361
|
}
|
|
338
362
|
|
|
339
|
-
export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
|
|
340
|
-
|
|
341
|
-
export namespace DeploymentListResponse {
|
|
342
|
-
export interface DeploymentListResponseItem {
|
|
343
|
-
id: string;
|
|
344
|
-
|
|
345
|
-
createdAt: string;
|
|
346
|
-
|
|
347
|
-
status: string;
|
|
348
|
-
|
|
349
|
-
updatedAt: string;
|
|
350
|
-
|
|
351
|
-
mcpUrl?: string;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export interface DeploymentDeployResponse {
|
|
356
|
-
deploymentId: string;
|
|
357
|
-
|
|
358
|
-
mcpUrl: string;
|
|
359
|
-
|
|
360
|
-
status: string;
|
|
361
|
-
|
|
362
|
-
warnings?: Array<string>;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
363
|
export interface DeploymentResumeResponse {
|
|
366
364
|
deploymentId: string;
|
|
367
365
|
|
|
368
366
|
status: string;
|
|
369
367
|
}
|
|
370
368
|
|
|
371
|
-
export interface DeploymentRetrieveParams {
|
|
372
|
-
qualifiedName: string;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
369
|
export interface DeploymentDeployParams {
|
|
376
370
|
/**
|
|
377
371
|
* JSON-encoded deployment payload. See DeployPayload schema for structure.
|
|
@@ -394,6 +388,10 @@ export interface DeploymentDeployParams {
|
|
|
394
388
|
sourcemap?: Uploadable;
|
|
395
389
|
}
|
|
396
390
|
|
|
391
|
+
export interface DeploymentGetParams {
|
|
392
|
+
qualifiedName: string;
|
|
393
|
+
}
|
|
394
|
+
|
|
397
395
|
export interface DeploymentResumeParams {
|
|
398
396
|
qualifiedName: string;
|
|
399
397
|
}
|
|
@@ -405,12 +403,12 @@ export declare namespace Deployments {
|
|
|
405
403
|
type HostedDeployPayload as HostedDeployPayload,
|
|
406
404
|
type ServerCard as ServerCard,
|
|
407
405
|
type StdioDeployPayload as StdioDeployPayload,
|
|
408
|
-
type DeploymentRetrieveResponse as DeploymentRetrieveResponse,
|
|
409
406
|
type DeploymentListResponse as DeploymentListResponse,
|
|
410
407
|
type DeploymentDeployResponse as DeploymentDeployResponse,
|
|
408
|
+
type DeploymentGetResponse as DeploymentGetResponse,
|
|
411
409
|
type DeploymentResumeResponse as DeploymentResumeResponse,
|
|
412
|
-
type DeploymentRetrieveParams as DeploymentRetrieveParams,
|
|
413
410
|
type DeploymentDeployParams as DeploymentDeployParams,
|
|
411
|
+
type DeploymentGetParams as DeploymentGetParams,
|
|
414
412
|
type DeploymentResumeParams as DeploymentResumeParams,
|
|
415
413
|
};
|
|
416
414
|
}
|
|
@@ -7,12 +7,12 @@ export {
|
|
|
7
7
|
type HostedDeployPayload,
|
|
8
8
|
type ServerCard,
|
|
9
9
|
type StdioDeployPayload,
|
|
10
|
-
type DeploymentRetrieveResponse,
|
|
11
10
|
type DeploymentListResponse,
|
|
12
11
|
type DeploymentDeployResponse,
|
|
12
|
+
type DeploymentGetResponse,
|
|
13
13
|
type DeploymentResumeResponse,
|
|
14
|
-
type DeploymentRetrieveParams,
|
|
15
14
|
type DeploymentDeployParams,
|
|
15
|
+
type DeploymentGetParams,
|
|
16
16
|
type DeploymentResumeParams,
|
|
17
17
|
} from './deployments';
|
|
18
18
|
export { Logs, type LogListResponse, type LogListParams } from './logs';
|
|
@@ -29,9 +29,9 @@ export {
|
|
|
29
29
|
type BuildConfig,
|
|
30
30
|
type DeploymentTarget,
|
|
31
31
|
type ProjectConfig,
|
|
32
|
-
type ServerRetrieveResponse,
|
|
33
32
|
type ServerListResponse,
|
|
34
33
|
type ServerDeleteResponse,
|
|
34
|
+
type ServerGetResponse,
|
|
35
35
|
type ServerListParams,
|
|
36
36
|
type ServerListResponsesSmitheryPage,
|
|
37
37
|
} from './servers';
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
DeployPayload,
|
|
7
7
|
DeploymentDeployParams,
|
|
8
8
|
DeploymentDeployResponse,
|
|
9
|
+
DeploymentGetParams,
|
|
10
|
+
DeploymentGetResponse,
|
|
9
11
|
DeploymentListResponse,
|
|
10
12
|
DeploymentResumeParams,
|
|
11
13
|
DeploymentResumeResponse,
|
|
12
|
-
DeploymentRetrieveParams,
|
|
13
|
-
DeploymentRetrieveResponse,
|
|
14
14
|
Deployments,
|
|
15
15
|
ExternalDeployPayload,
|
|
16
16
|
HostedDeployPayload,
|
|
@@ -39,13 +39,6 @@ export class Servers extends APIResource {
|
|
|
39
39
|
logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
|
|
40
40
|
secrets: SecretsAPI.Secrets = new SecretsAPI.Secrets(this._client);
|
|
41
41
|
|
|
42
|
-
/**
|
|
43
|
-
* Get a single server by its qualified name.
|
|
44
|
-
*/
|
|
45
|
-
retrieve(qualifiedName: string, options?: RequestOptions): APIPromise<ServerRetrieveResponse> {
|
|
46
|
-
return this._client.get(path`/servers/${qualifiedName}`, options);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
42
|
/**
|
|
50
43
|
* Get a paginated list of all servers. Use the `q` parameter to search.
|
|
51
44
|
*/
|
|
@@ -73,6 +66,13 @@ export class Servers extends APIResource {
|
|
|
73
66
|
__binaryResponse: true,
|
|
74
67
|
});
|
|
75
68
|
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Get a single server by its qualified name.
|
|
72
|
+
*/
|
|
73
|
+
get(qualifiedName: string, options?: RequestOptions): APIPromise<ServerGetResponse> {
|
|
74
|
+
return this._client.get(path`/servers/${qualifiedName}`, options);
|
|
75
|
+
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export type ServerListResponsesSmitheryPage = SmitheryPage<ServerListResponse>;
|
|
@@ -134,8 +134,40 @@ export namespace ProjectConfig {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
export interface
|
|
138
|
-
|
|
137
|
+
export interface ServerListResponse {
|
|
138
|
+
id: string;
|
|
139
|
+
|
|
140
|
+
createdAt: string;
|
|
141
|
+
|
|
142
|
+
description: string;
|
|
143
|
+
|
|
144
|
+
displayName: string;
|
|
145
|
+
|
|
146
|
+
homepage: string;
|
|
147
|
+
|
|
148
|
+
iconUrl: string | null;
|
|
149
|
+
|
|
150
|
+
isDeployed: boolean;
|
|
151
|
+
|
|
152
|
+
owner: string | null;
|
|
153
|
+
|
|
154
|
+
qualifiedName: string;
|
|
155
|
+
|
|
156
|
+
remote: boolean | null;
|
|
157
|
+
|
|
158
|
+
useCount: number;
|
|
159
|
+
|
|
160
|
+
verified: boolean;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface ServerDeleteResponse {
|
|
164
|
+
qualifiedName: string;
|
|
165
|
+
|
|
166
|
+
success: boolean;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface ServerGetResponse {
|
|
170
|
+
connections: Array<ServerGetResponse.StdioConnection | ServerGetResponse.HTTPConnection>;
|
|
139
171
|
|
|
140
172
|
deploymentUrl: string | null;
|
|
141
173
|
|
|
@@ -149,12 +181,12 @@ export interface ServerRetrieveResponse {
|
|
|
149
181
|
|
|
150
182
|
remote: boolean;
|
|
151
183
|
|
|
152
|
-
security:
|
|
184
|
+
security: ServerGetResponse.Security | null;
|
|
153
185
|
|
|
154
|
-
tools: Array<
|
|
186
|
+
tools: Array<ServerGetResponse.Tool> | null;
|
|
155
187
|
}
|
|
156
188
|
|
|
157
|
-
export namespace
|
|
189
|
+
export namespace ServerGetResponse {
|
|
158
190
|
export interface StdioConnection {
|
|
159
191
|
configSchema: { [key: string]: unknown };
|
|
160
192
|
|
|
@@ -196,38 +228,6 @@ export namespace ServerRetrieveResponse {
|
|
|
196
228
|
}
|
|
197
229
|
}
|
|
198
230
|
|
|
199
|
-
export interface ServerListResponse {
|
|
200
|
-
id: string;
|
|
201
|
-
|
|
202
|
-
createdAt: string;
|
|
203
|
-
|
|
204
|
-
description: string;
|
|
205
|
-
|
|
206
|
-
displayName: string;
|
|
207
|
-
|
|
208
|
-
homepage: string;
|
|
209
|
-
|
|
210
|
-
iconUrl: string | null;
|
|
211
|
-
|
|
212
|
-
isDeployed: boolean;
|
|
213
|
-
|
|
214
|
-
owner: string | null;
|
|
215
|
-
|
|
216
|
-
qualifiedName: string;
|
|
217
|
-
|
|
218
|
-
remote: boolean | null;
|
|
219
|
-
|
|
220
|
-
useCount: number;
|
|
221
|
-
|
|
222
|
-
verified: boolean;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export interface ServerDeleteResponse {
|
|
226
|
-
qualifiedName: string;
|
|
227
|
-
|
|
228
|
-
success: boolean;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
231
|
export interface ServerListParams extends SmitheryPageParams {
|
|
232
232
|
ids?: Array<string>;
|
|
233
233
|
|
|
@@ -259,9 +259,9 @@ export declare namespace Servers {
|
|
|
259
259
|
type BuildConfig as BuildConfig,
|
|
260
260
|
type DeploymentTarget as DeploymentTarget,
|
|
261
261
|
type ProjectConfig as ProjectConfig,
|
|
262
|
-
type ServerRetrieveResponse as ServerRetrieveResponse,
|
|
263
262
|
type ServerListResponse as ServerListResponse,
|
|
264
263
|
type ServerDeleteResponse as ServerDeleteResponse,
|
|
264
|
+
type ServerGetResponse as ServerGetResponse,
|
|
265
265
|
type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
|
|
266
266
|
type ServerListParams as ServerListParams,
|
|
267
267
|
};
|
|
@@ -273,12 +273,12 @@ export declare namespace Servers {
|
|
|
273
273
|
type HostedDeployPayload as HostedDeployPayload,
|
|
274
274
|
type ServerCard as ServerCard,
|
|
275
275
|
type StdioDeployPayload as StdioDeployPayload,
|
|
276
|
-
type DeploymentRetrieveResponse as DeploymentRetrieveResponse,
|
|
277
276
|
type DeploymentListResponse as DeploymentListResponse,
|
|
278
277
|
type DeploymentDeployResponse as DeploymentDeployResponse,
|
|
278
|
+
type DeploymentGetResponse as DeploymentGetResponse,
|
|
279
279
|
type DeploymentResumeResponse as DeploymentResumeResponse,
|
|
280
|
-
type DeploymentRetrieveParams as DeploymentRetrieveParams,
|
|
281
280
|
type DeploymentDeployParams as DeploymentDeployParams,
|
|
281
|
+
type DeploymentGetParams as DeploymentGetParams,
|
|
282
282
|
type DeploymentResumeParams as DeploymentResumeParams,
|
|
283
283
|
};
|
|
284
284
|
|