chore(deps): update all dependencies to latest (#212)

Bumps all direct dependencies to their latest versions.

| Dependency                    | From    | To           |
| ----------------------------- | ------- | ------------ |
| `gitea.dev/sdk`               | v1.0.1  | v1.2.0       |
| `github.com/mark3labs/mcp-go` | v0.45.0 | v0.56.0      |
| `go.uber.org/zap`             | v1.27.1 | v1.28.0      |
| `go.uber.org/zap/exp`         | —       | v0.3.0 (new) |

### Required code change
mcp-go v0.56 moved transport logging to `log/slog` and renamed the streamable-HTTP logger option to `WithStreamableHTTPLogger(*slog.Logger)`. Added a `log.Slog()` bridge (via the official `zapslog` adapter) so the HTTP transport keeps logging through the existing zap pipeline, and switched `operation.go` to the new option.

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/212
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni
2026-07-19 19:53:31 +00:00
committed by Lunny Xiao
parent fec9db1072
commit a998cc3389
4 changed files with 47 additions and 49 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ func Run() error {
case "http":
httpServer := server.NewStreamableHTTPServer(
mcpServer,
server.WithLogger(log.Default().Sugar()),
server.WithStreamableHTTPLogger(log.Slog()),
server.WithHeartbeatInterval(30*time.Second),
server.WithHTTPContextFunc(getContextWithToken),
)