@smithery/api 0.27.0 → 0.29.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 +20 -0
- package/README.md +10 -5
- package/client.d.mts +5 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -5
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/lib/mcp-transport.d.mts +57 -69
- package/lib/mcp-transport.d.mts.map +1 -1
- package/lib/mcp-transport.d.ts +57 -69
- package/lib/mcp-transport.d.ts.map +1 -1
- package/lib/mcp-transport.js +106 -204
- package/lib/mcp-transport.js.map +1 -1
- package/lib/mcp-transport.mjs +103 -202
- package/lib/mcp-transport.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/connect/connect.d.mts +4 -4
- package/resources/beta/connect/connect.d.ts +4 -4
- package/resources/beta/connect/connect.js +4 -4
- package/resources/beta/connect/connect.mjs +4 -4
- package/resources/beta/connect/connections.d.mts +5 -1
- package/resources/beta/connect/connections.d.mts.map +1 -1
- package/resources/beta/connect/connections.d.ts +5 -1
- package/resources/beta/connect/connections.d.ts.map +1 -1
- package/resources/beta/connect/index.d.mts +1 -1
- package/resources/beta/connect/index.d.ts +1 -1
- package/resources/beta/connect/index.js +3 -3
- package/resources/beta/connect/index.mjs +1 -1
- package/resources/beta/connect/{rpc.d.mts → mcp.d.mts} +9 -9
- package/resources/beta/connect/{rpc.d.mts.map → mcp.d.mts.map} +1 -1
- package/resources/beta/connect/{rpc.d.ts → mcp.d.ts} +9 -9
- package/resources/beta/connect/{rpc.d.ts.map → mcp.d.ts.map} +1 -1
- package/resources/beta/connect/{rpc.js → mcp.js} +8 -8
- package/resources/beta/connect/{rpc.js.map → mcp.js.map} +1 -1
- package/resources/beta/connect/{rpc.mjs → mcp.mjs} +6 -6
- package/resources/beta/connect/{rpc.mjs.map → mcp.mjs.map} +1 -1
- package/resources/beta/connect/tools.d.mts +0 -3
- package/resources/beta/connect/tools.d.mts.map +1 -1
- package/resources/beta/connect/tools.d.ts +0 -3
- package/resources/beta/connect/tools.d.ts.map +1 -1
- 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 +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/index.d.mts +3 -0
- package/resources/namespaces/index.d.mts.map +1 -0
- package/resources/namespaces/index.d.ts +3 -0
- package/resources/namespaces/index.d.ts.map +1 -0
- package/resources/namespaces/index.js +9 -0
- package/resources/namespaces/index.js.map +1 -0
- package/resources/namespaces/index.mjs +4 -0
- package/resources/namespaces/index.mjs.map +1 -0
- package/resources/namespaces/namespaces.d.mts +60 -0
- package/resources/namespaces/namespaces.d.mts.map +1 -0
- package/resources/namespaces/namespaces.d.ts +60 -0
- package/resources/namespaces/namespaces.d.ts.map +1 -0
- package/resources/namespaces/namespaces.js +54 -0
- package/resources/namespaces/namespaces.js.map +1 -0
- package/resources/namespaces/namespaces.mjs +49 -0
- package/resources/namespaces/namespaces.mjs.map +1 -0
- package/resources/namespaces/servers.d.mts +46 -0
- package/resources/namespaces/servers.d.mts.map +1 -0
- package/resources/namespaces/servers.d.ts +46 -0
- package/resources/namespaces/servers.d.ts.map +1 -0
- package/resources/namespaces/servers.js +25 -0
- package/resources/namespaces/servers.js.map +1 -0
- package/resources/namespaces/servers.mjs +21 -0
- package/resources/namespaces/servers.mjs.map +1 -0
- package/resources/namespaces.d.mts +1 -39
- package/resources/namespaces.d.mts.map +1 -1
- package/resources/namespaces.d.ts +1 -39
- package/resources/namespaces.d.ts.map +1 -1
- package/resources/namespaces.js +2 -26
- package/resources/namespaces.js.map +1 -1
- package/resources/namespaces.mjs +1 -24
- package/resources/namespaces.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +55 -9
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +55 -9
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +42 -8
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +42 -8
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/index.d.mts +4 -3
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +4 -3
- 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 +1 -0
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/logs.d.mts +15 -4
- package/resources/servers/logs.d.mts.map +1 -1
- package/resources/servers/logs.d.ts +15 -4
- package/resources/servers/logs.d.ts.map +1 -1
- package/resources/servers/logs.js +10 -2
- package/resources/servers/logs.js.map +1 -1
- package/resources/servers/logs.mjs +10 -2
- package/resources/servers/logs.mjs.map +1 -1
- package/resources/servers/repo.d.mts +98 -0
- package/resources/servers/repo.d.mts.map +1 -0
- package/resources/servers/repo.d.ts +98 -0
- package/resources/servers/repo.d.ts.map +1 -0
- package/resources/servers/repo.js +55 -0
- package/resources/servers/repo.js.map +1 -0
- package/resources/servers/repo.mjs +51 -0
- package/resources/servers/repo.mjs.map +1 -0
- package/resources/servers/secrets.d.mts +46 -4
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +46 -4
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +36 -6
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +36 -6
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/servers/servers.d.mts +57 -10
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +57 -10
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +47 -8
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +47 -8
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/tokens.d.mts +18 -18
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +18 -18
- package/resources/tokens.d.ts.map +1 -1
- package/src/client.ts +14 -8
- package/src/lib/mcp-transport.ts +131 -236
- package/src/resources/beta/connect/connect.ts +6 -6
- package/src/resources/beta/connect/connections.ts +6 -1
- package/src/resources/beta/connect/index.ts +1 -1
- package/src/resources/beta/connect/{rpc.ts → mcp.ts} +9 -9
- package/src/resources/beta/connect/tools.ts +0 -2
- package/src/resources/index.ts +5 -2
- package/src/resources/namespaces/index.ts +14 -0
- package/src/resources/namespaces/namespaces.ts +92 -0
- package/src/resources/namespaces/servers.ts +71 -0
- package/src/resources/namespaces.ts +1 -61
- package/src/resources/servers/deployments.ts +76 -15
- package/src/resources/servers/index.ts +14 -0
- package/src/resources/servers/logs.ts +18 -9
- package/src/resources/servers/repo.ts +143 -0
- package/src/resources/servers/secrets.ts +55 -7
- package/src/resources/servers/servers.ts +92 -8
- package/src/resources/tokens.ts +17 -17
- 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
|
@@ -8,28 +8,58 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
export class Secrets extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Fetch secret names for the server. Values are not returned.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const secrets = await client.servers.secrets.list(
|
|
15
|
+
* 'server',
|
|
16
|
+
* { namespace: 'namespace' },
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
11
19
|
*/
|
|
12
|
-
list(
|
|
13
|
-
|
|
20
|
+
list(server: string, params: SecretListParams, options?: RequestOptions): APIPromise<SecretListResponse> {
|
|
21
|
+
const { namespace } = params;
|
|
22
|
+
return this._client.get(path`/servers/${namespace}/${server}/secrets`, options);
|
|
14
23
|
}
|
|
15
24
|
|
|
16
25
|
/**
|
|
17
26
|
* Delete a secret by name from the server.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const secret = await client.servers.secrets.delete(
|
|
31
|
+
* 'secretName',
|
|
32
|
+
* { namespace: 'namespace', server: 'server' },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
18
35
|
*/
|
|
19
36
|
delete(
|
|
20
37
|
secretName: string,
|
|
21
38
|
params: SecretDeleteParams,
|
|
22
39
|
options?: RequestOptions,
|
|
23
40
|
): APIPromise<SecretDeleteResponse> {
|
|
24
|
-
const {
|
|
25
|
-
return this._client.delete(path`/servers/${
|
|
41
|
+
const { namespace, server } = params;
|
|
42
|
+
return this._client.delete(path`/servers/${namespace}/${server}/secrets/${secretName}`, options);
|
|
26
43
|
}
|
|
27
44
|
|
|
28
45
|
/**
|
|
29
46
|
* Set a secret value for the server.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const response = await client.servers.secrets.set(
|
|
51
|
+
* 'server',
|
|
52
|
+
* {
|
|
53
|
+
* namespace: 'namespace',
|
|
54
|
+
* name: 'x',
|
|
55
|
+
* value: 'x',
|
|
56
|
+
* },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
30
59
|
*/
|
|
31
|
-
set(
|
|
32
|
-
|
|
60
|
+
set(server: string, params: SecretSetParams, options?: RequestOptions): APIPromise<SecretSetResponse> {
|
|
61
|
+
const { namespace, ...body } = params;
|
|
62
|
+
return this._client.put(path`/servers/${namespace}/${server}/secrets`, { body, ...options });
|
|
33
63
|
}
|
|
34
64
|
}
|
|
35
65
|
|
|
@@ -51,13 +81,30 @@ export interface SecretSetResponse {
|
|
|
51
81
|
success: boolean;
|
|
52
82
|
}
|
|
53
83
|
|
|
84
|
+
export interface SecretListParams {
|
|
85
|
+
namespace: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
54
88
|
export interface SecretDeleteParams {
|
|
55
|
-
|
|
89
|
+
namespace: string;
|
|
90
|
+
|
|
91
|
+
server: string;
|
|
56
92
|
}
|
|
57
93
|
|
|
58
94
|
export interface SecretSetParams {
|
|
95
|
+
/**
|
|
96
|
+
* Path param
|
|
97
|
+
*/
|
|
98
|
+
namespace: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Body param
|
|
102
|
+
*/
|
|
59
103
|
name: string;
|
|
60
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Body param
|
|
107
|
+
*/
|
|
61
108
|
value: string;
|
|
62
109
|
}
|
|
63
110
|
|
|
@@ -66,6 +113,7 @@ export declare namespace Secrets {
|
|
|
66
113
|
type SecretListResponse as SecretListResponse,
|
|
67
114
|
type SecretDeleteResponse as SecretDeleteResponse,
|
|
68
115
|
type SecretSetResponse as SecretSetResponse,
|
|
116
|
+
type SecretListParams as SecretListParams,
|
|
69
117
|
type SecretDeleteParams as SecretDeleteParams,
|
|
70
118
|
type SecretSetParams as SecretSetParams,
|
|
71
119
|
};
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
DeploymentDeployResponse,
|
|
9
9
|
DeploymentGetParams,
|
|
10
10
|
DeploymentGetResponse,
|
|
11
|
+
DeploymentListParams,
|
|
11
12
|
DeploymentListResponse,
|
|
12
13
|
DeploymentResumeParams,
|
|
13
14
|
DeploymentResumeResponse,
|
|
@@ -19,10 +20,21 @@ import {
|
|
|
19
20
|
} from './deployments';
|
|
20
21
|
import * as LogsAPI from './logs';
|
|
21
22
|
import { LogListParams, LogListResponse, Logs } from './logs';
|
|
23
|
+
import * as RepoAPI from './repo';
|
|
24
|
+
import {
|
|
25
|
+
Repo,
|
|
26
|
+
RepoDeleteParams,
|
|
27
|
+
RepoDeleteResponse,
|
|
28
|
+
RepoGetParams,
|
|
29
|
+
RepoGetResponse,
|
|
30
|
+
RepoSetParams,
|
|
31
|
+
RepoSetResponse,
|
|
32
|
+
} from './repo';
|
|
22
33
|
import * as SecretsAPI from './secrets';
|
|
23
34
|
import {
|
|
24
35
|
SecretDeleteParams,
|
|
25
36
|
SecretDeleteResponse,
|
|
37
|
+
SecretListParams,
|
|
26
38
|
SecretListResponse,
|
|
27
39
|
SecretSetParams,
|
|
28
40
|
SecretSetResponse,
|
|
@@ -38,9 +50,18 @@ export class Servers extends APIResource {
|
|
|
38
50
|
deployments: DeploymentsAPI.Deployments = new DeploymentsAPI.Deployments(this._client);
|
|
39
51
|
logs: LogsAPI.Logs = new LogsAPI.Logs(this._client);
|
|
40
52
|
secrets: SecretsAPI.Secrets = new SecretsAPI.Secrets(this._client);
|
|
53
|
+
repo: RepoAPI.Repo = new RepoAPI.Repo(this._client);
|
|
41
54
|
|
|
42
55
|
/**
|
|
43
56
|
* Get a paginated list of all servers. Use the `q` parameter to search.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* // Automatically fetches more pages as needed.
|
|
61
|
+
* for await (const serverListResponse of client.servers.list()) {
|
|
62
|
+
* // ...
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
44
65
|
*/
|
|
45
66
|
list(
|
|
46
67
|
query: ServerListParams | null | undefined = {},
|
|
@@ -50,17 +71,40 @@ export class Servers extends APIResource {
|
|
|
50
71
|
}
|
|
51
72
|
|
|
52
73
|
/**
|
|
53
|
-
* Delete a server by
|
|
74
|
+
* Delete a server by namespace and server name.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const server = await client.servers.delete('server', {
|
|
79
|
+
* namespace: 'namespace',
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
54
82
|
*/
|
|
55
|
-
delete(
|
|
56
|
-
|
|
83
|
+
delete(
|
|
84
|
+
server: string,
|
|
85
|
+
params: ServerDeleteParams,
|
|
86
|
+
options?: RequestOptions,
|
|
87
|
+
): APIPromise<ServerDeleteResponse> {
|
|
88
|
+
const { namespace } = params;
|
|
89
|
+
return this._client.delete(path`/servers/${namespace}/${server}`, options);
|
|
57
90
|
}
|
|
58
91
|
|
|
59
92
|
/**
|
|
60
93
|
* Download the MCPB bundle for the latest successful stdio deployment
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* const response = await client.servers.download('server', {
|
|
98
|
+
* namespace: 'namespace',
|
|
99
|
+
* });
|
|
100
|
+
*
|
|
101
|
+
* const content = await response.blob();
|
|
102
|
+
* console.log(content);
|
|
103
|
+
* ```
|
|
61
104
|
*/
|
|
62
|
-
download(
|
|
63
|
-
|
|
105
|
+
download(server: string, params: ServerDownloadParams, options?: RequestOptions): APIPromise<Response> {
|
|
106
|
+
const { namespace } = params;
|
|
107
|
+
return this._client.get(path`/servers/${namespace}/${server}/download`, {
|
|
64
108
|
...options,
|
|
65
109
|
headers: buildHeaders([{ Accept: 'application/zip' }, options?.headers]),
|
|
66
110
|
__binaryResponse: true,
|
|
@@ -68,10 +112,18 @@ export class Servers extends APIResource {
|
|
|
68
112
|
}
|
|
69
113
|
|
|
70
114
|
/**
|
|
71
|
-
* Get a single server by its
|
|
115
|
+
* Get a single server by its namespace and server name.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* const server = await client.servers.get('server', {
|
|
120
|
+
* namespace: 'namespace',
|
|
121
|
+
* });
|
|
122
|
+
* ```
|
|
72
123
|
*/
|
|
73
|
-
get(
|
|
74
|
-
|
|
124
|
+
get(server: string, params: ServerGetParams, options?: RequestOptions): APIPromise<ServerGetResponse> {
|
|
125
|
+
const { namespace } = params;
|
|
126
|
+
return this._client.get(path`/servers/${namespace}/${server}`, options);
|
|
75
127
|
}
|
|
76
128
|
}
|
|
77
129
|
|
|
@@ -149,12 +201,16 @@ export interface ServerListResponse {
|
|
|
149
201
|
|
|
150
202
|
isDeployed: boolean;
|
|
151
203
|
|
|
204
|
+
namespace: string | null;
|
|
205
|
+
|
|
152
206
|
owner: string | null;
|
|
153
207
|
|
|
154
208
|
qualifiedName: string;
|
|
155
209
|
|
|
156
210
|
remote: boolean | null;
|
|
157
211
|
|
|
212
|
+
slug: string | null;
|
|
213
|
+
|
|
158
214
|
useCount: number;
|
|
159
215
|
|
|
160
216
|
verified: boolean;
|
|
@@ -250,9 +306,22 @@ export interface ServerListParams extends SmitheryPageParams {
|
|
|
250
306
|
verified?: '0' | '1' | 'true' | 'false';
|
|
251
307
|
}
|
|
252
308
|
|
|
309
|
+
export interface ServerDeleteParams {
|
|
310
|
+
namespace: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface ServerDownloadParams {
|
|
314
|
+
namespace: string;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export interface ServerGetParams {
|
|
318
|
+
namespace: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
253
321
|
Servers.Deployments = Deployments;
|
|
254
322
|
Servers.Logs = Logs;
|
|
255
323
|
Servers.Secrets = Secrets;
|
|
324
|
+
Servers.Repo = Repo;
|
|
256
325
|
|
|
257
326
|
export declare namespace Servers {
|
|
258
327
|
export {
|
|
@@ -264,6 +333,9 @@ export declare namespace Servers {
|
|
|
264
333
|
type ServerGetResponse as ServerGetResponse,
|
|
265
334
|
type ServerListResponsesSmitheryPage as ServerListResponsesSmitheryPage,
|
|
266
335
|
type ServerListParams as ServerListParams,
|
|
336
|
+
type ServerDeleteParams as ServerDeleteParams,
|
|
337
|
+
type ServerDownloadParams as ServerDownloadParams,
|
|
338
|
+
type ServerGetParams as ServerGetParams,
|
|
267
339
|
};
|
|
268
340
|
|
|
269
341
|
export {
|
|
@@ -277,6 +349,7 @@ export declare namespace Servers {
|
|
|
277
349
|
type DeploymentDeployResponse as DeploymentDeployResponse,
|
|
278
350
|
type DeploymentGetResponse as DeploymentGetResponse,
|
|
279
351
|
type DeploymentResumeResponse as DeploymentResumeResponse,
|
|
352
|
+
type DeploymentListParams as DeploymentListParams,
|
|
280
353
|
type DeploymentDeployParams as DeploymentDeployParams,
|
|
281
354
|
type DeploymentGetParams as DeploymentGetParams,
|
|
282
355
|
type DeploymentResumeParams as DeploymentResumeParams,
|
|
@@ -289,7 +362,18 @@ export declare namespace Servers {
|
|
|
289
362
|
type SecretListResponse as SecretListResponse,
|
|
290
363
|
type SecretDeleteResponse as SecretDeleteResponse,
|
|
291
364
|
type SecretSetResponse as SecretSetResponse,
|
|
365
|
+
type SecretListParams as SecretListParams,
|
|
292
366
|
type SecretDeleteParams as SecretDeleteParams,
|
|
293
367
|
type SecretSetParams as SecretSetParams,
|
|
294
368
|
};
|
|
369
|
+
|
|
370
|
+
export {
|
|
371
|
+
Repo as Repo,
|
|
372
|
+
type RepoDeleteResponse as RepoDeleteResponse,
|
|
373
|
+
type RepoGetResponse as RepoGetResponse,
|
|
374
|
+
type RepoSetResponse as RepoSetResponse,
|
|
375
|
+
type RepoDeleteParams as RepoDeleteParams,
|
|
376
|
+
type RepoGetParams as RepoGetParams,
|
|
377
|
+
type RepoSetParams as RepoSetParams,
|
|
378
|
+
};
|
|
295
379
|
}
|
package/src/resources/tokens.ts
CHANGED
|
@@ -44,14 +44,14 @@ export interface Allow {
|
|
|
44
44
|
deployments?: ResourceScope;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* Scope for
|
|
47
|
+
* Scope for MCP protocol operations on connections.
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
mcp?: McpScope;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Scope for
|
|
52
|
+
* Scope for namespace management.
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
namespaces?: ResourceScope;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Scope for server metadata and configuration.
|
|
@@ -116,11 +116,11 @@ export interface CreateTokenResponse {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* Scope for
|
|
119
|
+
* Scope for MCP operations on connections.
|
|
120
120
|
*/
|
|
121
|
-
export interface
|
|
121
|
+
export interface McpScope {
|
|
122
122
|
/**
|
|
123
|
-
* Actions allowed
|
|
123
|
+
* Actions allowed for MCP calls.
|
|
124
124
|
*/
|
|
125
125
|
actions: Array<Action>;
|
|
126
126
|
|
|
@@ -128,14 +128,20 @@ export interface ResourceScope {
|
|
|
128
128
|
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
129
129
|
*/
|
|
130
130
|
namespaces: Array<string>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Filter access to connections with matching metadata. All keys must match (AND
|
|
134
|
+
* semantics).
|
|
135
|
+
*/
|
|
136
|
+
metadata?: { [key: string]: string };
|
|
131
137
|
}
|
|
132
138
|
|
|
133
139
|
/**
|
|
134
|
-
* Scope for
|
|
140
|
+
* Scope for resource operations.
|
|
135
141
|
*/
|
|
136
|
-
export interface
|
|
142
|
+
export interface ResourceScope {
|
|
137
143
|
/**
|
|
138
|
-
* Actions allowed
|
|
144
|
+
* Actions allowed on this resource.
|
|
139
145
|
*/
|
|
140
146
|
actions: Array<Action>;
|
|
141
147
|
|
|
@@ -143,12 +149,6 @@ export interface RpcScope {
|
|
|
143
149
|
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
144
150
|
*/
|
|
145
151
|
namespaces: Array<string>;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Filter access to connections with matching metadata. All keys must match (AND
|
|
149
|
-
* semantics).
|
|
150
|
-
*/
|
|
151
|
-
metadata?: { [key: string]: string };
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
export interface TokenCreateParams {
|
|
@@ -176,8 +176,8 @@ export declare namespace Tokens {
|
|
|
176
176
|
type ConnectionScope as ConnectionScope,
|
|
177
177
|
type CreateTokenRequest as CreateTokenRequest,
|
|
178
178
|
type CreateTokenResponse as CreateTokenResponse,
|
|
179
|
+
type McpScope as McpScope,
|
|
179
180
|
type ResourceScope as ResourceScope,
|
|
180
|
-
type RpcScope as RpcScope,
|
|
181
181
|
type TokenCreateParams as TokenCreateParams,
|
|
182
182
|
};
|
|
183
183
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.29.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.29.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.29.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.29.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|