@letta-ai/letta-client 1.0.0-alpha.10 → 1.0.0-alpha.12
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 +28 -0
- package/client.d.mts +7 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -1
- package/client.d.ts.map +1 -1
- package/client.js +9 -1
- package/client.js.map +1 -1
- package/client.mjs +9 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +59 -69
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +59 -69
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +2 -10
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +2 -10
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/groups/groups.d.mts +7 -33
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +7 -33
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +4 -21
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +4 -21
- package/resources/groups/groups.mjs.map +1 -1
- package/resources/identities/identities.d.mts +16 -24
- package/resources/identities/identities.d.mts.map +1 -1
- package/resources/identities/identities.d.ts +16 -24
- package/resources/identities/identities.d.ts.map +1 -1
- package/resources/identities/identities.js +4 -21
- package/resources/identities/identities.js.map +1 -1
- package/resources/identities/identities.mjs +4 -21
- package/resources/identities/identities.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-servers/index.d.mts +4 -0
- package/resources/mcp-servers/index.d.mts.map +1 -0
- package/resources/mcp-servers/index.d.ts +4 -0
- package/resources/mcp-servers/index.d.ts.map +1 -0
- package/resources/mcp-servers/index.js +11 -0
- package/resources/mcp-servers/index.js.map +1 -0
- package/resources/mcp-servers/index.mjs +5 -0
- package/resources/mcp-servers/index.mjs.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.mts +603 -0
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.ts +603 -0
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers/mcp-servers.js +63 -0
- package/resources/mcp-servers/mcp-servers.js.map +1 -0
- package/resources/mcp-servers/mcp-servers.mjs +58 -0
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -0
- package/resources/mcp-servers/refresh.d.mts +24 -0
- package/resources/mcp-servers/refresh.d.mts.map +1 -0
- package/resources/mcp-servers/refresh.d.ts +24 -0
- package/resources/mcp-servers/refresh.d.ts.map +1 -0
- package/resources/mcp-servers/refresh.js +27 -0
- package/resources/mcp-servers/refresh.js.map +1 -0
- package/resources/mcp-servers/refresh.mjs +23 -0
- package/resources/mcp-servers/refresh.mjs.map +1 -0
- package/resources/mcp-servers/tools.d.mts +80 -0
- package/resources/mcp-servers/tools.d.mts.map +1 -0
- package/resources/mcp-servers/tools.d.ts +80 -0
- package/resources/mcp-servers/tools.d.ts.map +1 -0
- package/resources/mcp-servers/tools.js +36 -0
- package/resources/mcp-servers/tools.js.map +1 -0
- package/resources/mcp-servers/tools.mjs +32 -0
- package/resources/mcp-servers/tools.mjs.map +1 -0
- package/resources/mcp-servers.d.mts +2 -0
- package/resources/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers.d.ts +2 -0
- package/resources/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers.js +6 -0
- package/resources/mcp-servers.js.map +1 -0
- package/resources/mcp-servers.mjs +3 -0
- package/resources/mcp-servers.mjs.map +1 -0
- package/resources/steps/steps.d.mts +10 -17
- package/resources/steps/steps.d.mts.map +1 -1
- package/resources/steps/steps.d.ts +10 -17
- package/resources/steps/steps.d.ts.map +1 -1
- package/resources/steps/steps.js +2 -11
- package/resources/steps/steps.js.map +1 -1
- package/resources/steps/steps.mjs +2 -11
- package/resources/steps/steps.mjs.map +1 -1
- package/src/client.ts +34 -0
- package/src/resources/agents/agents.ts +60 -79
- package/src/resources/groups/groups.ts +9 -54
- package/src/resources/identities/identities.ts +18 -45
- package/src/resources/index.ts +11 -0
- package/src/resources/mcp-servers/index.ts +21 -0
- package/src/resources/mcp-servers/mcp-servers.ts +762 -0
- package/src/resources/mcp-servers/refresh.ts +43 -0
- package/src/resources/mcp-servers/tools.ts +110 -0
- package/src/resources/mcp-servers.ts +3 -0
- package/src/resources/steps/steps.ts +11 -28
- 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
|
@@ -0,0 +1,762 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as RefreshAPI from './refresh';
|
|
5
|
+
import { Refresh, RefreshTriggerParams, RefreshTriggerResponse } from './refresh';
|
|
6
|
+
import * as ToolsAPI from './tools';
|
|
7
|
+
import { ToolListResponse, ToolRetrieveParams, ToolRunParams, ToolRunResponse, Tools } from './tools';
|
|
8
|
+
import { APIPromise } from '../../core/api-promise';
|
|
9
|
+
import { buildHeaders } from '../../internal/headers';
|
|
10
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
11
|
+
import { path } from '../../internal/utils/path';
|
|
12
|
+
|
|
13
|
+
export class McpServers extends APIResource {
|
|
14
|
+
tools: ToolsAPI.Tools = new ToolsAPI.Tools(this._client);
|
|
15
|
+
refresh: RefreshAPI.Refresh = new RefreshAPI.Refresh(this._client);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Add a new MCP server to the Letta MCP server config
|
|
19
|
+
*/
|
|
20
|
+
create(body: McpServerCreateParams, options?: RequestOptions): APIPromise<McpServerCreateResponse> {
|
|
21
|
+
return this._client.post('/v1/mcp-servers/', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Get a specific MCP server
|
|
26
|
+
*/
|
|
27
|
+
retrieve(mcpServerID: string, options?: RequestOptions): APIPromise<McpServerRetrieveResponse> {
|
|
28
|
+
return this._client.get(path`/v1/mcp-servers/${mcpServerID}`, options);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get a list of all configured MCP servers
|
|
33
|
+
*/
|
|
34
|
+
list(options?: RequestOptions): APIPromise<McpServerListResponse> {
|
|
35
|
+
return this._client.get('/v1/mcp-servers/', options);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Delete an MCP server by its ID
|
|
40
|
+
*/
|
|
41
|
+
delete(mcpServerID: string, options?: RequestOptions): APIPromise<void> {
|
|
42
|
+
return this._client.delete(path`/v1/mcp-servers/${mcpServerID}`, {
|
|
43
|
+
...options,
|
|
44
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Connect to an MCP server with support for OAuth via SSE. Returns a stream of
|
|
50
|
+
* events handling authorization state and exchange if OAuth is required.
|
|
51
|
+
*/
|
|
52
|
+
connect(mcpServerID: string, options?: RequestOptions): APIPromise<unknown> {
|
|
53
|
+
return this._client.get(path`/v1/mcp-servers/connect/${mcpServerID}`, options);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Update an existing MCP server configuration
|
|
58
|
+
*/
|
|
59
|
+
modify(
|
|
60
|
+
mcpServerID: string,
|
|
61
|
+
body: McpServerModifyParams,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): APIPromise<McpServerModifyResponse> {
|
|
64
|
+
return this._client.patch(path`/v1/mcp-servers/${mcpServerID}`, { body, ...options });
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* MCP server schema for agent files with remapped ID.
|
|
70
|
+
*/
|
|
71
|
+
export interface McpServerSchema {
|
|
72
|
+
/**
|
|
73
|
+
* Human-readable MCP server ID
|
|
74
|
+
*/
|
|
75
|
+
id: string;
|
|
76
|
+
|
|
77
|
+
server_name: string;
|
|
78
|
+
|
|
79
|
+
server_type: string;
|
|
80
|
+
|
|
81
|
+
metadata_?: { [key: string]: unknown } | null;
|
|
82
|
+
|
|
83
|
+
server_url?: string | null;
|
|
84
|
+
|
|
85
|
+
stdio_config?: { [key: string]: unknown } | null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* A Stdio MCP server
|
|
90
|
+
*/
|
|
91
|
+
export type McpServerCreateResponse =
|
|
92
|
+
| McpServerCreateResponse.StdioMcpServer
|
|
93
|
+
| McpServerCreateResponse.SsemcpServer
|
|
94
|
+
| McpServerCreateResponse.StreamableHttpmcpServer;
|
|
95
|
+
|
|
96
|
+
export namespace McpServerCreateResponse {
|
|
97
|
+
/**
|
|
98
|
+
* A Stdio MCP server
|
|
99
|
+
*/
|
|
100
|
+
export interface StdioMcpServer {
|
|
101
|
+
/**
|
|
102
|
+
* The arguments to pass to the command
|
|
103
|
+
*/
|
|
104
|
+
args: Array<string>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The command to run (MCP 'local' client will run this command)
|
|
108
|
+
*/
|
|
109
|
+
command: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The name of the server
|
|
113
|
+
*/
|
|
114
|
+
server_name: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The human-friendly ID of the Mcp_server
|
|
118
|
+
*/
|
|
119
|
+
id?: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Environment variables to set
|
|
123
|
+
*/
|
|
124
|
+
env?: { [key: string]: string } | null;
|
|
125
|
+
|
|
126
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* An SSE MCP server
|
|
131
|
+
*/
|
|
132
|
+
export interface SsemcpServer {
|
|
133
|
+
/**
|
|
134
|
+
* The name of the server
|
|
135
|
+
*/
|
|
136
|
+
server_name: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The URL of the server
|
|
140
|
+
*/
|
|
141
|
+
server_url: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The human-friendly ID of the Mcp_server
|
|
145
|
+
*/
|
|
146
|
+
id?: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
150
|
+
*/
|
|
151
|
+
auth_header?: string | null;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The authentication token or API key value
|
|
155
|
+
*/
|
|
156
|
+
auth_token?: string | null;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Custom HTTP headers to include with requests
|
|
160
|
+
*/
|
|
161
|
+
custom_headers?: { [key: string]: string } | null;
|
|
162
|
+
|
|
163
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* A Streamable HTTP MCP server
|
|
168
|
+
*/
|
|
169
|
+
export interface StreamableHttpmcpServer {
|
|
170
|
+
/**
|
|
171
|
+
* The name of the server
|
|
172
|
+
*/
|
|
173
|
+
server_name: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The URL of the server
|
|
177
|
+
*/
|
|
178
|
+
server_url: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The human-friendly ID of the Mcp_server
|
|
182
|
+
*/
|
|
183
|
+
id?: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
187
|
+
*/
|
|
188
|
+
auth_header?: string | null;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The authentication token or API key value
|
|
192
|
+
*/
|
|
193
|
+
auth_token?: string | null;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Custom HTTP headers to include with requests
|
|
197
|
+
*/
|
|
198
|
+
custom_headers?: { [key: string]: string } | null;
|
|
199
|
+
|
|
200
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* A Stdio MCP server
|
|
206
|
+
*/
|
|
207
|
+
export type McpServerRetrieveResponse =
|
|
208
|
+
| McpServerRetrieveResponse.StdioMcpServer
|
|
209
|
+
| McpServerRetrieveResponse.SsemcpServer
|
|
210
|
+
| McpServerRetrieveResponse.StreamableHttpmcpServer;
|
|
211
|
+
|
|
212
|
+
export namespace McpServerRetrieveResponse {
|
|
213
|
+
/**
|
|
214
|
+
* A Stdio MCP server
|
|
215
|
+
*/
|
|
216
|
+
export interface StdioMcpServer {
|
|
217
|
+
/**
|
|
218
|
+
* The arguments to pass to the command
|
|
219
|
+
*/
|
|
220
|
+
args: Array<string>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* The command to run (MCP 'local' client will run this command)
|
|
224
|
+
*/
|
|
225
|
+
command: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The name of the server
|
|
229
|
+
*/
|
|
230
|
+
server_name: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* The human-friendly ID of the Mcp_server
|
|
234
|
+
*/
|
|
235
|
+
id?: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Environment variables to set
|
|
239
|
+
*/
|
|
240
|
+
env?: { [key: string]: string } | null;
|
|
241
|
+
|
|
242
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* An SSE MCP server
|
|
247
|
+
*/
|
|
248
|
+
export interface SsemcpServer {
|
|
249
|
+
/**
|
|
250
|
+
* The name of the server
|
|
251
|
+
*/
|
|
252
|
+
server_name: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The URL of the server
|
|
256
|
+
*/
|
|
257
|
+
server_url: string;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The human-friendly ID of the Mcp_server
|
|
261
|
+
*/
|
|
262
|
+
id?: string;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
266
|
+
*/
|
|
267
|
+
auth_header?: string | null;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* The authentication token or API key value
|
|
271
|
+
*/
|
|
272
|
+
auth_token?: string | null;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Custom HTTP headers to include with requests
|
|
276
|
+
*/
|
|
277
|
+
custom_headers?: { [key: string]: string } | null;
|
|
278
|
+
|
|
279
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* A Streamable HTTP MCP server
|
|
284
|
+
*/
|
|
285
|
+
export interface StreamableHttpmcpServer {
|
|
286
|
+
/**
|
|
287
|
+
* The name of the server
|
|
288
|
+
*/
|
|
289
|
+
server_name: string;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* The URL of the server
|
|
293
|
+
*/
|
|
294
|
+
server_url: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* The human-friendly ID of the Mcp_server
|
|
298
|
+
*/
|
|
299
|
+
id?: string;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
303
|
+
*/
|
|
304
|
+
auth_header?: string | null;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* The authentication token or API key value
|
|
308
|
+
*/
|
|
309
|
+
auth_token?: string | null;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Custom HTTP headers to include with requests
|
|
313
|
+
*/
|
|
314
|
+
custom_headers?: { [key: string]: string } | null;
|
|
315
|
+
|
|
316
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export type McpServerListResponse = Array<
|
|
321
|
+
| McpServerListResponse.StdioMcpServer
|
|
322
|
+
| McpServerListResponse.SsemcpServer
|
|
323
|
+
| McpServerListResponse.StreamableHttpmcpServer
|
|
324
|
+
>;
|
|
325
|
+
|
|
326
|
+
export namespace McpServerListResponse {
|
|
327
|
+
/**
|
|
328
|
+
* A Stdio MCP server
|
|
329
|
+
*/
|
|
330
|
+
export interface StdioMcpServer {
|
|
331
|
+
/**
|
|
332
|
+
* The arguments to pass to the command
|
|
333
|
+
*/
|
|
334
|
+
args: Array<string>;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* The command to run (MCP 'local' client will run this command)
|
|
338
|
+
*/
|
|
339
|
+
command: string;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* The name of the server
|
|
343
|
+
*/
|
|
344
|
+
server_name: string;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* The human-friendly ID of the Mcp_server
|
|
348
|
+
*/
|
|
349
|
+
id?: string;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Environment variables to set
|
|
353
|
+
*/
|
|
354
|
+
env?: { [key: string]: string } | null;
|
|
355
|
+
|
|
356
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* An SSE MCP server
|
|
361
|
+
*/
|
|
362
|
+
export interface SsemcpServer {
|
|
363
|
+
/**
|
|
364
|
+
* The name of the server
|
|
365
|
+
*/
|
|
366
|
+
server_name: string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* The URL of the server
|
|
370
|
+
*/
|
|
371
|
+
server_url: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* The human-friendly ID of the Mcp_server
|
|
375
|
+
*/
|
|
376
|
+
id?: string;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
380
|
+
*/
|
|
381
|
+
auth_header?: string | null;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* The authentication token or API key value
|
|
385
|
+
*/
|
|
386
|
+
auth_token?: string | null;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Custom HTTP headers to include with requests
|
|
390
|
+
*/
|
|
391
|
+
custom_headers?: { [key: string]: string } | null;
|
|
392
|
+
|
|
393
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* A Streamable HTTP MCP server
|
|
398
|
+
*/
|
|
399
|
+
export interface StreamableHttpmcpServer {
|
|
400
|
+
/**
|
|
401
|
+
* The name of the server
|
|
402
|
+
*/
|
|
403
|
+
server_name: string;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* The URL of the server
|
|
407
|
+
*/
|
|
408
|
+
server_url: string;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* The human-friendly ID of the Mcp_server
|
|
412
|
+
*/
|
|
413
|
+
id?: string;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
417
|
+
*/
|
|
418
|
+
auth_header?: string | null;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* The authentication token or API key value
|
|
422
|
+
*/
|
|
423
|
+
auth_token?: string | null;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Custom HTTP headers to include with requests
|
|
427
|
+
*/
|
|
428
|
+
custom_headers?: { [key: string]: string } | null;
|
|
429
|
+
|
|
430
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export type McpServerConnectResponse = unknown;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* A Stdio MCP server
|
|
438
|
+
*/
|
|
439
|
+
export type McpServerModifyResponse =
|
|
440
|
+
| McpServerModifyResponse.StdioMcpServer
|
|
441
|
+
| McpServerModifyResponse.SsemcpServer
|
|
442
|
+
| McpServerModifyResponse.StreamableHttpmcpServer;
|
|
443
|
+
|
|
444
|
+
export namespace McpServerModifyResponse {
|
|
445
|
+
/**
|
|
446
|
+
* A Stdio MCP server
|
|
447
|
+
*/
|
|
448
|
+
export interface StdioMcpServer {
|
|
449
|
+
/**
|
|
450
|
+
* The arguments to pass to the command
|
|
451
|
+
*/
|
|
452
|
+
args: Array<string>;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* The command to run (MCP 'local' client will run this command)
|
|
456
|
+
*/
|
|
457
|
+
command: string;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* The name of the server
|
|
461
|
+
*/
|
|
462
|
+
server_name: string;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* The human-friendly ID of the Mcp_server
|
|
466
|
+
*/
|
|
467
|
+
id?: string;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Environment variables to set
|
|
471
|
+
*/
|
|
472
|
+
env?: { [key: string]: string } | null;
|
|
473
|
+
|
|
474
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* An SSE MCP server
|
|
479
|
+
*/
|
|
480
|
+
export interface SsemcpServer {
|
|
481
|
+
/**
|
|
482
|
+
* The name of the server
|
|
483
|
+
*/
|
|
484
|
+
server_name: string;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* The URL of the server
|
|
488
|
+
*/
|
|
489
|
+
server_url: string;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* The human-friendly ID of the Mcp_server
|
|
493
|
+
*/
|
|
494
|
+
id?: string;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
498
|
+
*/
|
|
499
|
+
auth_header?: string | null;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* The authentication token or API key value
|
|
503
|
+
*/
|
|
504
|
+
auth_token?: string | null;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Custom HTTP headers to include with requests
|
|
508
|
+
*/
|
|
509
|
+
custom_headers?: { [key: string]: string } | null;
|
|
510
|
+
|
|
511
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* A Streamable HTTP MCP server
|
|
516
|
+
*/
|
|
517
|
+
export interface StreamableHttpmcpServer {
|
|
518
|
+
/**
|
|
519
|
+
* The name of the server
|
|
520
|
+
*/
|
|
521
|
+
server_name: string;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* The URL of the server
|
|
525
|
+
*/
|
|
526
|
+
server_url: string;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* The human-friendly ID of the Mcp_server
|
|
530
|
+
*/
|
|
531
|
+
id?: string;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
535
|
+
*/
|
|
536
|
+
auth_header?: string | null;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* The authentication token or API key value
|
|
540
|
+
*/
|
|
541
|
+
auth_token?: string | null;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Custom HTTP headers to include with requests
|
|
545
|
+
*/
|
|
546
|
+
custom_headers?: { [key: string]: string } | null;
|
|
547
|
+
|
|
548
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
export type McpServerCreateParams =
|
|
553
|
+
| McpServerCreateParams.CreateStdioMcpServer
|
|
554
|
+
| McpServerCreateParams.CreateSsemcpServer
|
|
555
|
+
| McpServerCreateParams.CreateStreamableHttpmcpServer;
|
|
556
|
+
|
|
557
|
+
export declare namespace McpServerCreateParams {
|
|
558
|
+
export interface CreateStdioMcpServer {
|
|
559
|
+
/**
|
|
560
|
+
* The arguments to pass to the command
|
|
561
|
+
*/
|
|
562
|
+
args: Array<string>;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* The command to run (MCP 'local' client will run this command)
|
|
566
|
+
*/
|
|
567
|
+
command: string;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* The name of the server
|
|
571
|
+
*/
|
|
572
|
+
server_name: string;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Environment variables to set
|
|
576
|
+
*/
|
|
577
|
+
env?: { [key: string]: string } | null;
|
|
578
|
+
|
|
579
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export interface CreateSsemcpServer {
|
|
583
|
+
/**
|
|
584
|
+
* The name of the server
|
|
585
|
+
*/
|
|
586
|
+
server_name: string;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* The URL of the server
|
|
590
|
+
*/
|
|
591
|
+
server_url: string;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
595
|
+
*/
|
|
596
|
+
auth_header?: string | null;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* The authentication token or API key value
|
|
600
|
+
*/
|
|
601
|
+
auth_token?: string | null;
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Custom HTTP headers to include with requests
|
|
605
|
+
*/
|
|
606
|
+
custom_headers?: { [key: string]: string } | null;
|
|
607
|
+
|
|
608
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export interface CreateStreamableHttpmcpServer {
|
|
612
|
+
/**
|
|
613
|
+
* The name of the server
|
|
614
|
+
*/
|
|
615
|
+
server_name: string;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* The URL of the server
|
|
619
|
+
*/
|
|
620
|
+
server_url: string;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
624
|
+
*/
|
|
625
|
+
auth_header?: string | null;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* The authentication token or API key value
|
|
629
|
+
*/
|
|
630
|
+
auth_token?: string | null;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Custom HTTP headers to include with requests
|
|
634
|
+
*/
|
|
635
|
+
custom_headers?: { [key: string]: string } | null;
|
|
636
|
+
|
|
637
|
+
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
export type McpServerModifyParams =
|
|
642
|
+
| McpServerModifyParams.LettaSchemasMcpServerUpdateStdioMcpServer
|
|
643
|
+
| McpServerModifyParams.LettaSchemasMcpServerUpdateSsemcpServer
|
|
644
|
+
| McpServerModifyParams.LettaSchemasMcpServerUpdateStreamableHttpmcpServer;
|
|
645
|
+
|
|
646
|
+
export declare namespace McpServerModifyParams {
|
|
647
|
+
export interface LettaSchemasMcpServerUpdateStdioMcpServer {
|
|
648
|
+
/**
|
|
649
|
+
* The arguments to pass to the command
|
|
650
|
+
*/
|
|
651
|
+
args?: Array<string> | null;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* The command to run the MCP server
|
|
655
|
+
*/
|
|
656
|
+
command?: string | null;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Environment variables to set
|
|
660
|
+
*/
|
|
661
|
+
env?: { [key: string]: string } | null;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* The name of the MCP server
|
|
665
|
+
*/
|
|
666
|
+
server_name?: string | null;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
export interface LettaSchemasMcpServerUpdateSsemcpServer {
|
|
670
|
+
/**
|
|
671
|
+
* The authentication token (internal)
|
|
672
|
+
*/
|
|
673
|
+
token?: string | null;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
677
|
+
*/
|
|
678
|
+
auth_header?: string | null;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* The authentication token or API key value
|
|
682
|
+
*/
|
|
683
|
+
auth_token?: string | null;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Custom headers to send with requests
|
|
687
|
+
*/
|
|
688
|
+
custom_headers?: { [key: string]: string } | null;
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* The name of the MCP server
|
|
692
|
+
*/
|
|
693
|
+
server_name?: string | null;
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* The URL of the SSE MCP server
|
|
697
|
+
*/
|
|
698
|
+
server_url?: string | null;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export interface LettaSchemasMcpServerUpdateStreamableHttpmcpServer {
|
|
702
|
+
/**
|
|
703
|
+
* The authentication token (internal)
|
|
704
|
+
*/
|
|
705
|
+
token?: string | null;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
709
|
+
*/
|
|
710
|
+
auth_header?: string | null;
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* The authentication token or API key value
|
|
714
|
+
*/
|
|
715
|
+
auth_token?: string | null;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Custom headers to send with requests
|
|
719
|
+
*/
|
|
720
|
+
custom_headers?: { [key: string]: string } | null;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* The name of the MCP server
|
|
724
|
+
*/
|
|
725
|
+
server_name?: string | null;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* The URL of the Streamable HTTP MCP server
|
|
729
|
+
*/
|
|
730
|
+
server_url?: string | null;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
McpServers.Tools = Tools;
|
|
735
|
+
McpServers.Refresh = Refresh;
|
|
736
|
+
|
|
737
|
+
export declare namespace McpServers {
|
|
738
|
+
export {
|
|
739
|
+
type McpServerSchema as McpServerSchema,
|
|
740
|
+
type McpServerCreateResponse as McpServerCreateResponse,
|
|
741
|
+
type McpServerRetrieveResponse as McpServerRetrieveResponse,
|
|
742
|
+
type McpServerListResponse as McpServerListResponse,
|
|
743
|
+
type McpServerConnectResponse as McpServerConnectResponse,
|
|
744
|
+
type McpServerModifyResponse as McpServerModifyResponse,
|
|
745
|
+
type McpServerCreateParams as McpServerCreateParams,
|
|
746
|
+
type McpServerModifyParams as McpServerModifyParams,
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
export {
|
|
750
|
+
Tools as Tools,
|
|
751
|
+
type ToolListResponse as ToolListResponse,
|
|
752
|
+
type ToolRunResponse as ToolRunResponse,
|
|
753
|
+
type ToolRetrieveParams as ToolRetrieveParams,
|
|
754
|
+
type ToolRunParams as ToolRunParams,
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
export {
|
|
758
|
+
Refresh as Refresh,
|
|
759
|
+
type RefreshTriggerResponse as RefreshTriggerResponse,
|
|
760
|
+
type RefreshTriggerParams as RefreshTriggerParams,
|
|
761
|
+
};
|
|
762
|
+
}
|