feat: support client-provided MCP servers - #29
Merged
Merged
Conversation
Let ACP clients such as Zed attach stdio MCP servers to new and resumed sessions while keeping process ownership and Letta external-tool bridging in the Agent SDK. See [trace](https://app.letta.com/chat/agent-57231da8-42f3-4523-b190-66c3eda21057?conversation=conv-a27fa457-e2f7-4e76-95fc-af32f0d984db). Resume conversation with `letta --conv conv-a27fa457-e2f7-4e76-95fc-af32f0d984db` 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Preserve the merged model selector and native terminal support while resolving the MCP documentation and test conflicts. Co-authored-by: Cameron <cameron@pfiffer.org> 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
Letta Code (agent-c2adbf5c-8419-4211-8cd8-3740db164974) Let the adapter process remain alive until SDK-owned MCP subprocess cleanup completes, and close displaced sessions when clients reload an already-open conversation. Co-authored-by: Cameron <cameron@pfiffer.org> 👾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta Code <noreply@letta.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
session/newandsession/loadinto Agent SDK sessionsValidation
bun run check— 42 tests, typecheck, and buildprocess.exit(0)makes that cleanup regression failsession/loadtest proves the displaced SDK session is closed@letta-ai/letta-agent-sdk@0.5.6Scope
Depends on letta-ai/letta-agent-sdk#242, released in v0.5.6.
👾 Generated with Letta Code