Skip to content

Remote Clients should be long-lived#324

Merged
slimslenderslacks merged 1 commit intomainfrom
slim/long-running-remote-client
Jan 7, 2026
Merged

Remote Clients should be long-lived#324
slimslenderslacks merged 1 commit intomainfrom
slim/long-running-remote-client

Conversation

@slimslenderslacks
Copy link
Copy Markdown
Collaborator

The remote clients should be cached by ServerSession

What I did

This is an optimization. It's a long-standing issue that the http transport clients can be cached by ServerSession (equivalent to one unique client connection to the gateway).

The remote clients should be cached by ServerSession
@slimslenderslacks slimslenderslacks requested a review from a team as a code owner January 6, 2026 03:33
Comment thread pkg/catalog/types.go

// IsRemote returns true if this server is a remote MCP server (not a Docker container)
func (sc *ServerConfig) IsRemote() bool {
return sc.Spec.SSEEndpoint != "" || sc.Spec.Remote.URL != ""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw, you should also be able to check the Type is remote.

@slimslenderslacks slimslenderslacks merged commit 27ef36c into main Jan 7, 2026
8 checks passed
@slimslenderslacks slimslenderslacks deleted the slim/long-running-remote-client branch January 7, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants