@letta-ai/letta-client 0.1.62 → 0.1.63

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.
Files changed (134) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  6. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  7. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  8. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  9. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  10. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  11. package/api/resources/blocks/client/Client.js +6 -6
  12. package/api/resources/groups/client/Client.js +7 -7
  13. package/api/resources/health/client/Client.js +1 -1
  14. package/api/resources/identities/client/Client.js +6 -6
  15. package/api/resources/jobs/client/Client.js +4 -4
  16. package/api/resources/models/client/Client.js +2 -2
  17. package/api/resources/providers/client/Client.js +4 -4
  18. package/api/resources/runs/client/Client.js +7 -7
  19. package/api/resources/sources/client/Client.js +6 -6
  20. package/api/resources/sources/resources/files/client/Client.js +3 -3
  21. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  22. package/api/resources/steps/client/Client.js +2 -2
  23. package/api/resources/tag/client/Client.js +1 -1
  24. package/api/resources/templates/client/Client.js +1 -1
  25. package/api/resources/tools/client/Client.d.ts +29 -1
  26. package/api/resources/tools/client/Client.js +150 -15
  27. package/api/resources/tools/types/AddMcpServerRequest.d.ts +5 -0
  28. package/api/resources/tools/types/AddMcpServerResponseItem.d.ts +5 -0
  29. package/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +5 -0
  30. package/api/resources/tools/types/DeleteMcpServerResponseItem.js +5 -0
  31. package/api/resources/tools/types/ListMcpServersResponseValue.d.ts +1 -1
  32. package/api/resources/tools/types/index.d.ts +3 -0
  33. package/api/resources/tools/types/index.js +3 -0
  34. package/api/resources/voice/client/Client.js +1 -1
  35. package/api/types/McpServerType.d.ts +2 -2
  36. package/api/types/McpServerType.js +1 -1
  37. package/api/types/{LocalServerConfig.d.ts → StdioServerConfig.d.ts} +3 -1
  38. package/api/types/StdioServerConfig.js +5 -0
  39. package/api/types/index.d.ts +1 -1
  40. package/api/types/index.js +1 -1
  41. package/dist/api/resources/agents/client/Client.js +10 -10
  42. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  43. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  44. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  45. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  46. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  47. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  48. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  49. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  50. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  51. package/dist/api/resources/blocks/client/Client.js +6 -6
  52. package/dist/api/resources/groups/client/Client.js +7 -7
  53. package/dist/api/resources/health/client/Client.js +1 -1
  54. package/dist/api/resources/identities/client/Client.js +6 -6
  55. package/dist/api/resources/jobs/client/Client.js +4 -4
  56. package/dist/api/resources/models/client/Client.js +2 -2
  57. package/dist/api/resources/providers/client/Client.js +4 -4
  58. package/dist/api/resources/runs/client/Client.js +7 -7
  59. package/dist/api/resources/sources/client/Client.js +6 -6
  60. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  61. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  62. package/dist/api/resources/steps/client/Client.js +2 -2
  63. package/dist/api/resources/tag/client/Client.js +1 -1
  64. package/dist/api/resources/templates/client/Client.js +1 -1
  65. package/dist/api/resources/tools/client/Client.d.ts +29 -1
  66. package/dist/api/resources/tools/client/Client.js +150 -15
  67. package/dist/api/resources/tools/types/AddMcpServerRequest.d.ts +5 -0
  68. package/dist/api/resources/tools/types/AddMcpServerRequest.js +5 -0
  69. package/dist/api/resources/tools/types/AddMcpServerResponseItem.d.ts +5 -0
  70. package/dist/api/resources/tools/types/AddMcpServerResponseItem.js +5 -0
  71. package/dist/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +5 -0
  72. package/dist/api/resources/tools/types/DeleteMcpServerResponseItem.js +5 -0
  73. package/dist/api/resources/tools/types/ListMcpServersResponseValue.d.ts +1 -1
  74. package/dist/api/resources/tools/types/index.d.ts +3 -0
  75. package/dist/api/resources/tools/types/index.js +3 -0
  76. package/dist/api/resources/voice/client/Client.js +1 -1
  77. package/dist/api/types/McpServerType.d.ts +2 -2
  78. package/dist/api/types/McpServerType.js +1 -1
  79. package/dist/api/types/{LocalServerConfig.d.ts → StdioServerConfig.d.ts} +3 -1
  80. package/dist/api/types/StdioServerConfig.js +5 -0
  81. package/dist/api/types/index.d.ts +1 -1
  82. package/dist/api/types/index.js +1 -1
  83. package/dist/serialization/resources/tools/client/addMcpServer.d.ts +11 -0
  84. package/dist/serialization/resources/tools/client/addMcpServer.js +42 -0
  85. package/dist/serialization/resources/tools/client/deleteMcpServer.d.ts +11 -0
  86. package/dist/serialization/resources/tools/client/deleteMcpServer.js +42 -0
  87. package/dist/serialization/resources/tools/client/index.d.ts +2 -0
  88. package/dist/serialization/resources/tools/client/index.js +3 -1
  89. package/dist/serialization/resources/tools/types/AddMcpServerRequest.d.ts +12 -0
  90. package/dist/serialization/resources/tools/types/AddMcpServerRequest.js +43 -0
  91. package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +12 -0
  92. package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.js +43 -0
  93. package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +12 -0
  94. package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +43 -0
  95. package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +2 -2
  96. package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.js +2 -2
  97. package/dist/serialization/resources/tools/types/index.d.ts +3 -0
  98. package/dist/serialization/resources/tools/types/index.js +3 -0
  99. package/dist/serialization/types/McpServerType.d.ts +1 -1
  100. package/dist/serialization/types/McpServerType.js +1 -1
  101. package/dist/serialization/types/{LocalServerConfig.d.ts → StdioServerConfig.d.ts} +3 -2
  102. package/dist/serialization/types/{LocalServerConfig.js → StdioServerConfig.js} +3 -2
  103. package/dist/serialization/types/index.d.ts +1 -1
  104. package/dist/serialization/types/index.js +1 -1
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.js +1 -1
  107. package/package.json +1 -1
  108. package/reference.md +131 -1
  109. package/serialization/resources/tools/client/addMcpServer.d.ts +11 -0
  110. package/serialization/resources/tools/client/addMcpServer.js +42 -0
  111. package/serialization/resources/tools/client/deleteMcpServer.d.ts +11 -0
  112. package/serialization/resources/tools/client/deleteMcpServer.js +42 -0
  113. package/serialization/resources/tools/client/index.d.ts +2 -0
  114. package/serialization/resources/tools/client/index.js +3 -1
  115. package/serialization/resources/tools/types/AddMcpServerRequest.d.ts +12 -0
  116. package/serialization/resources/tools/types/AddMcpServerRequest.js +43 -0
  117. package/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +12 -0
  118. package/serialization/resources/tools/types/AddMcpServerResponseItem.js +43 -0
  119. package/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +12 -0
  120. package/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +43 -0
  121. package/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +2 -2
  122. package/serialization/resources/tools/types/ListMcpServersResponseValue.js +2 -2
  123. package/serialization/resources/tools/types/index.d.ts +3 -0
  124. package/serialization/resources/tools/types/index.js +3 -0
  125. package/serialization/types/McpServerType.d.ts +1 -1
  126. package/serialization/types/McpServerType.js +1 -1
  127. package/serialization/types/{LocalServerConfig.d.ts → StdioServerConfig.d.ts} +3 -2
  128. package/serialization/types/{LocalServerConfig.js → StdioServerConfig.js} +3 -2
  129. package/serialization/types/index.d.ts +1 -1
  130. package/serialization/types/index.js +1 -1
  131. package/version.d.ts +1 -1
  132. package/version.js +1 -1
  133. /package/api/{types/LocalServerConfig.js → resources/tools/types/AddMcpServerRequest.js} +0 -0
  134. /package/{dist/api/types/LocalServerConfig.js → api/resources/tools/types/AddMcpServerResponseItem.js} +0 -0
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -278,7 +278,7 @@ class Tools {
278
278
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
279
279
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
280
280
  method: "GET",
281
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
282
  contentType: "application/json",
283
283
  queryParameters: _queryParams,
284
284
  requestType: "json",
@@ -346,7 +346,7 @@ class Tools {
346
346
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
347
347
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
348
348
  method: "POST",
349
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
349
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
350
350
  contentType: "application/json",
351
351
  requestType: "json",
352
352
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -414,7 +414,7 @@ class Tools {
414
414
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
415
415
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
416
416
  method: "PUT",
417
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
417
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
418
418
  contentType: "application/json",
419
419
  requestType: "json",
420
420
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -479,7 +479,7 @@ class Tools {
479
479
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
480
480
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
481
481
  method: "POST",
482
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
482
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
483
483
  contentType: "application/json",
484
484
  requestType: "json",
485
485
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -549,7 +549,7 @@ class Tools {
549
549
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
550
550
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
551
551
  method: "POST",
552
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
552
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
553
553
  contentType: "application/json",
554
554
  requestType: "json",
555
555
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -614,7 +614,7 @@ class Tools {
614
614
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
615
615
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
616
616
  method: "GET",
617
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
617
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
618
618
  contentType: "application/json",
619
619
  requestType: "json",
620
620
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -679,7 +679,7 @@ class Tools {
679
679
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
680
680
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
681
681
  method: "GET",
682
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
682
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
683
683
  contentType: "application/json",
684
684
  requestType: "json",
685
685
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -744,7 +744,7 @@ class Tools {
744
744
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
745
745
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
746
746
  method: "POST",
747
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
747
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
748
748
  contentType: "application/json",
749
749
  requestType: "json",
750
750
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -808,7 +808,7 @@ class Tools {
808
808
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
809
809
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
810
810
  method: "GET",
811
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
811
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
812
812
  contentType: "application/json",
813
813
  requestType: "json",
814
814
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -856,6 +856,76 @@ class Tools {
856
856
  }
857
857
  });
858
858
  }
859
+ /**
860
+ * Add a new MCP server to the Letta MCP server config
861
+ *
862
+ * @param {Letta.AddMcpServerRequest} request
863
+ * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
864
+ *
865
+ * @throws {@link Letta.UnprocessableEntityError}
866
+ *
867
+ * @example
868
+ * await client.tools.addMcpServer({
869
+ * serverName: "server_name",
870
+ * command: "command",
871
+ * args: ["args"]
872
+ * })
873
+ */
874
+ addMcpServer(request, requestOptions) {
875
+ return __awaiter(this, void 0, void 0, function* () {
876
+ var _a, _b, _c;
877
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
878
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
879
+ method: "PUT",
880
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
881
+ contentType: "application/json",
882
+ requestType: "json",
883
+ body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
884
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
885
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
886
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
887
+ });
888
+ if (_response.ok) {
889
+ return serializers.tools.addMcpServer.Response.parseOrThrow(_response.body, {
890
+ unrecognizedObjectKeys: "passthrough",
891
+ allowUnrecognizedUnionMembers: true,
892
+ allowUnrecognizedEnumValues: true,
893
+ skipValidation: true,
894
+ breadcrumbsPrefix: ["response"],
895
+ });
896
+ }
897
+ if (_response.error.reason === "status-code") {
898
+ switch (_response.error.statusCode) {
899
+ case 422:
900
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
901
+ unrecognizedObjectKeys: "passthrough",
902
+ allowUnrecognizedUnionMembers: true,
903
+ allowUnrecognizedEnumValues: true,
904
+ skipValidation: true,
905
+ breadcrumbsPrefix: ["response"],
906
+ }));
907
+ default:
908
+ throw new errors.LettaError({
909
+ statusCode: _response.error.statusCode,
910
+ body: _response.error.body,
911
+ });
912
+ }
913
+ }
914
+ switch (_response.error.reason) {
915
+ case "non-json":
916
+ throw new errors.LettaError({
917
+ statusCode: _response.error.statusCode,
918
+ body: _response.error.rawBody,
919
+ });
920
+ case "timeout":
921
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PUT /v1/tools/mcp/servers.");
922
+ case "unknown":
923
+ throw new errors.LettaError({
924
+ message: _response.error.errorMessage,
925
+ });
926
+ }
927
+ });
928
+ }
859
929
  /**
860
930
  * Get a list of all tools for a specific MCP server
861
931
  *
@@ -873,7 +943,7 @@ class Tools {
873
943
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
874
944
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
875
945
  method: "GET",
876
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
946
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
877
947
  contentType: "application/json",
878
948
  requestType: "json",
879
949
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -922,7 +992,7 @@ class Tools {
922
992
  });
923
993
  }
924
994
  /**
925
- * Add a new MCP tool by server + tool name
995
+ * Register a new MCP tool as a Letta server by MCP server + tool name
926
996
  *
927
997
  * @param {string} mcpServerName
928
998
  * @param {string} mcpToolName
@@ -939,7 +1009,7 @@ class Tools {
939
1009
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
940
1010
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
941
1011
  method: "POST",
942
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1012
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
943
1013
  contentType: "application/json",
944
1014
  requestType: "json",
945
1015
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -987,6 +1057,71 @@ class Tools {
987
1057
  }
988
1058
  });
989
1059
  }
1060
+ /**
1061
+ * Add a new MCP server to the Letta MCP server config
1062
+ *
1063
+ * @param {string} mcpServerName
1064
+ * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
1065
+ *
1066
+ * @throws {@link Letta.UnprocessableEntityError}
1067
+ *
1068
+ * @example
1069
+ * await client.tools.deleteMcpServer("mcp_server_name")
1070
+ */
1071
+ deleteMcpServer(mcpServerName, requestOptions) {
1072
+ return __awaiter(this, void 0, void 0, function* () {
1073
+ var _a, _b, _c;
1074
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1075
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1076
+ method: "DELETE",
1077
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1078
+ contentType: "application/json",
1079
+ requestType: "json",
1080
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1081
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1082
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1083
+ });
1084
+ if (_response.ok) {
1085
+ return serializers.tools.deleteMcpServer.Response.parseOrThrow(_response.body, {
1086
+ unrecognizedObjectKeys: "passthrough",
1087
+ allowUnrecognizedUnionMembers: true,
1088
+ allowUnrecognizedEnumValues: true,
1089
+ skipValidation: true,
1090
+ breadcrumbsPrefix: ["response"],
1091
+ });
1092
+ }
1093
+ if (_response.error.reason === "status-code") {
1094
+ switch (_response.error.statusCode) {
1095
+ case 422:
1096
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1097
+ unrecognizedObjectKeys: "passthrough",
1098
+ allowUnrecognizedUnionMembers: true,
1099
+ allowUnrecognizedEnumValues: true,
1100
+ skipValidation: true,
1101
+ breadcrumbsPrefix: ["response"],
1102
+ }));
1103
+ default:
1104
+ throw new errors.LettaError({
1105
+ statusCode: _response.error.statusCode,
1106
+ body: _response.error.body,
1107
+ });
1108
+ }
1109
+ }
1110
+ switch (_response.error.reason) {
1111
+ case "non-json":
1112
+ throw new errors.LettaError({
1113
+ statusCode: _response.error.statusCode,
1114
+ body: _response.error.rawBody,
1115
+ });
1116
+ case "timeout":
1117
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/tools/mcp/servers/{mcp_server_name}.");
1118
+ case "unknown":
1119
+ throw new errors.LettaError({
1120
+ message: _response.error.errorMessage,
1121
+ });
1122
+ }
1123
+ });
1124
+ }
990
1125
  _getCustomAuthorizationHeaders() {
991
1126
  return __awaiter(this, void 0, void 0, function* () {
992
1127
  const tokenValue = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export type AddMcpServerRequest = Letta.StdioServerConfig | Letta.SseServerConfig;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export type AddMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export type DeleteMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type ListMcpServersResponseValue = Letta.SseServerConfig | Letta.LocalServerConfig;
5
+ export type ListMcpServersResponseValue = Letta.SseServerConfig | Letta.StdioServerConfig;
@@ -1 +1,4 @@
1
1
  export * from "./ListMcpServersResponseValue";
2
+ export * from "./AddMcpServerRequest";
3
+ export * from "./AddMcpServerResponseItem";
4
+ export * from "./DeleteMcpServerResponseItem";
@@ -15,3 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ListMcpServersResponseValue"), exports);
18
+ __exportStar(require("./AddMcpServerRequest"), exports);
19
+ __exportStar(require("./AddMcpServerResponseItem"), exports);
20
+ __exportStar(require("./DeleteMcpServerResponseItem"), exports);
@@ -81,7 +81,7 @@ class Voice {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice/${encodeURIComponent(agentId)}/chat/completions`),
83
83
  method: "POST",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.CreateVoiceChatCompletionsRequest.jsonOrThrow(request, {
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type McpServerType = "sse" | "local";
4
+ export type McpServerType = "sse" | "stdio";
5
5
  export declare const McpServerType: {
6
6
  readonly Sse: "sse";
7
- readonly Local: "local";
7
+ readonly Stdio: "stdio";
8
8
  };
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.McpServerType = void 0;
7
7
  exports.McpServerType = {
8
8
  Sse: "sse",
9
- Local: "local",
9
+ Stdio: "stdio",
10
10
  };
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export interface LocalServerConfig {
5
+ export interface StdioServerConfig {
6
6
  /** The name of the server */
7
7
  serverName: string;
8
8
  type?: Letta.McpServerType;
@@ -10,4 +10,6 @@ export interface LocalServerConfig {
10
10
  command: string;
11
11
  /** The arguments to pass to the command */
12
12
  args: string[];
13
+ /** Environment variables to set */
14
+ env?: Record<string, string | undefined>;
13
15
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -113,7 +113,6 @@ export * from "./LettaResponse";
113
113
  export * from "./LettaStreamingRequest";
114
114
  export * from "./LettaUsageStatistics";
115
115
  export * from "./LocalSandboxConfig";
116
- export * from "./LocalServerConfig";
117
116
  export * from "./McpServerType";
118
117
  export * from "./McpTool";
119
118
  export * from "./ManagerType";
@@ -145,6 +144,7 @@ export * from "./SandboxEnvironmentVariableCreate";
145
144
  export * from "./SandboxEnvironmentVariableUpdate";
146
145
  export * from "./SandboxType";
147
146
  export * from "./Source";
147
+ export * from "./StdioServerConfig";
148
148
  export * from "./Step";
149
149
  export * from "./SupervisorManager";
150
150
  export * from "./SystemMessageContent";
@@ -129,7 +129,6 @@ __exportStar(require("./LettaResponse"), exports);
129
129
  __exportStar(require("./LettaStreamingRequest"), exports);
130
130
  __exportStar(require("./LettaUsageStatistics"), exports);
131
131
  __exportStar(require("./LocalSandboxConfig"), exports);
132
- __exportStar(require("./LocalServerConfig"), exports);
133
132
  __exportStar(require("./McpServerType"), exports);
134
133
  __exportStar(require("./McpTool"), exports);
135
134
  __exportStar(require("./ManagerType"), exports);
@@ -161,6 +160,7 @@ __exportStar(require("./SandboxEnvironmentVariableCreate"), exports);
161
160
  __exportStar(require("./SandboxEnvironmentVariableUpdate"), exports);
162
161
  __exportStar(require("./SandboxType"), exports);
163
162
  __exportStar(require("./Source"), exports);
163
+ __exportStar(require("./StdioServerConfig"), exports);
164
164
  __exportStar(require("./Step"), exports);
165
165
  __exportStar(require("./SupervisorManager"), exports);
166
166
  __exportStar(require("./SystemMessageContent"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { AddMcpServerResponseItem } from "../types/AddMcpServerResponseItem";
8
+ export declare const Response: core.serialization.Schema<serializers.tools.addMcpServer.Response.Raw, Letta.AddMcpServerResponseItem[]>;
9
+ export declare namespace Response {
10
+ type Raw = AddMcpServerResponseItem.Raw[];
11
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const AddMcpServerResponseItem_1 = require("../types/AddMcpServerResponseItem");
42
+ exports.Response = core.serialization.list(AddMcpServerResponseItem_1.AddMcpServerResponseItem);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { DeleteMcpServerResponseItem } from "../types/DeleteMcpServerResponseItem";
8
+ export declare const Response: core.serialization.Schema<serializers.tools.deleteMcpServer.Response.Raw, Letta.DeleteMcpServerResponseItem[]>;
9
+ export declare namespace Response {
10
+ type Raw = DeleteMcpServerResponseItem.Raw[];
11
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const DeleteMcpServerResponseItem_1 = require("../types/DeleteMcpServerResponseItem");
42
+ exports.Response = core.serialization.list(DeleteMcpServerResponseItem_1.DeleteMcpServerResponseItem);
@@ -3,5 +3,7 @@ export * as addBaseTool from "./addBaseTool";
3
3
  export * as listComposioApps from "./listComposioApps";
4
4
  export * as listComposioActionsByApp from "./listComposioActionsByApp";
5
5
  export * as listMcpServers from "./listMcpServers";
6
+ export * as addMcpServer from "./addMcpServer";
6
7
  export * as listMcpToolsByServer from "./listMcpToolsByServer";
8
+ export * as deleteMcpServer from "./deleteMcpServer";
7
9
  export * from "./requests";
@@ -36,11 +36,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.listMcpToolsByServer = exports.listMcpServers = exports.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = void 0;
39
+ exports.deleteMcpServer = exports.listMcpToolsByServer = exports.addMcpServer = exports.listMcpServers = exports.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
41
  exports.addBaseTool = __importStar(require("./addBaseTool"));
42
42
  exports.listComposioApps = __importStar(require("./listComposioApps"));
43
43
  exports.listComposioActionsByApp = __importStar(require("./listComposioActionsByApp"));
44
44
  exports.listMcpServers = __importStar(require("./listMcpServers"));
45
+ exports.addMcpServer = __importStar(require("./addMcpServer"));
45
46
  exports.listMcpToolsByServer = __importStar(require("./listMcpToolsByServer"));
47
+ exports.deleteMcpServer = __importStar(require("./deleteMcpServer"));
46
48
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { StdioServerConfig } from "../../../types/StdioServerConfig";
8
+ import { SseServerConfig } from "../../../types/SseServerConfig";
9
+ export declare const AddMcpServerRequest: core.serialization.Schema<serializers.AddMcpServerRequest.Raw, Letta.AddMcpServerRequest>;
10
+ export declare namespace AddMcpServerRequest {
11
+ type Raw = StdioServerConfig.Raw | SseServerConfig.Raw;
12
+ }