@letta-ai/letta-client 0.1.58 → 0.1.59
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/api/resources/agents/client/Client.js +10 -10
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +7 -7
- package/api/resources/sources/client/Client.js +6 -6
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/api/resources/tools/client/Client.d.ts +36 -0
- package/api/resources/tools/client/Client.js +206 -11
- package/api/resources/tools/index.d.ts +1 -0
- package/api/resources/tools/index.js +1 -0
- package/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
- package/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
- package/api/resources/tools/types/index.d.ts +1 -0
- package/api/resources/tools/types/index.js +17 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/LocalServerConfig.d.ts +13 -0
- package/api/types/LocalServerConfig.js +5 -0
- package/api/types/McpServerType.d.ts +8 -0
- package/api/types/McpServerType.js +10 -0
- package/api/types/McpTool.d.ts +13 -0
- package/api/types/McpTool.js +5 -0
- package/api/types/SseServerConfig.d.ts +11 -0
- package/api/types/SseServerConfig.js +5 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/api/resources/agents/client/Client.js +10 -10
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +7 -7
- package/dist/api/resources/sources/client/Client.js +6 -6
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/api/resources/tools/client/Client.d.ts +36 -0
- package/dist/api/resources/tools/client/Client.js +206 -11
- package/dist/api/resources/tools/index.d.ts +1 -0
- package/dist/api/resources/tools/index.js +1 -0
- package/dist/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
- package/dist/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
- package/dist/api/resources/tools/types/index.d.ts +1 -0
- package/dist/api/resources/tools/types/index.js +17 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/LocalServerConfig.d.ts +13 -0
- package/dist/api/types/LocalServerConfig.js +5 -0
- package/dist/api/types/McpServerType.d.ts +8 -0
- package/dist/api/types/McpServerType.js +10 -0
- package/dist/api/types/McpTool.d.ts +13 -0
- package/dist/api/types/McpTool.js +5 -0
- package/dist/api/types/SseServerConfig.d.ts +11 -0
- package/dist/api/types/SseServerConfig.js +5 -0
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/serialization/resources/tools/client/index.d.ts +2 -0
- package/dist/serialization/resources/tools/client/index.js +3 -1
- package/dist/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listMcpServers.js +42 -0
- package/dist/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
- package/dist/serialization/resources/tools/index.d.ts +1 -0
- package/dist/serialization/resources/tools/index.js +1 -0
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
- package/dist/serialization/resources/tools/types/index.d.ts +1 -0
- package/dist/serialization/resources/tools/types/index.js +17 -0
- package/dist/serialization/types/LocalServerConfig.d.ts +16 -0
- package/dist/serialization/types/LocalServerConfig.js +47 -0
- package/dist/serialization/types/McpServerType.d.ts +10 -0
- package/dist/serialization/types/McpServerType.js +41 -0
- package/dist/serialization/types/McpTool.d.ts +15 -0
- package/dist/serialization/types/McpTool.js +47 -0
- package/dist/serialization/types/SseServerConfig.d.ts +15 -0
- package/dist/serialization/types/SseServerConfig.js +46 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +189 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/serialization/resources/tools/client/index.d.ts +2 -0
- package/serialization/resources/tools/client/index.js +3 -1
- package/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
- package/serialization/resources/tools/client/listMcpServers.js +42 -0
- package/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
- package/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
- package/serialization/resources/tools/index.d.ts +1 -0
- package/serialization/resources/tools/index.js +1 -0
- package/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
- package/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
- package/serialization/resources/tools/types/index.d.ts +1 -0
- package/serialization/resources/tools/types/index.js +17 -0
- package/serialization/types/LocalServerConfig.d.ts +16 -0
- package/serialization/types/LocalServerConfig.js +47 -0
- package/serialization/types/McpServerType.d.ts +10 -0
- package/serialization/types/McpServerType.js +41 -0
- package/serialization/types/McpTool.d.ts +15 -0
- package/serialization/types/McpTool.js +47 -0
- package/serialization/types/SseServerConfig.d.ts +15 -0
- package/serialization/types/SseServerConfig.js +46 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/reference.md
CHANGED
|
@@ -696,6 +696,195 @@ await client.tools.addComposioTool("composio_action_name");
|
|
|
696
696
|
</dl>
|
|
697
697
|
</details>
|
|
698
698
|
|
|
699
|
+
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">listMcpServers</a>() -> Record<string, Letta.ListMcpServersResponseValue></code></summary>
|
|
700
|
+
<dl>
|
|
701
|
+
<dd>
|
|
702
|
+
|
|
703
|
+
#### 📝 Description
|
|
704
|
+
|
|
705
|
+
<dl>
|
|
706
|
+
<dd>
|
|
707
|
+
|
|
708
|
+
<dl>
|
|
709
|
+
<dd>
|
|
710
|
+
|
|
711
|
+
Get a list of all configured MCP servers
|
|
712
|
+
|
|
713
|
+
</dd>
|
|
714
|
+
</dl>
|
|
715
|
+
</dd>
|
|
716
|
+
</dl>
|
|
717
|
+
|
|
718
|
+
#### 🔌 Usage
|
|
719
|
+
|
|
720
|
+
<dl>
|
|
721
|
+
<dd>
|
|
722
|
+
|
|
723
|
+
<dl>
|
|
724
|
+
<dd>
|
|
725
|
+
|
|
726
|
+
```typescript
|
|
727
|
+
await client.tools.listMcpServers();
|
|
728
|
+
```
|
|
729
|
+
|
|
730
|
+
</dd>
|
|
731
|
+
</dl>
|
|
732
|
+
</dd>
|
|
733
|
+
</dl>
|
|
734
|
+
|
|
735
|
+
#### ⚙️ Parameters
|
|
736
|
+
|
|
737
|
+
<dl>
|
|
738
|
+
<dd>
|
|
739
|
+
|
|
740
|
+
<dl>
|
|
741
|
+
<dd>
|
|
742
|
+
|
|
743
|
+
**requestOptions:** `Tools.RequestOptions`
|
|
744
|
+
|
|
745
|
+
</dd>
|
|
746
|
+
</dl>
|
|
747
|
+
</dd>
|
|
748
|
+
</dl>
|
|
749
|
+
|
|
750
|
+
</dd>
|
|
751
|
+
</dl>
|
|
752
|
+
</details>
|
|
753
|
+
|
|
754
|
+
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">listMcpToolsByServer</a>(mcpServerName) -> Letta.McpTool[]</code></summary>
|
|
755
|
+
<dl>
|
|
756
|
+
<dd>
|
|
757
|
+
|
|
758
|
+
#### 📝 Description
|
|
759
|
+
|
|
760
|
+
<dl>
|
|
761
|
+
<dd>
|
|
762
|
+
|
|
763
|
+
<dl>
|
|
764
|
+
<dd>
|
|
765
|
+
|
|
766
|
+
Get a list of all tools for a specific MCP server
|
|
767
|
+
|
|
768
|
+
</dd>
|
|
769
|
+
</dl>
|
|
770
|
+
</dd>
|
|
771
|
+
</dl>
|
|
772
|
+
|
|
773
|
+
#### 🔌 Usage
|
|
774
|
+
|
|
775
|
+
<dl>
|
|
776
|
+
<dd>
|
|
777
|
+
|
|
778
|
+
<dl>
|
|
779
|
+
<dd>
|
|
780
|
+
|
|
781
|
+
```typescript
|
|
782
|
+
await client.tools.listMcpToolsByServer("mcp_server_name");
|
|
783
|
+
```
|
|
784
|
+
|
|
785
|
+
</dd>
|
|
786
|
+
</dl>
|
|
787
|
+
</dd>
|
|
788
|
+
</dl>
|
|
789
|
+
|
|
790
|
+
#### ⚙️ Parameters
|
|
791
|
+
|
|
792
|
+
<dl>
|
|
793
|
+
<dd>
|
|
794
|
+
|
|
795
|
+
<dl>
|
|
796
|
+
<dd>
|
|
797
|
+
|
|
798
|
+
**mcpServerName:** `string`
|
|
799
|
+
|
|
800
|
+
</dd>
|
|
801
|
+
</dl>
|
|
802
|
+
|
|
803
|
+
<dl>
|
|
804
|
+
<dd>
|
|
805
|
+
|
|
806
|
+
**requestOptions:** `Tools.RequestOptions`
|
|
807
|
+
|
|
808
|
+
</dd>
|
|
809
|
+
</dl>
|
|
810
|
+
</dd>
|
|
811
|
+
</dl>
|
|
812
|
+
|
|
813
|
+
</dd>
|
|
814
|
+
</dl>
|
|
815
|
+
</details>
|
|
816
|
+
|
|
817
|
+
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">addMcpTool</a>(mcpServerName, mcpToolName) -> Letta.Tool</code></summary>
|
|
818
|
+
<dl>
|
|
819
|
+
<dd>
|
|
820
|
+
|
|
821
|
+
#### 📝 Description
|
|
822
|
+
|
|
823
|
+
<dl>
|
|
824
|
+
<dd>
|
|
825
|
+
|
|
826
|
+
<dl>
|
|
827
|
+
<dd>
|
|
828
|
+
|
|
829
|
+
Add a new MCP tool by server + tool name
|
|
830
|
+
|
|
831
|
+
</dd>
|
|
832
|
+
</dl>
|
|
833
|
+
</dd>
|
|
834
|
+
</dl>
|
|
835
|
+
|
|
836
|
+
#### 🔌 Usage
|
|
837
|
+
|
|
838
|
+
<dl>
|
|
839
|
+
<dd>
|
|
840
|
+
|
|
841
|
+
<dl>
|
|
842
|
+
<dd>
|
|
843
|
+
|
|
844
|
+
```typescript
|
|
845
|
+
await client.tools.addMcpTool("mcp_server_name", "mcp_tool_name");
|
|
846
|
+
```
|
|
847
|
+
|
|
848
|
+
</dd>
|
|
849
|
+
</dl>
|
|
850
|
+
</dd>
|
|
851
|
+
</dl>
|
|
852
|
+
|
|
853
|
+
#### ⚙️ Parameters
|
|
854
|
+
|
|
855
|
+
<dl>
|
|
856
|
+
<dd>
|
|
857
|
+
|
|
858
|
+
<dl>
|
|
859
|
+
<dd>
|
|
860
|
+
|
|
861
|
+
**mcpServerName:** `string`
|
|
862
|
+
|
|
863
|
+
</dd>
|
|
864
|
+
</dl>
|
|
865
|
+
|
|
866
|
+
<dl>
|
|
867
|
+
<dd>
|
|
868
|
+
|
|
869
|
+
**mcpToolName:** `string`
|
|
870
|
+
|
|
871
|
+
</dd>
|
|
872
|
+
</dl>
|
|
873
|
+
|
|
874
|
+
<dl>
|
|
875
|
+
<dd>
|
|
876
|
+
|
|
877
|
+
**requestOptions:** `Tools.RequestOptions`
|
|
878
|
+
|
|
879
|
+
</dd>
|
|
880
|
+
</dl>
|
|
881
|
+
</dd>
|
|
882
|
+
</dl>
|
|
883
|
+
|
|
884
|
+
</dd>
|
|
885
|
+
</dl>
|
|
886
|
+
</details>
|
|
887
|
+
|
|
699
888
|
## Sources
|
|
700
889
|
|
|
701
890
|
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">retrieve</a>(sourceId) -> Letta.Source</code></summary>
|
package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as Letta from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const AgentsSearchResponseAgentsItemToolsItemToolType: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemToolsItemToolType.Raw, Letta.AgentsSearchResponseAgentsItemToolsItemToolType>;
|
|
8
8
|
export declare namespace AgentsSearchResponseAgentsItemToolsItemToolType {
|
|
9
|
-
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain";
|
|
9
|
+
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain" | "external_mcp";
|
|
10
10
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
export * as tools from "./tools";
|
|
2
|
+
export * from "./tools/types";
|
|
1
3
|
export * as agents from "./agents";
|
|
2
4
|
export * from "./agents/types";
|
|
3
5
|
export * as voice from "./voice";
|
|
4
6
|
export * from "./voice/types";
|
|
5
7
|
export * as templates from "./templates";
|
|
6
8
|
export * from "./templates/types";
|
|
7
|
-
export * as tools from "./tools";
|
|
8
9
|
export * as sources from "./sources";
|
|
9
10
|
export * as identities from "./identities";
|
|
10
11
|
export * as models from "./models";
|
|
@@ -36,14 +36,15 @@ 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.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.
|
|
39
|
+
exports.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.templates = exports.voice = exports.agents = exports.tools = void 0;
|
|
40
|
+
exports.tools = __importStar(require("./tools"));
|
|
41
|
+
__exportStar(require("./tools/types"), exports);
|
|
40
42
|
exports.agents = __importStar(require("./agents"));
|
|
41
43
|
__exportStar(require("./agents/types"), exports);
|
|
42
44
|
exports.voice = __importStar(require("./voice"));
|
|
43
45
|
__exportStar(require("./voice/types"), exports);
|
|
44
46
|
exports.templates = __importStar(require("./templates"));
|
|
45
47
|
__exportStar(require("./templates/types"), exports);
|
|
46
|
-
exports.tools = __importStar(require("./tools"));
|
|
47
48
|
exports.sources = __importStar(require("./sources"));
|
|
48
49
|
exports.identities = __importStar(require("./identities"));
|
|
49
50
|
exports.models = __importStar(require("./models"));
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const TemplatesCreateAgentsResponseAgentsItemToolsItemToolType: core.serialization.Schema<serializers.TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.Raw, Letta.TemplatesCreateAgentsResponseAgentsItemToolsItemToolType>;
|
|
8
8
|
export declare namespace TemplatesCreateAgentsResponseAgentsItemToolsItemToolType {
|
|
9
|
-
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain";
|
|
9
|
+
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain" | "external_mcp";
|
|
10
10
|
}
|
|
@@ -2,4 +2,6 @@ export * as list from "./list";
|
|
|
2
2
|
export * as addBaseTool from "./addBaseTool";
|
|
3
3
|
export * as listComposioApps from "./listComposioApps";
|
|
4
4
|
export * as listComposioActionsByApp from "./listComposioActionsByApp";
|
|
5
|
+
export * as listMcpServers from "./listMcpServers";
|
|
6
|
+
export * as listMcpToolsByServer from "./listMcpToolsByServer";
|
|
5
7
|
export * from "./requests";
|
|
@@ -36,9 +36,11 @@ 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.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = void 0;
|
|
39
|
+
exports.listMcpToolsByServer = 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
|
+
exports.listMcpServers = __importStar(require("./listMcpServers"));
|
|
45
|
+
exports.listMcpToolsByServer = __importStar(require("./listMcpToolsByServer"));
|
|
44
46
|
__exportStar(require("./requests"), 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 { ListMcpServersResponseValue } from "../types/ListMcpServersResponseValue";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.tools.listMcpServers.Response.Raw, Record<string, Letta.ListMcpServersResponseValue>>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Record<string, ListMcpServersResponseValue.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 ListMcpServersResponseValue_1 = require("../types/ListMcpServersResponseValue");
|
|
42
|
+
exports.Response = core.serialization.record(core.serialization.string(), ListMcpServersResponseValue_1.ListMcpServersResponseValue);
|
|
@@ -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 { McpTool } from "../../../types/McpTool";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.tools.listMcpToolsByServer.Response.Raw, Letta.McpTool[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = McpTool.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 McpTool_1 = require("../../../types/McpTool");
|
|
42
|
+
exports.Response = core.serialization.list(McpTool_1.McpTool);
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), 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 { SseServerConfig } from "../../../types/SseServerConfig";
|
|
8
|
+
import { LocalServerConfig } from "../../../types/LocalServerConfig";
|
|
9
|
+
export declare const ListMcpServersResponseValue: core.serialization.Schema<serializers.ListMcpServersResponseValue.Raw, Letta.ListMcpServersResponseValue>;
|
|
10
|
+
export declare namespace ListMcpServersResponseValue {
|
|
11
|
+
type Raw = SseServerConfig.Raw | LocalServerConfig.Raw;
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.ListMcpServersResponseValue = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const SseServerConfig_1 = require("../../../types/SseServerConfig");
|
|
42
|
+
const LocalServerConfig_1 = require("../../../types/LocalServerConfig");
|
|
43
|
+
exports.ListMcpServersResponseValue = core.serialization.undiscriminatedUnion([SseServerConfig_1.SseServerConfig, LocalServerConfig_1.LocalServerConfig]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListMcpServersResponseValue";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ListMcpServersResponseValue"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { McpServerType } from "./McpServerType";
|
|
8
|
+
export declare const LocalServerConfig: core.serialization.ObjectSchema<serializers.LocalServerConfig.Raw, Letta.LocalServerConfig>;
|
|
9
|
+
export declare namespace LocalServerConfig {
|
|
10
|
+
interface Raw {
|
|
11
|
+
server_name: string;
|
|
12
|
+
type?: McpServerType.Raw | null;
|
|
13
|
+
command: string;
|
|
14
|
+
args: string[];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.LocalServerConfig = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const McpServerType_1 = require("./McpServerType");
|
|
42
|
+
exports.LocalServerConfig = core.serialization.object({
|
|
43
|
+
serverName: core.serialization.property("server_name", core.serialization.string()),
|
|
44
|
+
type: McpServerType_1.McpServerType.optional(),
|
|
45
|
+
command: core.serialization.string(),
|
|
46
|
+
args: core.serialization.list(core.serialization.string()),
|
|
47
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export declare const McpServerType: core.serialization.Schema<serializers.McpServerType.Raw, Letta.McpServerType>;
|
|
8
|
+
export declare namespace McpServerType {
|
|
9
|
+
type Raw = "sse" | "local";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.McpServerType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.McpServerType = core.serialization.enum_(["sse", "local"]);
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export declare const McpTool: core.serialization.ObjectSchema<serializers.McpTool.Raw, Letta.McpTool>;
|
|
8
|
+
export declare namespace McpTool {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
inputSchema: Record<string, unknown>;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.McpTool = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.McpTool = core.serialization
|
|
42
|
+
.object({
|
|
43
|
+
name: core.serialization.string(),
|
|
44
|
+
description: core.serialization.string().optional(),
|
|
45
|
+
inputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
46
|
+
})
|
|
47
|
+
.passthrough();
|