Skip to content

fix(server): adopt mcp-go v0.55 WithStreamableHTTPLogger API#72

Merged
ysyneu merged 1 commit into
mainfrom
fix/mcp-go-055-logger-api
Jul 8, 2026
Merged

fix(server): adopt mcp-go v0.55 WithStreamableHTTPLogger API#72
ysyneu merged 1 commit into
mainfrom
fix/mcp-go-055-logger-api

Conversation

@ysyneu

@ysyneu ysyneu commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Unbreaks main: the mcp-go v0.55.1 bump (#69) renamed the StreamableHTTP transport logger option WithLoggerWithStreamableHTTPLogger and switched it to *slog.Logger. newStreamableHTTPServer still called the old signature, failing the build across all platforms. This switches to WithStreamableHTTPLogger(logger) and drops the now-obsolete slogAdapter shim.

go build, go vet, and go test ./pkg/... ./internal/... all pass locally on top of merged main.

mcp-go v0.55 renamed the StreamableHTTP transport logger option from
WithLogger to WithStreamableHTTPLogger and switched it to *slog.Logger
(WithLogger now sets a server-level logger on the MCPServer). The dep bump
(#69) left newStreamableHTTPServer calling the old signature, breaking the
build on main. Switch to WithStreamableHTTPLogger(logger) and drop the now
-obsolete slogAdapter shim.
@ysyneu ysyneu merged commit f7bed0c into main Jul 8, 2026
13 checks passed
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.

1 participant