@letta-ai/letta-client 1.0.0-alpha.21 → 1.0.0-alpha.22
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 +13 -0
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +2 -2
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +2 -2
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/folders.d.mts +2 -2
- package/resources/agents/folders.d.mts.map +1 -1
- package/resources/agents/folders.d.ts +2 -2
- package/resources/agents/folders.d.ts.map +1 -1
- package/resources/agents/index.d.mts +1 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +2 -77
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +2 -77
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +0 -7
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +0 -7
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.mts +39 -201
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -1
- package/resources/mcp-servers/mcp-servers.d.ts +39 -201
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -1
- package/resources/mcp-servers/mcp-servers.js.map +1 -1
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -1
- package/src/resources/agents/agents.ts +0 -4
- package/src/resources/agents/folders.ts +2 -2
- package/src/resources/agents/index.ts +0 -2
- package/src/resources/agents/messages.ts +1 -115
- package/src/resources/mcp-servers/mcp-servers.ts +39 -231
- 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
|
@@ -81,11 +81,6 @@ export class McpServers extends APIResource {
|
|
|
81
81
|
* Create a new SSE MCP server
|
|
82
82
|
*/
|
|
83
83
|
export interface CreateSseMcpServer {
|
|
84
|
-
/**
|
|
85
|
-
* The name of the server
|
|
86
|
-
*/
|
|
87
|
-
server_name: string;
|
|
88
|
-
|
|
89
84
|
/**
|
|
90
85
|
* The URL of the server
|
|
91
86
|
*/
|
|
@@ -106,7 +101,7 @@ export interface CreateSseMcpServer {
|
|
|
106
101
|
*/
|
|
107
102
|
custom_headers?: { [key: string]: string } | null;
|
|
108
103
|
|
|
109
|
-
|
|
104
|
+
mcp_server_type?: 'sse';
|
|
110
105
|
}
|
|
111
106
|
|
|
112
107
|
/**
|
|
@@ -123,28 +118,18 @@ export interface CreateStdioMcpServer {
|
|
|
123
118
|
*/
|
|
124
119
|
command: string;
|
|
125
120
|
|
|
126
|
-
/**
|
|
127
|
-
* The name of the server
|
|
128
|
-
*/
|
|
129
|
-
server_name: string;
|
|
130
|
-
|
|
131
121
|
/**
|
|
132
122
|
* Environment variables to set
|
|
133
123
|
*/
|
|
134
124
|
env?: { [key: string]: string } | null;
|
|
135
125
|
|
|
136
|
-
|
|
126
|
+
mcp_server_type?: 'stdio';
|
|
137
127
|
}
|
|
138
128
|
|
|
139
129
|
/**
|
|
140
130
|
* Create a new Streamable HTTP MCP server
|
|
141
131
|
*/
|
|
142
132
|
export interface CreateStreamableHTTPMcpServer {
|
|
143
|
-
/**
|
|
144
|
-
* The name of the server
|
|
145
|
-
*/
|
|
146
|
-
server_name: string;
|
|
147
|
-
|
|
148
133
|
/**
|
|
149
134
|
* The URL of the server
|
|
150
135
|
*/
|
|
@@ -165,7 +150,7 @@ export interface CreateStreamableHTTPMcpServer {
|
|
|
165
150
|
*/
|
|
166
151
|
custom_headers?: { [key: string]: string } | null;
|
|
167
152
|
|
|
168
|
-
|
|
153
|
+
mcp_server_type?: 'streamable_http';
|
|
169
154
|
}
|
|
170
155
|
|
|
171
156
|
/**
|
|
@@ -183,7 +168,7 @@ export interface McpToolExecuteRequest {
|
|
|
183
168
|
*/
|
|
184
169
|
export interface SseMcpServer {
|
|
185
170
|
/**
|
|
186
|
-
* The name of the server
|
|
171
|
+
* The name of the MCP server
|
|
187
172
|
*/
|
|
188
173
|
server_name: string;
|
|
189
174
|
|
|
@@ -212,7 +197,7 @@ export interface SseMcpServer {
|
|
|
212
197
|
*/
|
|
213
198
|
custom_headers?: { [key: string]: string } | null;
|
|
214
199
|
|
|
215
|
-
|
|
200
|
+
mcp_server_type?: 'sse';
|
|
216
201
|
}
|
|
217
202
|
|
|
218
203
|
/**
|
|
@@ -230,7 +215,7 @@ export interface StdioMcpServer {
|
|
|
230
215
|
command: string;
|
|
231
216
|
|
|
232
217
|
/**
|
|
233
|
-
* The name of the server
|
|
218
|
+
* The name of the MCP server
|
|
234
219
|
*/
|
|
235
220
|
server_name: string;
|
|
236
221
|
|
|
@@ -244,7 +229,7 @@ export interface StdioMcpServer {
|
|
|
244
229
|
*/
|
|
245
230
|
env?: { [key: string]: string } | null;
|
|
246
231
|
|
|
247
|
-
|
|
232
|
+
mcp_server_type?: 'stdio';
|
|
248
233
|
}
|
|
249
234
|
|
|
250
235
|
/**
|
|
@@ -252,7 +237,7 @@ export interface StdioMcpServer {
|
|
|
252
237
|
*/
|
|
253
238
|
export interface StreamableHTTPMcpServer {
|
|
254
239
|
/**
|
|
255
|
-
* The name of the server
|
|
240
|
+
* The name of the MCP server
|
|
256
241
|
*/
|
|
257
242
|
server_name: string;
|
|
258
243
|
|
|
@@ -281,7 +266,7 @@ export interface StreamableHTTPMcpServer {
|
|
|
281
266
|
*/
|
|
282
267
|
custom_headers?: { [key: string]: string } | null;
|
|
283
268
|
|
|
284
|
-
|
|
269
|
+
mcp_server_type?: 'streamable_http';
|
|
285
270
|
}
|
|
286
271
|
|
|
287
272
|
export interface ToolExecutionResult {
|
|
@@ -323,9 +308,9 @@ export interface ToolExecutionResult {
|
|
|
323
308
|
*/
|
|
324
309
|
export interface UpdateSseMcpServer {
|
|
325
310
|
/**
|
|
326
|
-
* The
|
|
311
|
+
* The URL of the server
|
|
327
312
|
*/
|
|
328
|
-
|
|
313
|
+
server_url: string | null;
|
|
329
314
|
|
|
330
315
|
/**
|
|
331
316
|
* The name of the authentication header (e.g., 'Authorization')
|
|
@@ -338,19 +323,11 @@ export interface UpdateSseMcpServer {
|
|
|
338
323
|
auth_token?: string | null;
|
|
339
324
|
|
|
340
325
|
/**
|
|
341
|
-
* Custom headers to
|
|
326
|
+
* Custom HTTP headers to include with requests
|
|
342
327
|
*/
|
|
343
328
|
custom_headers?: { [key: string]: string } | null;
|
|
344
329
|
|
|
345
|
-
|
|
346
|
-
* The name of the MCP server
|
|
347
|
-
*/
|
|
348
|
-
server_name?: string | null;
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* The URL of the SSE MCP server
|
|
352
|
-
*/
|
|
353
|
-
server_url?: string | null;
|
|
330
|
+
mcp_server_type?: 'sse';
|
|
354
331
|
}
|
|
355
332
|
|
|
356
333
|
/**
|
|
@@ -360,22 +337,19 @@ export interface UpdateStdioMcpServer {
|
|
|
360
337
|
/**
|
|
361
338
|
* The arguments to pass to the command
|
|
362
339
|
*/
|
|
363
|
-
args
|
|
340
|
+
args: Array<string> | null;
|
|
364
341
|
|
|
365
342
|
/**
|
|
366
|
-
* The command to run
|
|
343
|
+
* The command to run (MCP 'local' client will run this command)
|
|
367
344
|
*/
|
|
368
|
-
command
|
|
345
|
+
command: string | null;
|
|
369
346
|
|
|
370
347
|
/**
|
|
371
348
|
* Environment variables to set
|
|
372
349
|
*/
|
|
373
350
|
env?: { [key: string]: string } | null;
|
|
374
351
|
|
|
375
|
-
|
|
376
|
-
* The name of the MCP server
|
|
377
|
-
*/
|
|
378
|
-
server_name?: string | null;
|
|
352
|
+
mcp_server_type?: 'stdio';
|
|
379
353
|
}
|
|
380
354
|
|
|
381
355
|
/**
|
|
@@ -383,9 +357,9 @@ export interface UpdateStdioMcpServer {
|
|
|
383
357
|
*/
|
|
384
358
|
export interface UpdateStreamableHTTPMcpServer {
|
|
385
359
|
/**
|
|
386
|
-
* The
|
|
360
|
+
* The URL of the server
|
|
387
361
|
*/
|
|
388
|
-
|
|
362
|
+
server_url: string | null;
|
|
389
363
|
|
|
390
364
|
/**
|
|
391
365
|
* The name of the authentication header (e.g., 'Authorization')
|
|
@@ -398,19 +372,11 @@ export interface UpdateStreamableHTTPMcpServer {
|
|
|
398
372
|
auth_token?: string | null;
|
|
399
373
|
|
|
400
374
|
/**
|
|
401
|
-
* Custom headers to
|
|
375
|
+
* Custom HTTP headers to include with requests
|
|
402
376
|
*/
|
|
403
377
|
custom_headers?: { [key: string]: string } | null;
|
|
404
378
|
|
|
405
|
-
|
|
406
|
-
* The name of the MCP server
|
|
407
|
-
*/
|
|
408
|
-
server_name?: string | null;
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* The URL of the Streamable HTTP MCP server
|
|
412
|
-
*/
|
|
413
|
-
server_url?: string | null;
|
|
379
|
+
mcp_server_type?: 'streamable_http';
|
|
414
380
|
}
|
|
415
381
|
|
|
416
382
|
/**
|
|
@@ -432,186 +398,28 @@ export type McpServerListResponse = Array<StdioMcpServer | SseMcpServer | Stream
|
|
|
432
398
|
|
|
433
399
|
export type McpServerRefreshResponse = unknown;
|
|
434
400
|
|
|
435
|
-
export
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
export declare namespace McpServerCreateParams {
|
|
441
|
-
export interface CreateStdioMcpServer {
|
|
442
|
-
/**
|
|
443
|
-
* The arguments to pass to the command
|
|
444
|
-
*/
|
|
445
|
-
args: Array<string>;
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* The command to run (MCP 'local' client will run this command)
|
|
449
|
-
*/
|
|
450
|
-
command: string;
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* The name of the server
|
|
454
|
-
*/
|
|
455
|
-
server_name: string;
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* Environment variables to set
|
|
459
|
-
*/
|
|
460
|
-
env?: { [key: string]: string } | null;
|
|
461
|
-
|
|
462
|
-
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
export interface CreateSseMcpServer {
|
|
466
|
-
/**
|
|
467
|
-
* The name of the server
|
|
468
|
-
*/
|
|
469
|
-
server_name: string;
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* The URL of the server
|
|
473
|
-
*/
|
|
474
|
-
server_url: string;
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* The name of the authentication header (e.g., 'Authorization')
|
|
478
|
-
*/
|
|
479
|
-
auth_header?: string | null;
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* The authentication token or API key value
|
|
483
|
-
*/
|
|
484
|
-
auth_token?: string | null;
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Custom HTTP headers to include with requests
|
|
488
|
-
*/
|
|
489
|
-
custom_headers?: { [key: string]: string } | null;
|
|
490
|
-
|
|
491
|
-
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
492
|
-
}
|
|
401
|
+
export interface McpServerCreateParams {
|
|
402
|
+
/**
|
|
403
|
+
* The MCP server configuration (Stdio, SSE, or Streamable HTTP)
|
|
404
|
+
*/
|
|
405
|
+
config: CreateStdioMcpServer | CreateSseMcpServer | CreateStreamableHTTPMcpServer;
|
|
493
406
|
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
server_name: string;
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* The URL of the server
|
|
502
|
-
*/
|
|
503
|
-
server_url: string;
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* The name of the authentication header (e.g., 'Authorization')
|
|
507
|
-
*/
|
|
508
|
-
auth_header?: string | null;
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* The authentication token or API key value
|
|
512
|
-
*/
|
|
513
|
-
auth_token?: string | null;
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* Custom HTTP headers to include with requests
|
|
517
|
-
*/
|
|
518
|
-
custom_headers?: { [key: string]: string } | null;
|
|
519
|
-
|
|
520
|
-
type?: 'sse' | 'stdio' | 'streamable_http';
|
|
521
|
-
}
|
|
407
|
+
/**
|
|
408
|
+
* The name of the MCP server
|
|
409
|
+
*/
|
|
410
|
+
server_name: string;
|
|
522
411
|
}
|
|
523
412
|
|
|
524
|
-
export
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
export declare namespace McpServerUpdateParams {
|
|
530
|
-
export interface UpdateStdioMcpServer {
|
|
531
|
-
/**
|
|
532
|
-
* The arguments to pass to the command
|
|
533
|
-
*/
|
|
534
|
-
args?: Array<string> | null;
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* The command to run the MCP server
|
|
538
|
-
*/
|
|
539
|
-
command?: string | null;
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* Environment variables to set
|
|
543
|
-
*/
|
|
544
|
-
env?: { [key: string]: string } | null;
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* The name of the MCP server
|
|
548
|
-
*/
|
|
549
|
-
server_name?: string | null;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
export interface UpdateSseMcpServer {
|
|
553
|
-
/**
|
|
554
|
-
* The authentication token (internal)
|
|
555
|
-
*/
|
|
556
|
-
token?: string | null;
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* The name of the authentication header (e.g., 'Authorization')
|
|
560
|
-
*/
|
|
561
|
-
auth_header?: string | null;
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* The authentication token or API key value
|
|
565
|
-
*/
|
|
566
|
-
auth_token?: string | null;
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* Custom headers to send with requests
|
|
570
|
-
*/
|
|
571
|
-
custom_headers?: { [key: string]: string } | null;
|
|
572
|
-
|
|
573
|
-
/**
|
|
574
|
-
* The name of the MCP server
|
|
575
|
-
*/
|
|
576
|
-
server_name?: string | null;
|
|
577
|
-
|
|
578
|
-
/**
|
|
579
|
-
* The URL of the SSE MCP server
|
|
580
|
-
*/
|
|
581
|
-
server_url?: string | null;
|
|
582
|
-
}
|
|
413
|
+
export interface McpServerUpdateParams {
|
|
414
|
+
/**
|
|
415
|
+
* The MCP server configuration updates (Stdio, SSE, or Streamable HTTP)
|
|
416
|
+
*/
|
|
417
|
+
config: UpdateStdioMcpServer | UpdateSseMcpServer | UpdateStreamableHTTPMcpServer;
|
|
583
418
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
token?: string | null;
|
|
589
|
-
|
|
590
|
-
/**
|
|
591
|
-
* The name of the authentication header (e.g., 'Authorization')
|
|
592
|
-
*/
|
|
593
|
-
auth_header?: string | null;
|
|
594
|
-
|
|
595
|
-
/**
|
|
596
|
-
* The authentication token or API key value
|
|
597
|
-
*/
|
|
598
|
-
auth_token?: string | null;
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* Custom headers to send with requests
|
|
602
|
-
*/
|
|
603
|
-
custom_headers?: { [key: string]: string } | null;
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* The name of the MCP server
|
|
607
|
-
*/
|
|
608
|
-
server_name?: string | null;
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* The URL of the Streamable HTTP MCP server
|
|
612
|
-
*/
|
|
613
|
-
server_url?: string | null;
|
|
614
|
-
}
|
|
419
|
+
/**
|
|
420
|
+
* The name of the MCP server
|
|
421
|
+
*/
|
|
422
|
+
server_name?: string | null;
|
|
615
423
|
}
|
|
616
424
|
|
|
617
425
|
export interface McpServerRefreshParams {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.0.0-alpha.
|
|
1
|
+
export const VERSION = '1.0.0-alpha.22'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.0.0-alpha.
|
|
1
|
+
export declare const VERSION = "1.0.0-alpha.22";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.0.0-alpha.
|
|
1
|
+
export declare const VERSION = "1.0.0-alpha.22";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '1.0.0-alpha.
|
|
4
|
+
exports.VERSION = '1.0.0-alpha.22'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.0.0-alpha.
|
|
1
|
+
export const VERSION = '1.0.0-alpha.22'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|