@letta-ai/letta-client 1.0.0-alpha.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +248 -0
- package/README.md +282 -319
- package/client.d.mts +61 -36
- package/client.d.mts.map +1 -1
- package/client.d.ts +61 -36
- package/client.d.ts.map +1 -1
- package/client.js +53 -23
- package/client.js.map +1 -1
- package/client.mjs +53 -23
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +96 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +96 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +199 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +191 -0
- package/core/pagination.mjs.map +1 -0
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +276 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +271 -0
- package/core/streaming.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +2 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +2 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +21 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/access-tokens.d.mts +105 -0
- package/resources/access-tokens.d.mts.map +1 -0
- package/resources/access-tokens.d.ts +105 -0
- package/resources/access-tokens.d.ts.map +1 -0
- package/resources/access-tokens.js +30 -0
- package/resources/access-tokens.js.map +1 -0
- package/resources/access-tokens.mjs +26 -0
- package/resources/access-tokens.mjs.map +1 -0
- package/resources/agents/agents.d.mts +517 -160
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +517 -160
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +16 -21
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +17 -22
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/archives.d.mts +31 -0
- package/resources/agents/archives.d.mts.map +1 -0
- package/resources/agents/archives.d.ts +31 -0
- package/resources/agents/archives.d.ts.map +1 -0
- package/resources/agents/archives.js +24 -0
- package/resources/agents/archives.js.map +1 -0
- package/resources/agents/archives.mjs +20 -0
- package/resources/agents/archives.mjs.map +1 -0
- package/resources/agents/blocks.d.mts +33 -55
- package/resources/agents/blocks.d.mts.map +1 -1
- package/resources/agents/blocks.d.ts +33 -55
- package/resources/agents/blocks.d.ts.map +1 -1
- package/resources/agents/blocks.js +2 -1
- package/resources/agents/blocks.js.map +1 -1
- package/resources/agents/blocks.mjs +2 -1
- package/resources/agents/blocks.mjs.map +1 -1
- package/resources/agents/files.d.mts +39 -79
- package/resources/agents/files.d.mts.map +1 -1
- package/resources/agents/files.d.ts +39 -79
- package/resources/agents/files.d.ts.map +1 -1
- package/resources/agents/files.js +5 -1
- package/resources/agents/files.js.map +1 -1
- package/resources/agents/files.mjs +5 -1
- package/resources/agents/files.mjs.map +1 -1
- package/resources/agents/folders.d.mts +50 -79
- package/resources/agents/folders.d.mts.map +1 -1
- package/resources/agents/folders.d.ts +50 -79
- package/resources/agents/folders.d.ts.map +1 -1
- package/resources/agents/folders.js +5 -1
- package/resources/agents/folders.js.map +1 -1
- package/resources/agents/folders.mjs +5 -1
- package/resources/agents/folders.mjs.map +1 -1
- package/resources/agents/groups.d.mts +6 -28
- package/resources/agents/groups.d.mts.map +1 -1
- package/resources/agents/groups.d.ts +6 -28
- package/resources/agents/groups.d.ts.map +1 -1
- package/resources/agents/groups.js +5 -1
- package/resources/agents/groups.js.map +1 -1
- package/resources/agents/groups.mjs +5 -1
- package/resources/agents/groups.mjs.map +1 -1
- package/resources/agents/identities.d.mts +31 -0
- package/resources/agents/identities.d.mts.map +1 -0
- package/resources/agents/identities.d.ts +31 -0
- package/resources/agents/identities.d.ts.map +1 -0
- package/resources/agents/identities.js +24 -0
- package/resources/agents/identities.js.map +1 -0
- package/resources/agents/identities.mjs +20 -0
- package/resources/agents/identities.mjs.map +1 -0
- package/resources/agents/index.d.mts +9 -7
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +9 -7
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +5 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +2 -0
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +668 -422
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +668 -422
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +27 -26
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +27 -26
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/agents/tools.d.mts +9 -30
- package/resources/agents/tools.d.mts.map +1 -1
- package/resources/agents/tools.d.ts +9 -30
- package/resources/agents/tools.d.ts.map +1 -1
- package/resources/agents/tools.js +5 -1
- package/resources/agents/tools.js.map +1 -1
- package/resources/agents/tools.mjs +5 -1
- package/resources/agents/tools.mjs.map +1 -1
- package/resources/archives/archives.d.mts +115 -0
- package/resources/archives/archives.d.mts.map +1 -0
- package/resources/archives/archives.d.ts +115 -0
- package/resources/archives/archives.d.ts.map +1 -0
- package/resources/archives/archives.js +50 -0
- package/resources/archives/archives.js.map +1 -0
- package/resources/archives/archives.mjs +45 -0
- package/resources/archives/archives.mjs.map +1 -0
- package/resources/archives/index.d.mts +3 -0
- package/resources/archives/index.d.mts.map +1 -0
- package/resources/archives/index.d.ts +3 -0
- package/resources/archives/index.d.ts.map +1 -0
- package/resources/archives/index.js +9 -0
- package/resources/archives/index.js.map +1 -0
- package/resources/archives/index.mjs +4 -0
- package/resources/archives/index.mjs.map +1 -0
- package/resources/archives/passages.d.mts +113 -0
- package/resources/archives/passages.d.mts.map +1 -0
- package/resources/archives/passages.d.ts +113 -0
- package/resources/archives/passages.d.ts.map +1 -0
- package/resources/archives/passages.js +32 -0
- package/resources/archives/passages.js.map +1 -0
- package/resources/archives/passages.mjs +28 -0
- package/resources/archives/passages.mjs.map +1 -0
- package/resources/archives.d.mts +1 -130
- package/resources/archives.d.mts.map +1 -1
- package/resources/archives.d.ts +1 -130
- package/resources/archives.d.ts.map +1 -1
- package/resources/archives.js +2 -37
- package/resources/archives.js.map +1 -1
- package/resources/archives.mjs +1 -35
- package/resources/archives.mjs.map +1 -1
- package/resources/batches/batches.d.mts +52 -34
- package/resources/batches/batches.d.mts.map +1 -1
- package/resources/batches/batches.d.ts +52 -34
- package/resources/batches/batches.d.ts.map +1 -1
- package/resources/batches/batches.js +2 -1
- package/resources/batches/batches.js.map +1 -1
- package/resources/batches/batches.mjs +2 -1
- package/resources/batches/batches.mjs.map +1 -1
- package/resources/batches/index.d.mts +2 -2
- package/resources/batches/index.d.mts.map +1 -1
- package/resources/batches/index.d.ts +2 -2
- package/resources/batches/index.d.ts.map +1 -1
- package/resources/batches/index.js.map +1 -1
- package/resources/batches/index.mjs.map +1 -1
- package/resources/batches/messages.d.mts +6 -30
- package/resources/batches/messages.d.mts.map +1 -1
- package/resources/batches/messages.d.ts +6 -30
- package/resources/batches/messages.d.ts.map +1 -1
- package/resources/batches/messages.js +2 -1
- package/resources/batches/messages.js.map +1 -1
- package/resources/batches/messages.mjs +2 -1
- package/resources/batches/messages.mjs.map +1 -1
- package/resources/blocks/agents.d.mts +6 -28
- package/resources/blocks/agents.d.mts.map +1 -1
- package/resources/blocks/agents.d.ts +6 -28
- package/resources/blocks/agents.d.ts.map +1 -1
- package/resources/blocks/agents.js +5 -1
- package/resources/blocks/agents.js.map +1 -1
- package/resources/blocks/agents.mjs +5 -1
- package/resources/blocks/agents.mjs.map +1 -1
- package/resources/blocks/blocks.d.mts +108 -48
- package/resources/blocks/blocks.d.mts.map +1 -1
- package/resources/blocks/blocks.d.ts +108 -48
- package/resources/blocks/blocks.d.ts.map +1 -1
- package/resources/blocks/blocks.js +3 -8
- package/resources/blocks/blocks.js.map +1 -1
- package/resources/blocks/blocks.mjs +3 -8
- package/resources/blocks/blocks.mjs.map +1 -1
- package/resources/blocks/index.d.mts +2 -2
- package/resources/blocks/index.d.mts.map +1 -1
- package/resources/blocks/index.d.ts +2 -2
- package/resources/blocks/index.d.ts.map +1 -1
- package/resources/blocks/index.js.map +1 -1
- package/resources/blocks/index.mjs.map +1 -1
- package/resources/folders/files.d.mts +75 -97
- package/resources/folders/files.d.mts.map +1 -1
- package/resources/folders/files.d.ts +75 -97
- package/resources/folders/files.d.ts.map +1 -1
- package/resources/folders/files.js +5 -1
- package/resources/folders/files.js.map +1 -1
- package/resources/folders/files.mjs +5 -1
- package/resources/folders/files.mjs.map +1 -1
- package/resources/folders/folders.d.mts +11 -44
- package/resources/folders/folders.d.mts.map +1 -1
- package/resources/folders/folders.d.ts +11 -44
- package/resources/folders/folders.d.ts.map +1 -1
- package/resources/folders/folders.js +2 -7
- package/resources/folders/folders.js.map +1 -1
- package/resources/folders/folders.mjs +2 -7
- package/resources/folders/folders.mjs.map +1 -1
- package/resources/folders/index.d.mts +2 -2
- package/resources/folders/index.d.mts.map +1 -1
- package/resources/folders/index.d.ts +2 -2
- package/resources/folders/index.d.ts.map +1 -1
- package/resources/folders/index.js.map +1 -1
- package/resources/folders/index.mjs.map +1 -1
- package/resources/groups/groups.d.mts +17 -67
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +17 -67
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +6 -28
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +6 -28
- package/resources/groups/groups.mjs.map +1 -1
- package/resources/groups/index.d.mts +2 -2
- package/resources/groups/index.d.mts.map +1 -1
- package/resources/groups/index.d.ts +2 -2
- package/resources/groups/index.d.ts.map +1 -1
- package/resources/groups/index.js.map +1 -1
- package/resources/groups/index.mjs.map +1 -1
- package/resources/groups/messages.d.mts +145 -79
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +145 -79
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/groups/messages.js +18 -10
- package/resources/groups/messages.js.map +1 -1
- package/resources/groups/messages.mjs +18 -10
- package/resources/groups/messages.mjs.map +1 -1
- package/resources/identities/agents.d.mts +6 -28
- package/resources/identities/agents.d.mts.map +1 -1
- package/resources/identities/agents.d.ts +6 -28
- package/resources/identities/agents.d.ts.map +1 -1
- package/resources/identities/agents.js +2 -1
- package/resources/identities/agents.js.map +1 -1
- package/resources/identities/agents.mjs +2 -1
- package/resources/identities/agents.mjs.map +1 -1
- package/resources/identities/blocks.d.mts +7 -29
- package/resources/identities/blocks.d.mts.map +1 -1
- package/resources/identities/blocks.d.ts +7 -29
- package/resources/identities/blocks.d.ts.map +1 -1
- package/resources/identities/blocks.js +2 -1
- package/resources/identities/blocks.js.map +1 -1
- package/resources/identities/blocks.mjs +2 -1
- package/resources/identities/blocks.mjs.map +1 -1
- package/resources/identities/identities.d.mts +30 -65
- package/resources/identities/identities.d.mts.map +1 -1
- package/resources/identities/identities.d.ts +30 -65
- package/resources/identities/identities.d.ts.map +1 -1
- package/resources/identities/identities.js +7 -29
- package/resources/identities/identities.js.map +1 -1
- package/resources/identities/identities.mjs +7 -29
- package/resources/identities/identities.mjs.map +1 -1
- package/resources/identities/index.d.mts +3 -3
- package/resources/identities/index.d.mts.map +1 -1
- package/resources/identities/index.d.ts +3 -3
- package/resources/identities/index.d.ts.map +1 -1
- package/resources/identities/index.js.map +1 -1
- package/resources/identities/index.mjs.map +1 -1
- package/resources/identities/properties.d.mts +1 -1
- package/resources/identities/properties.d.ts +1 -1
- package/resources/identities/properties.js +1 -1
- package/resources/identities/properties.mjs +1 -1
- package/resources/index.d.mts +13 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-servers/index.d.mts +3 -0
- package/resources/mcp-servers/index.d.mts.map +1 -0
- package/resources/mcp-servers/index.d.ts +3 -0
- package/resources/mcp-servers/index.d.ts.map +1 -0
- package/resources/mcp-servers/index.js +9 -0
- package/resources/mcp-servers/index.js.map +1 -0
- package/resources/mcp-servers/index.mjs +4 -0
- package/resources/mcp-servers/index.mjs.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.mts +349 -0
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.ts +349 -0
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers/mcp-servers.js +69 -0
- package/resources/mcp-servers/mcp-servers.js.map +1 -0
- package/resources/mcp-servers/mcp-servers.mjs +64 -0
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -0
- package/resources/mcp-servers/tools.d.mts +42 -0
- package/resources/mcp-servers/tools.d.mts.map +1 -0
- package/resources/mcp-servers/tools.d.ts +42 -0
- package/resources/mcp-servers/tools.d.ts.map +1 -0
- package/resources/mcp-servers/tools.js +36 -0
- package/resources/mcp-servers/tools.js.map +1 -0
- package/resources/mcp-servers/tools.mjs +32 -0
- package/resources/mcp-servers/tools.mjs.map +1 -0
- package/resources/mcp-servers.d.mts +2 -0
- package/resources/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers.d.ts +2 -0
- package/resources/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers.js +6 -0
- package/resources/mcp-servers.js.map +1 -0
- package/resources/mcp-servers.mjs +3 -0
- package/resources/mcp-servers.mjs.map +1 -0
- package/resources/models/embeddings.d.mts +6 -2
- package/resources/models/embeddings.d.mts.map +1 -1
- package/resources/models/embeddings.d.ts +6 -2
- package/resources/models/embeddings.d.ts.map +1 -1
- package/resources/models/embeddings.js +5 -1
- package/resources/models/embeddings.js.map +1 -1
- package/resources/models/embeddings.mjs +5 -1
- package/resources/models/embeddings.mjs.map +1 -1
- package/resources/models/index.d.mts +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +180 -4
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +180 -4
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +5 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +5 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/runs/index.d.mts +3 -3
- package/resources/runs/index.d.mts.map +1 -1
- package/resources/runs/index.d.ts +3 -3
- package/resources/runs/index.d.ts.map +1 -1
- package/resources/runs/index.js.map +1 -1
- package/resources/runs/index.mjs.map +1 -1
- package/resources/runs/messages.d.mts +8 -28
- package/resources/runs/messages.d.mts.map +1 -1
- package/resources/runs/messages.d.ts +8 -28
- package/resources/runs/messages.d.ts.map +1 -1
- package/resources/runs/messages.js +10 -2
- package/resources/runs/messages.js.map +1 -1
- package/resources/runs/messages.mjs +10 -2
- package/resources/runs/messages.mjs.map +1 -1
- package/resources/runs/runs.d.mts +10 -36
- package/resources/runs/runs.d.mts.map +1 -1
- package/resources/runs/runs.d.ts +10 -36
- package/resources/runs/runs.d.ts.map +1 -1
- package/resources/runs/runs.js +2 -1
- package/resources/runs/runs.js.map +1 -1
- package/resources/runs/runs.mjs +3 -2
- package/resources/runs/runs.mjs.map +1 -1
- package/resources/runs/steps.d.mts +6 -26
- package/resources/runs/steps.d.mts.map +1 -1
- package/resources/runs/steps.d.ts +6 -26
- package/resources/runs/steps.d.ts.map +1 -1
- package/resources/runs/steps.js +5 -1
- package/resources/runs/steps.js.map +1 -1
- package/resources/runs/steps.mjs +5 -1
- package/resources/runs/steps.mjs.map +1 -1
- package/resources/steps/index.d.mts +2 -2
- package/resources/steps/index.d.mts.map +1 -1
- package/resources/steps/index.d.ts +2 -2
- package/resources/steps/index.d.ts.map +1 -1
- package/resources/steps/index.js.map +1 -1
- package/resources/steps/index.mjs +1 -1
- package/resources/steps/index.mjs.map +1 -1
- package/resources/steps/messages.d.mts +14 -28
- package/resources/steps/messages.d.mts.map +1 -1
- package/resources/steps/messages.d.ts +14 -28
- package/resources/steps/messages.d.ts.map +1 -1
- package/resources/steps/messages.js +5 -1
- package/resources/steps/messages.js.map +1 -1
- package/resources/steps/messages.mjs +5 -1
- package/resources/steps/messages.mjs.map +1 -1
- package/resources/steps/steps.d.mts +17 -44
- package/resources/steps/steps.d.mts.map +1 -1
- package/resources/steps/steps.d.ts +17 -44
- package/resources/steps/steps.d.ts.map +1 -1
- package/resources/steps/steps.js +3 -11
- package/resources/steps/steps.js.map +1 -1
- package/resources/steps/steps.mjs +3 -11
- package/resources/steps/steps.mjs.map +1 -1
- package/resources/templates/agents.d.mts +9 -14
- package/resources/templates/agents.d.mts.map +1 -1
- package/resources/templates/agents.d.ts +9 -14
- package/resources/templates/agents.d.ts.map +1 -1
- package/resources/templates/agents.js +2 -3
- package/resources/templates/agents.js.map +1 -1
- package/resources/templates/agents.mjs +2 -3
- package/resources/templates/agents.mjs.map +1 -1
- package/resources/tools.d.mts +6 -68
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +6 -68
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +2 -7
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +2 -7
- package/resources/tools.mjs.map +1 -1
- package/src/client.ts +274 -127
- package/src/core/pagination.ts +334 -0
- package/src/core/streaming.ts +331 -0
- package/src/index.ts +1 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +2 -0
- package/src/pagination.ts +2 -0
- package/src/resources/access-tokens.ts +163 -0
- package/src/resources/agents/agents.ts +722 -242
- package/src/resources/agents/archives.ts +51 -0
- package/src/resources/agents/blocks.ts +50 -63
- package/src/resources/agents/files.ts +47 -90
- package/src/resources/agents/folders.ts +58 -88
- package/src/resources/agents/groups.ts +11 -35
- package/src/resources/agents/identities.ts +51 -0
- package/src/resources/agents/index.ts +40 -12
- package/src/resources/agents/messages.ts +941 -550
- package/src/resources/agents/tools.ts +13 -37
- package/src/resources/archives/archives.ts +170 -0
- package/src/resources/archives/index.ts +17 -0
- package/src/resources/archives/passages.ts +150 -0
- package/src/resources/archives.ts +1 -178
- package/src/resources/batches/batches.ts +74 -46
- package/src/resources/batches/index.ts +2 -2
- package/src/resources/batches/messages.ts +12 -37
- package/src/resources/blocks/agents.ts +11 -35
- package/src/resources/blocks/blocks.ts +130 -64
- package/src/resources/blocks/index.ts +3 -3
- package/src/resources/folders/files.ts +90 -113
- package/src/resources/folders/folders.ts +14 -55
- package/src/resources/folders/index.ts +2 -2
- package/src/resources/groups/groups.ts +21 -102
- package/src/resources/groups/index.ts +2 -4
- package/src/resources/groups/messages.ts +215 -103
- package/src/resources/identities/agents.ts +12 -35
- package/src/resources/identities/blocks.ts +13 -36
- package/src/resources/identities/identities.ts +35 -107
- package/src/resources/identities/index.ts +3 -4
- package/src/resources/identities/properties.ts +1 -1
- package/src/resources/index.ts +55 -18
- package/src/resources/mcp-servers/index.ts +25 -0
- package/src/resources/mcp-servers/mcp-servers.ts +460 -0
- package/src/resources/mcp-servers/tools.ts +69 -0
- package/src/resources/mcp-servers.ts +3 -0
- package/src/resources/models/embeddings.ts +6 -2
- package/src/resources/models/index.ts +2 -0
- package/src/resources/models/models.ts +260 -3
- package/src/resources/runs/index.ts +2 -3
- package/src/resources/runs/messages.ts +18 -37
- package/src/resources/runs/runs.ts +14 -54
- package/src/resources/runs/steps.ts +11 -33
- package/src/resources/steps/index.ts +7 -2
- package/src/resources/steps/messages.ts +25 -35
- package/src/resources/steps/steps.ts +20 -61
- package/src/resources/templates/agents.ts +14 -17
- package/src/resources/tools.ts +8 -92
- package/src/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +2 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +2 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +2 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-servers.d.mts","sourceRoot":"","sources":["../../src/resources/mcp-servers/mcp-servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,aAAa,EAAE,KAAK,EAAE;OAC9D,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAA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,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as AgentsAPI from "../agents/agents.js";
|
|
3
|
+
import * as ToolsAPI from "./tools.js";
|
|
4
|
+
import { ToolListResponse, ToolRetrieveParams, ToolRunParams, Tools } from "./tools.js";
|
|
5
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
+
export declare class McpServers extends APIResource {
|
|
8
|
+
tools: ToolsAPI.Tools;
|
|
9
|
+
/**
|
|
10
|
+
* Add a new MCP server to the Letta MCP server config
|
|
11
|
+
*/
|
|
12
|
+
create(body: McpServerCreateParams, options?: RequestOptions): APIPromise<McpServerCreateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a specific MCP server
|
|
15
|
+
*/
|
|
16
|
+
retrieve(mcpServerID: string, options?: RequestOptions): APIPromise<McpServerRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Update an existing MCP server configuration
|
|
19
|
+
*/
|
|
20
|
+
update(mcpServerID: string, body: McpServerUpdateParams, options?: RequestOptions): APIPromise<McpServerUpdateResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get a list of all configured MCP servers
|
|
23
|
+
*/
|
|
24
|
+
list(options?: RequestOptions): APIPromise<McpServerListResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Delete an MCP server by its ID
|
|
27
|
+
*/
|
|
28
|
+
delete(mcpServerID: string, options?: RequestOptions): APIPromise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Refresh tools for an MCP server by:
|
|
31
|
+
*
|
|
32
|
+
* 1. Fetching current tools from the MCP server
|
|
33
|
+
* 2. Deleting tools that no longer exist on the server
|
|
34
|
+
* 3. Updating schemas for existing tools
|
|
35
|
+
* 4. Adding new tools from the server
|
|
36
|
+
*
|
|
37
|
+
* Returns a summary of changes made.
|
|
38
|
+
*/
|
|
39
|
+
refresh(mcpServerID: string, params?: McpServerRefreshParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Create a new SSE MCP server
|
|
43
|
+
*/
|
|
44
|
+
export interface CreateSseMcpServer {
|
|
45
|
+
/**
|
|
46
|
+
* The URL of the server
|
|
47
|
+
*/
|
|
48
|
+
server_url: string;
|
|
49
|
+
/**
|
|
50
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
51
|
+
*/
|
|
52
|
+
auth_header?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* The authentication token or API key value
|
|
55
|
+
*/
|
|
56
|
+
auth_token?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* Custom HTTP headers to include with requests
|
|
59
|
+
*/
|
|
60
|
+
custom_headers?: {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
} | null;
|
|
63
|
+
mcp_server_type?: 'sse';
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Create a new Stdio MCP server
|
|
67
|
+
*/
|
|
68
|
+
export interface CreateStdioMcpServer {
|
|
69
|
+
/**
|
|
70
|
+
* The arguments to pass to the command
|
|
71
|
+
*/
|
|
72
|
+
args: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
* The command to run (MCP 'local' client will run this command)
|
|
75
|
+
*/
|
|
76
|
+
command: string;
|
|
77
|
+
/**
|
|
78
|
+
* Environment variables to set
|
|
79
|
+
*/
|
|
80
|
+
env?: {
|
|
81
|
+
[key: string]: string;
|
|
82
|
+
} | null;
|
|
83
|
+
mcp_server_type?: 'stdio';
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Create a new Streamable HTTP MCP server
|
|
87
|
+
*/
|
|
88
|
+
export interface CreateStreamableHTTPMcpServer {
|
|
89
|
+
/**
|
|
90
|
+
* The URL of the server
|
|
91
|
+
*/
|
|
92
|
+
server_url: string;
|
|
93
|
+
/**
|
|
94
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
95
|
+
*/
|
|
96
|
+
auth_header?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* The authentication token or API key value
|
|
99
|
+
*/
|
|
100
|
+
auth_token?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* Custom HTTP headers to include with requests
|
|
103
|
+
*/
|
|
104
|
+
custom_headers?: {
|
|
105
|
+
[key: string]: string;
|
|
106
|
+
} | null;
|
|
107
|
+
mcp_server_type?: 'streamable_http';
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Request to execute an MCP tool by IDs.
|
|
111
|
+
*/
|
|
112
|
+
export interface McpToolExecuteRequest {
|
|
113
|
+
/**
|
|
114
|
+
* Arguments to pass to the MCP tool
|
|
115
|
+
*/
|
|
116
|
+
args?: {
|
|
117
|
+
[key: string]: unknown;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* An SSE MCP server
|
|
122
|
+
*/
|
|
123
|
+
export interface SseMcpServer {
|
|
124
|
+
/**
|
|
125
|
+
* The name of the MCP server
|
|
126
|
+
*/
|
|
127
|
+
server_name: string;
|
|
128
|
+
/**
|
|
129
|
+
* The URL of the server
|
|
130
|
+
*/
|
|
131
|
+
server_url: string;
|
|
132
|
+
/**
|
|
133
|
+
* The human-friendly ID of the Mcp_server
|
|
134
|
+
*/
|
|
135
|
+
id?: string;
|
|
136
|
+
/**
|
|
137
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
138
|
+
*/
|
|
139
|
+
auth_header?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* The authentication token or API key value
|
|
142
|
+
*/
|
|
143
|
+
auth_token?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* Custom HTTP headers to include with requests
|
|
146
|
+
*/
|
|
147
|
+
custom_headers?: {
|
|
148
|
+
[key: string]: string;
|
|
149
|
+
} | null;
|
|
150
|
+
mcp_server_type?: 'sse';
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* A Stdio MCP server
|
|
154
|
+
*/
|
|
155
|
+
export interface StdioMcpServer {
|
|
156
|
+
/**
|
|
157
|
+
* The arguments to pass to the command
|
|
158
|
+
*/
|
|
159
|
+
args: Array<string>;
|
|
160
|
+
/**
|
|
161
|
+
* The command to run (MCP 'local' client will run this command)
|
|
162
|
+
*/
|
|
163
|
+
command: string;
|
|
164
|
+
/**
|
|
165
|
+
* The name of the MCP server
|
|
166
|
+
*/
|
|
167
|
+
server_name: string;
|
|
168
|
+
/**
|
|
169
|
+
* The human-friendly ID of the Mcp_server
|
|
170
|
+
*/
|
|
171
|
+
id?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Environment variables to set
|
|
174
|
+
*/
|
|
175
|
+
env?: {
|
|
176
|
+
[key: string]: string;
|
|
177
|
+
} | null;
|
|
178
|
+
mcp_server_type?: 'stdio';
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* A Streamable HTTP MCP server
|
|
182
|
+
*/
|
|
183
|
+
export interface StreamableHTTPMcpServer {
|
|
184
|
+
/**
|
|
185
|
+
* The name of the MCP server
|
|
186
|
+
*/
|
|
187
|
+
server_name: string;
|
|
188
|
+
/**
|
|
189
|
+
* The URL of the server
|
|
190
|
+
*/
|
|
191
|
+
server_url: string;
|
|
192
|
+
/**
|
|
193
|
+
* The human-friendly ID of the Mcp_server
|
|
194
|
+
*/
|
|
195
|
+
id?: string;
|
|
196
|
+
/**
|
|
197
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
198
|
+
*/
|
|
199
|
+
auth_header?: string | null;
|
|
200
|
+
/**
|
|
201
|
+
* The authentication token or API key value
|
|
202
|
+
*/
|
|
203
|
+
auth_token?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* Custom HTTP headers to include with requests
|
|
206
|
+
*/
|
|
207
|
+
custom_headers?: {
|
|
208
|
+
[key: string]: string;
|
|
209
|
+
} | null;
|
|
210
|
+
mcp_server_type?: 'streamable_http';
|
|
211
|
+
}
|
|
212
|
+
export interface ToolExecutionResult {
|
|
213
|
+
/**
|
|
214
|
+
* The status of the tool execution and return object
|
|
215
|
+
*/
|
|
216
|
+
status: 'success' | 'error';
|
|
217
|
+
/**
|
|
218
|
+
* Representation of an agent's state. This is the state of the agent at a given
|
|
219
|
+
* time, and is persisted in the DB backend. The state has all the information
|
|
220
|
+
* needed to recreate a persisted agent.
|
|
221
|
+
*/
|
|
222
|
+
agent_state?: AgentsAPI.AgentState | null;
|
|
223
|
+
/**
|
|
224
|
+
* The function return object
|
|
225
|
+
*/
|
|
226
|
+
func_return?: unknown;
|
|
227
|
+
/**
|
|
228
|
+
* The fingerprint of the config for the sandbox
|
|
229
|
+
*/
|
|
230
|
+
sandbox_config_fingerprint?: string | null;
|
|
231
|
+
/**
|
|
232
|
+
* Captured stderr from the function invocation
|
|
233
|
+
*/
|
|
234
|
+
stderr?: Array<string> | null;
|
|
235
|
+
/**
|
|
236
|
+
* Captured stdout (prints, logs) from function invocation
|
|
237
|
+
*/
|
|
238
|
+
stdout?: Array<string> | null;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Update schema for SSE MCP server - all fields optional
|
|
242
|
+
*/
|
|
243
|
+
export interface UpdateSseMcpServer {
|
|
244
|
+
/**
|
|
245
|
+
* The URL of the server
|
|
246
|
+
*/
|
|
247
|
+
server_url: string | null;
|
|
248
|
+
/**
|
|
249
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
250
|
+
*/
|
|
251
|
+
auth_header?: string | null;
|
|
252
|
+
/**
|
|
253
|
+
* The authentication token or API key value
|
|
254
|
+
*/
|
|
255
|
+
auth_token?: string | null;
|
|
256
|
+
/**
|
|
257
|
+
* Custom HTTP headers to include with requests
|
|
258
|
+
*/
|
|
259
|
+
custom_headers?: {
|
|
260
|
+
[key: string]: string;
|
|
261
|
+
} | null;
|
|
262
|
+
mcp_server_type?: 'sse';
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Update schema for Stdio MCP server - all fields optional
|
|
266
|
+
*/
|
|
267
|
+
export interface UpdateStdioMcpServer {
|
|
268
|
+
/**
|
|
269
|
+
* The arguments to pass to the command
|
|
270
|
+
*/
|
|
271
|
+
args: Array<string> | null;
|
|
272
|
+
/**
|
|
273
|
+
* The command to run (MCP 'local' client will run this command)
|
|
274
|
+
*/
|
|
275
|
+
command: string | null;
|
|
276
|
+
/**
|
|
277
|
+
* Environment variables to set
|
|
278
|
+
*/
|
|
279
|
+
env?: {
|
|
280
|
+
[key: string]: string;
|
|
281
|
+
} | null;
|
|
282
|
+
mcp_server_type?: 'stdio';
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Update schema for Streamable HTTP MCP server - all fields optional
|
|
286
|
+
*/
|
|
287
|
+
export interface UpdateStreamableHTTPMcpServer {
|
|
288
|
+
/**
|
|
289
|
+
* The URL of the server
|
|
290
|
+
*/
|
|
291
|
+
server_url: string | null;
|
|
292
|
+
/**
|
|
293
|
+
* The name of the authentication header (e.g., 'Authorization')
|
|
294
|
+
*/
|
|
295
|
+
auth_header?: string | null;
|
|
296
|
+
/**
|
|
297
|
+
* The authentication token or API key value
|
|
298
|
+
*/
|
|
299
|
+
auth_token?: string | null;
|
|
300
|
+
/**
|
|
301
|
+
* Custom HTTP headers to include with requests
|
|
302
|
+
*/
|
|
303
|
+
custom_headers?: {
|
|
304
|
+
[key: string]: string;
|
|
305
|
+
} | null;
|
|
306
|
+
mcp_server_type?: 'streamable_http';
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* A Stdio MCP server
|
|
310
|
+
*/
|
|
311
|
+
export type McpServerCreateResponse = StdioMcpServer | SseMcpServer | StreamableHTTPMcpServer;
|
|
312
|
+
/**
|
|
313
|
+
* A Stdio MCP server
|
|
314
|
+
*/
|
|
315
|
+
export type McpServerRetrieveResponse = StdioMcpServer | SseMcpServer | StreamableHTTPMcpServer;
|
|
316
|
+
/**
|
|
317
|
+
* A Stdio MCP server
|
|
318
|
+
*/
|
|
319
|
+
export type McpServerUpdateResponse = StdioMcpServer | SseMcpServer | StreamableHTTPMcpServer;
|
|
320
|
+
export type McpServerListResponse = Array<StdioMcpServer | SseMcpServer | StreamableHTTPMcpServer>;
|
|
321
|
+
export type McpServerRefreshResponse = unknown;
|
|
322
|
+
export interface McpServerCreateParams {
|
|
323
|
+
/**
|
|
324
|
+
* The MCP server configuration (Stdio, SSE, or Streamable HTTP)
|
|
325
|
+
*/
|
|
326
|
+
config: CreateStdioMcpServer | CreateSseMcpServer | CreateStreamableHTTPMcpServer;
|
|
327
|
+
/**
|
|
328
|
+
* The name of the MCP server
|
|
329
|
+
*/
|
|
330
|
+
server_name: string;
|
|
331
|
+
}
|
|
332
|
+
export interface McpServerUpdateParams {
|
|
333
|
+
/**
|
|
334
|
+
* The MCP server configuration updates (Stdio, SSE, or Streamable HTTP)
|
|
335
|
+
*/
|
|
336
|
+
config: UpdateStdioMcpServer | UpdateSseMcpServer | UpdateStreamableHTTPMcpServer;
|
|
337
|
+
/**
|
|
338
|
+
* The name of the MCP server
|
|
339
|
+
*/
|
|
340
|
+
server_name?: string | null;
|
|
341
|
+
}
|
|
342
|
+
export interface McpServerRefreshParams {
|
|
343
|
+
agent_id?: string | null;
|
|
344
|
+
}
|
|
345
|
+
export declare namespace McpServers {
|
|
346
|
+
export { type CreateSseMcpServer as CreateSseMcpServer, type CreateStdioMcpServer as CreateStdioMcpServer, type CreateStreamableHTTPMcpServer as CreateStreamableHTTPMcpServer, type McpToolExecuteRequest as McpToolExecuteRequest, type SseMcpServer as SseMcpServer, type StdioMcpServer as StdioMcpServer, type StreamableHTTPMcpServer as StreamableHTTPMcpServer, type ToolExecutionResult as ToolExecutionResult, type UpdateSseMcpServer as UpdateSseMcpServer, type UpdateStdioMcpServer as UpdateStdioMcpServer, type UpdateStreamableHTTPMcpServer as UpdateStreamableHTTPMcpServer, type McpServerCreateResponse as McpServerCreateResponse, type McpServerRetrieveResponse as McpServerRetrieveResponse, type McpServerUpdateResponse as McpServerUpdateResponse, type McpServerListResponse as McpServerListResponse, type McpServerRefreshResponse as McpServerRefreshResponse, type McpServerCreateParams as McpServerCreateParams, type McpServerUpdateParams as McpServerUpdateParams, type McpServerRefreshParams as McpServerRefreshParams, };
|
|
347
|
+
export { Tools as Tools, type ToolListResponse as ToolListResponse, type ToolRetrieveParams as ToolRetrieveParams, type ToolRunParams as ToolRunParams, };
|
|
348
|
+
}
|
|
349
|
+
//# sourceMappingURL=mcp-servers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-servers.d.ts","sourceRoot":"","sources":["../../src/resources/mcp-servers/mcp-servers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,aAAa,EAAE,KAAK,EAAE;OAC9D,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIlG;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAI9F;;OAEG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;OAEG;IACH,IAAI,CAAC,OAAO,CA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AAI,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAID,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.McpServers = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ToolsAPI = tslib_1.__importStar(require("./tools.js"));
|
|
8
|
+
const tools_1 = require("./tools.js");
|
|
9
|
+
const headers_1 = require("../../internal/headers.js");
|
|
10
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
11
|
+
class McpServers extends resource_1.APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.tools = new ToolsAPI.Tools(this._client);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Add a new MCP server to the Letta MCP server config
|
|
18
|
+
*/
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return this._client.post('/v1/mcp-servers/', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get a specific MCP server
|
|
24
|
+
*/
|
|
25
|
+
retrieve(mcpServerID, options) {
|
|
26
|
+
return this._client.get((0, path_1.path) `/v1/mcp-servers/${mcpServerID}`, options);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Update an existing MCP server configuration
|
|
30
|
+
*/
|
|
31
|
+
update(mcpServerID, body, options) {
|
|
32
|
+
return this._client.patch((0, path_1.path) `/v1/mcp-servers/${mcpServerID}`, { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get a list of all configured MCP servers
|
|
36
|
+
*/
|
|
37
|
+
list(options) {
|
|
38
|
+
return this._client.get('/v1/mcp-servers/', options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Delete an MCP server by its ID
|
|
42
|
+
*/
|
|
43
|
+
delete(mcpServerID, options) {
|
|
44
|
+
return this._client.delete((0, path_1.path) `/v1/mcp-servers/${mcpServerID}`, {
|
|
45
|
+
...options,
|
|
46
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Refresh tools for an MCP server by:
|
|
51
|
+
*
|
|
52
|
+
* 1. Fetching current tools from the MCP server
|
|
53
|
+
* 2. Deleting tools that no longer exist on the server
|
|
54
|
+
* 3. Updating schemas for existing tools
|
|
55
|
+
* 4. Adding new tools from the server
|
|
56
|
+
*
|
|
57
|
+
* Returns a summary of changes made.
|
|
58
|
+
*/
|
|
59
|
+
refresh(mcpServerID, params = {}, options) {
|
|
60
|
+
const { agent_id } = params ?? {};
|
|
61
|
+
return this._client.patch((0, path_1.path) `/v1/mcp-servers/${mcpServerID}/refresh`, {
|
|
62
|
+
query: { agent_id },
|
|
63
|
+
...options,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.McpServers = McpServers;
|
|
68
|
+
McpServers.Tools = tools_1.Tools;
|
|
69
|
+
//# sourceMappingURL=mcp-servers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-servers.js","sourceRoot":"","sources":["../../src/resources/mcp-servers/mcp-servers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6DAAoC;AACpC,sCAAqF;AAErF,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiE3D,CAAC;IA/DC;;OAEG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mBAAmB,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAmB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,mBAAmB,WAAW,EAAE,EAAE;YAC/D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CACL,WAAmB,EACnB,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mBAAmB,WAAW,UAAU,EAAE;YACtE,KAAK,EAAE,EAAE,QAAQ,EAAE;YACnB,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAlED,gCAkEC;AA+VD,UAAU,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as ToolsAPI from "./tools.mjs";
|
|
4
|
+
import { Tools } from "./tools.mjs";
|
|
5
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
6
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
7
|
+
export class McpServers extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.tools = new ToolsAPI.Tools(this._client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Add a new MCP server to the Letta MCP server config
|
|
14
|
+
*/
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return this._client.post('/v1/mcp-servers/', { body, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get a specific MCP server
|
|
20
|
+
*/
|
|
21
|
+
retrieve(mcpServerID, options) {
|
|
22
|
+
return this._client.get(path `/v1/mcp-servers/${mcpServerID}`, options);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Update an existing MCP server configuration
|
|
26
|
+
*/
|
|
27
|
+
update(mcpServerID, body, options) {
|
|
28
|
+
return this._client.patch(path `/v1/mcp-servers/${mcpServerID}`, { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Get a list of all configured MCP servers
|
|
32
|
+
*/
|
|
33
|
+
list(options) {
|
|
34
|
+
return this._client.get('/v1/mcp-servers/', options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Delete an MCP server by its ID
|
|
38
|
+
*/
|
|
39
|
+
delete(mcpServerID, options) {
|
|
40
|
+
return this._client.delete(path `/v1/mcp-servers/${mcpServerID}`, {
|
|
41
|
+
...options,
|
|
42
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Refresh tools for an MCP server by:
|
|
47
|
+
*
|
|
48
|
+
* 1. Fetching current tools from the MCP server
|
|
49
|
+
* 2. Deleting tools that no longer exist on the server
|
|
50
|
+
* 3. Updating schemas for existing tools
|
|
51
|
+
* 4. Adding new tools from the server
|
|
52
|
+
*
|
|
53
|
+
* Returns a summary of changes made.
|
|
54
|
+
*/
|
|
55
|
+
refresh(mcpServerID, params = {}, options) {
|
|
56
|
+
const { agent_id } = params ?? {};
|
|
57
|
+
return this._client.patch(path `/v1/mcp-servers/${mcpServerID}/refresh`, {
|
|
58
|
+
query: { agent_id },
|
|
59
|
+
...options,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
McpServers.Tools = Tools;
|
|
64
|
+
//# sourceMappingURL=mcp-servers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-servers.mjs","sourceRoot":"","sources":["../../src/resources/mcp-servers/mcp-servers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,QAAQ;OACb,EAAuD,KAAK,EAAE;OAE9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IAA3C;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiE3D,CAAC;IA/DC;;OAEG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,IAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,WAAmB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,mBAAmB,WAAW,EAAE,EAAE;YAC/D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CACL,WAAmB,EACnB,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,WAAW,UAAU,EAAE;YACtE,KAAK,EAAE,EAAE,QAAQ,EAAE;YACnB,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA+VD,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ToolsAPI from "../tools.mjs";
|
|
3
|
+
import * as McpServersAPI from "./mcp-servers.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare class Tools extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get a specific MCP tool by its ID
|
|
9
|
+
*/
|
|
10
|
+
retrieve(toolID: string, params: ToolRetrieveParams, options?: RequestOptions): APIPromise<ToolsAPI.Tool>;
|
|
11
|
+
/**
|
|
12
|
+
* Get a list of all tools for a specific MCP server
|
|
13
|
+
*/
|
|
14
|
+
list(mcpServerID: string, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Execute a specific MCP tool
|
|
17
|
+
*
|
|
18
|
+
* The request body should contain the tool arguments in the MCPToolExecuteRequest
|
|
19
|
+
* format.
|
|
20
|
+
*/
|
|
21
|
+
run(toolID: string, params: ToolRunParams, options?: RequestOptions): APIPromise<McpServersAPI.ToolExecutionResult>;
|
|
22
|
+
}
|
|
23
|
+
export type ToolListResponse = Array<ToolsAPI.Tool>;
|
|
24
|
+
export interface ToolRetrieveParams {
|
|
25
|
+
mcp_server_id: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ToolRunParams {
|
|
28
|
+
/**
|
|
29
|
+
* Path param:
|
|
30
|
+
*/
|
|
31
|
+
mcp_server_id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Body param: Arguments to pass to the MCP tool
|
|
34
|
+
*/
|
|
35
|
+
args?: {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare namespace Tools {
|
|
40
|
+
export { type ToolListResponse as ToolListResponse, type ToolRetrieveParams as ToolRetrieveParams, type ToolRunParams as ToolRunParams, };
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=tools.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.mts","sourceRoot":"","sources":["../../src/resources/mcp-servers/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;IAKzG;;OAEG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIjF;;;;;OAKG;IACH,GAAG,CACD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,aAAa,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,mBAAmB,CAAC;CAOjD;AAED,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAEpD,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ToolsAPI from "../tools.js";
|
|
3
|
+
import * as McpServersAPI from "./mcp-servers.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
+
export declare class Tools extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get a specific MCP tool by its ID
|
|
9
|
+
*/
|
|
10
|
+
retrieve(toolID: string, params: ToolRetrieveParams, options?: RequestOptions): APIPromise<ToolsAPI.Tool>;
|
|
11
|
+
/**
|
|
12
|
+
* Get a list of all tools for a specific MCP server
|
|
13
|
+
*/
|
|
14
|
+
list(mcpServerID: string, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Execute a specific MCP tool
|
|
17
|
+
*
|
|
18
|
+
* The request body should contain the tool arguments in the MCPToolExecuteRequest
|
|
19
|
+
* format.
|
|
20
|
+
*/
|
|
21
|
+
run(toolID: string, params: ToolRunParams, options?: RequestOptions): APIPromise<McpServersAPI.ToolExecutionResult>;
|
|
22
|
+
}
|
|
23
|
+
export type ToolListResponse = Array<ToolsAPI.Tool>;
|
|
24
|
+
export interface ToolRetrieveParams {
|
|
25
|
+
mcp_server_id: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ToolRunParams {
|
|
28
|
+
/**
|
|
29
|
+
* Path param:
|
|
30
|
+
*/
|
|
31
|
+
mcp_server_id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Body param: Arguments to pass to the MCP tool
|
|
34
|
+
*/
|
|
35
|
+
args?: {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare namespace Tools {
|
|
40
|
+
export { type ToolListResponse as ToolListResponse, type ToolRetrieveParams as ToolRetrieveParams, type ToolRunParams as ToolRunParams, };
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/mcp-servers/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;IAKzG;;OAEG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIjF;;;;;OAKG;IACH,GAAG,CACD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,aAAa,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,mBAAmB,CAAC;CAOjD;AAED,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAEpD,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Tools = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Tools extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get a specific MCP tool by its ID
|
|
10
|
+
*/
|
|
11
|
+
retrieve(toolID, params, options) {
|
|
12
|
+
const { mcp_server_id } = params;
|
|
13
|
+
return this._client.get((0, path_1.path) `/v1/mcp-servers/${mcp_server_id}/tools/${toolID}`, options);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get a list of all tools for a specific MCP server
|
|
17
|
+
*/
|
|
18
|
+
list(mcpServerID, options) {
|
|
19
|
+
return this._client.get((0, path_1.path) `/v1/mcp-servers/${mcpServerID}/tools`, options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Execute a specific MCP tool
|
|
23
|
+
*
|
|
24
|
+
* The request body should contain the tool arguments in the MCPToolExecuteRequest
|
|
25
|
+
* format.
|
|
26
|
+
*/
|
|
27
|
+
run(toolID, params, options) {
|
|
28
|
+
const { mcp_server_id, ...body } = params;
|
|
29
|
+
return this._client.post((0, path_1.path) `/v1/mcp-servers/${mcp_server_id}/tools/${toolID}/run`, {
|
|
30
|
+
body,
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.Tools = Tools;
|
|
36
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/resources/mcp-servers/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,aAAa,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,WAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,WAAW,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,MAAc,EACd,MAAqB,EACrB,OAAwB;QAExB,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,aAAa,UAAU,MAAM,MAAM,EAAE;YACnF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAjCD,sBAiCC"}
|