Skip to content

x/tools/internal/mcp: Add ability to provide a custom http.Client when creating mcp.NewSSEClientTransport #74108

Open
golang/tools
#580
@andrey-star

Description

@andrey-star

The SSE implementation of the MCP client currently hard codes http.DefaultClient https://github.com/golang/tools/blob/439ea2f0f815f46421aaecd85ffd0f75b0a303f9/internal/mcp/sse.go#L336

It should be possible to provide your own http.Client if customization of the client is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.FixPendingIssues that have a fix which has not yet been reviewed or submitted.NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.ToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions