@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
package/src/resources/tokens.ts
CHANGED
|
@@ -12,10 +12,7 @@ export class Tokens extends APIResource {
|
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
14
|
* const createTokenResponse = await client.tokens.create({
|
|
15
|
-
*
|
|
16
|
-
* connections: { can: ['read', 'write'] },
|
|
17
|
-
* 'connections.rpc': { can: ['write'] },
|
|
18
|
-
* },
|
|
15
|
+
* allow: {},
|
|
19
16
|
* ttlSeconds: 3600,
|
|
20
17
|
* });
|
|
21
18
|
* ```
|
|
@@ -25,50 +22,85 @@ export class Tokens extends APIResource {
|
|
|
25
22
|
}
|
|
26
23
|
}
|
|
27
24
|
|
|
28
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Permission action. 'read' allows reading/listing. 'write' allows
|
|
27
|
+
* create/modify/delete.
|
|
28
|
+
*/
|
|
29
|
+
export type Action = 'read' | 'write';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Permission grants with per-resource scoping. Each resource defines its own
|
|
33
|
+
* namespaces and constraints.
|
|
34
|
+
*/
|
|
35
|
+
export interface Allow {
|
|
29
36
|
/**
|
|
30
|
-
*
|
|
37
|
+
* Scope for managing MCP connections.
|
|
31
38
|
*/
|
|
32
|
-
|
|
39
|
+
connections?: ConnectionScope;
|
|
33
40
|
|
|
34
41
|
/**
|
|
35
|
-
*
|
|
42
|
+
* Scope for deployment operations.
|
|
36
43
|
*/
|
|
37
|
-
|
|
44
|
+
deployments?: ResourceScope;
|
|
38
45
|
|
|
39
46
|
/**
|
|
40
|
-
*
|
|
47
|
+
* Scope for namespace management.
|
|
41
48
|
*/
|
|
42
|
-
|
|
49
|
+
namespaces?: ResourceScope;
|
|
43
50
|
|
|
44
51
|
/**
|
|
45
|
-
*
|
|
52
|
+
* Scope for making RPC calls on connections.
|
|
46
53
|
*/
|
|
47
|
-
|
|
54
|
+
rpc?: RpcScope;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Scope for server metadata and configuration.
|
|
58
|
+
*/
|
|
59
|
+
servers?: ResourceScope;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Scope for token creation.
|
|
63
|
+
*/
|
|
64
|
+
tokens?: ResourceScope;
|
|
48
65
|
}
|
|
49
66
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Scope for connection operations.
|
|
69
|
+
*/
|
|
70
|
+
export interface ConnectionScope {
|
|
71
|
+
/**
|
|
72
|
+
* Actions allowed on connections.
|
|
73
|
+
*/
|
|
74
|
+
actions: Array<Action>;
|
|
57
75
|
|
|
58
76
|
/**
|
|
59
|
-
*
|
|
77
|
+
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
60
78
|
*/
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Limit access to specific namespace IDs.
|
|
64
|
-
*/
|
|
65
|
-
namespaceIds?: Array<string>;
|
|
79
|
+
namespaces: Array<string>;
|
|
66
80
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
81
|
+
/**
|
|
82
|
+
* Filter access to connections with matching metadata. All keys must match (AND
|
|
83
|
+
* semantics).
|
|
84
|
+
*/
|
|
85
|
+
metadata?: { [key: string]: string };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface CreateTokenRequest {
|
|
89
|
+
/**
|
|
90
|
+
* Per-resource permission grants. Format: { [resource]: { actions: [...],
|
|
91
|
+
* namespaces: [...], metadata?: {...} } }
|
|
92
|
+
*/
|
|
93
|
+
allow: Allow;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Token TTL in seconds. Required. Max 86400 (24 hours).
|
|
97
|
+
*/
|
|
98
|
+
ttlSeconds: number;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Profile to scope the token to. If not provided, uses the default profile.
|
|
102
|
+
*/
|
|
103
|
+
profileSlug?: string;
|
|
72
104
|
}
|
|
73
105
|
|
|
74
106
|
export interface CreateTokenResponse {
|
|
@@ -83,56 +115,69 @@ export interface CreateTokenResponse {
|
|
|
83
115
|
expiresAt: string;
|
|
84
116
|
}
|
|
85
117
|
|
|
86
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Scope for resource operations.
|
|
120
|
+
*/
|
|
121
|
+
export interface ResourceScope {
|
|
87
122
|
/**
|
|
88
|
-
*
|
|
123
|
+
* Actions allowed on this resource.
|
|
89
124
|
*/
|
|
90
|
-
|
|
125
|
+
actions: Array<Action>;
|
|
91
126
|
|
|
92
127
|
/**
|
|
93
|
-
*
|
|
128
|
+
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
94
129
|
*/
|
|
95
|
-
|
|
130
|
+
namespaces: Array<string>;
|
|
131
|
+
}
|
|
96
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Scope for RPC operations on connections.
|
|
135
|
+
*/
|
|
136
|
+
export interface RpcScope {
|
|
97
137
|
/**
|
|
98
|
-
*
|
|
138
|
+
* Actions allowed for RPC calls.
|
|
99
139
|
*/
|
|
100
|
-
|
|
140
|
+
actions: Array<Action>;
|
|
101
141
|
|
|
102
142
|
/**
|
|
103
|
-
*
|
|
143
|
+
* Namespaces this scope applies to. Use '\*' for all namespaces.
|
|
104
144
|
*/
|
|
105
|
-
|
|
145
|
+
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 };
|
|
106
152
|
}
|
|
107
153
|
|
|
108
|
-
export
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
154
|
+
export interface TokenCreateParams {
|
|
155
|
+
/**
|
|
156
|
+
* Per-resource permission grants. Format: { [resource]: { actions: [...],
|
|
157
|
+
* namespaces: [...], metadata?: {...} } }
|
|
158
|
+
*/
|
|
159
|
+
allow: Allow;
|
|
115
160
|
|
|
116
161
|
/**
|
|
117
|
-
*
|
|
162
|
+
* Token TTL in seconds. Required. Max 86400 (24 hours).
|
|
118
163
|
*/
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Limit access to specific namespace IDs.
|
|
122
|
-
*/
|
|
123
|
-
namespaceIds?: Array<string>;
|
|
164
|
+
ttlSeconds: number;
|
|
124
165
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
166
|
+
/**
|
|
167
|
+
* Profile to scope the token to. If not provided, uses the default profile.
|
|
168
|
+
*/
|
|
169
|
+
profileSlug?: string;
|
|
130
170
|
}
|
|
131
171
|
|
|
132
172
|
export declare namespace Tokens {
|
|
133
173
|
export {
|
|
174
|
+
type Action as Action,
|
|
175
|
+
type Allow as Allow,
|
|
176
|
+
type ConnectionScope as ConnectionScope,
|
|
134
177
|
type CreateTokenRequest as CreateTokenRequest,
|
|
135
178
|
type CreateTokenResponse as CreateTokenResponse,
|
|
179
|
+
type ResourceScope as ResourceScope,
|
|
180
|
+
type RpcScope as RpcScope,
|
|
136
181
|
type TokenCreateParams as TokenCreateParams,
|
|
137
182
|
};
|
|
138
183
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.26.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.26.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.26.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.26.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|