Skip to content

Commit deaaafa

Browse files
authored
Merge pull request #1377 from rumpl/streamable-standalone
Unstuck some remote MCPs
2 parents 6d75e27 + 332f592 commit deaaafa

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ require (
4545
github.com/labstack/echo/v4 v4.15.0
4646
github.com/mattn/go-isatty v0.0.20
4747
github.com/mattn/go-runewidth v0.0.19
48-
github.com/modelcontextprotocol/go-sdk v1.2.0
48+
github.com/modelcontextprotocol/go-sdk v1.2.1-0.20260115164613-13488f7da1ed
4949
github.com/natefinch/atomic v1.0.1
5050
github.com/openai/openai-go/v3 v3.16.0
5151
github.com/rivo/uniseg v0.4.7

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ github.com/microcosm-cc/bluemonday v1.0.27 h1:MpEUotklkwCSLeH+Qdx1VJgNqLlpY2KXwX
293293
github.com/microcosm-cc/bluemonday v1.0.27/go.mod h1:jFi9vgW+H7c3V0lb6nR74Ib/DIB5OBs92Dimizgw2cA=
294294
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
295295
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
296-
github.com/modelcontextprotocol/go-sdk v1.2.0 h1:Y23co09300CEk8iZ/tMxIX1dVmKZkzoSBZOpJwUnc/s=
297-
github.com/modelcontextprotocol/go-sdk v1.2.0/go.mod h1:6fM3LCm3yV7pAs8isnKLn07oKtB0MP9LHd3DfAcKw10=
296+
github.com/modelcontextprotocol/go-sdk v1.2.1-0.20260115164613-13488f7da1ed h1:v6U7x8QdZFPR+2klPe29iHrRTy35sQSodTxtGcOX7TU=
297+
github.com/modelcontextprotocol/go-sdk v1.2.1-0.20260115164613-13488f7da1ed/go.mod h1:AnQ//Qc6+4nIyyrB4cxBU7UW9VibK4iOZBeyP/rF1IE=
298298
github.com/mschoch/smat v0.2.0 h1:8imxQsjDm8yFEAVBe7azKmKSgzSkZXDuKkSq9374khM=
299299
github.com/mschoch/smat v0.2.0/go.mod h1:kc9mz7DoBKqDyiRL7VZN8KvXQMWeTaVnttLRXOlotKw=
300300
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=

pkg/tools/mcp/remote.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ func (c *remoteMCPClient) Initialize(ctx context.Context, _ *mcp.InitializeReque
9090
}
9191
case "streamable", "streamable-http":
9292
transport = &mcp.StreamableClientTransport{
93-
Endpoint: c.url,
94-
HTTPClient: httpClient,
93+
Endpoint: c.url,
94+
HTTPClient: httpClient,
95+
DisableStandaloneSSE: true,
9596
}
9697
default:
9798
return nil, fmt.Errorf("unsupported transport type: %s", c.transportType)

0 commit comments

Comments
 (0)