Skip to content

Commit 4fc6c3a

Browse files
committed
pass oauth config to mcp handler for token extraction
1 parent 1ce01df commit 4fc6c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/http/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func RunHTTPServer(cfg HTTPServerConfig) error {
114114
oauthHandler.RegisterRoutes(r)
115115
logger.Info("OAuth protected resource endpoints registered", "baseURL", cfg.BaseURL)
116116

117-
handler := NewHTTPMcpHandler(ctx, &cfg, deps, t, logger)
117+
handler := NewHTTPMcpHandler(ctx, &cfg, deps, t, logger, WithOAuthConfig(oauthCfg))
118118
handler.RegisterRoutes(r)
119119

120120
addr := fmt.Sprintf(":%d", cfg.Port)

0 commit comments

Comments
 (0)