@@ -83,14 +83,14 @@ func (g *Gateway) Run(ctx context.Context) error {
8383 Name : "Docker AI MCP Gateway" ,
8484 Version : "2.0.1" ,
8585 }, & mcp.ServerOptions {
86- SubscribeHandler : nil ,
87- UnsubscribeHandler : nil ,
86+ SubscribeHandler : nil ,
87+ UnsubscribeHandler : nil ,
8888 RootsListChangedHandler : nil ,
89- CompletionHandler : nil ,
90- InitializedHandler : nil ,
91- HasPrompts : true ,
92- HasResources : true ,
93- HasTools : true ,
89+ CompletionHandler : nil ,
90+ InitializedHandler : nil ,
91+ HasPrompts : true ,
92+ HasResources : true ,
93+ HasTools : true ,
9494 })
9595
9696 // Add interceptor middleware to the server
@@ -103,7 +103,7 @@ func (g *Gateway) Run(ctx context.Context) error {
103103 return fmt .Errorf ("loading configuration: %w" , err )
104104 }
105105
106- // Central mode.
106+ // Central mode.
107107 if g .Central {
108108 log ("> Initialized (in central mode) in" , time .Since (start ))
109109 if g .DryRun {
@@ -206,19 +206,19 @@ func (g *Gateway) reloadConfiguration(ctx context.Context, configuration Configu
206206 // Update capabilities
207207 // Clear existing capabilities and register new ones
208208 // Note: The new SDK doesn't have bulk set methods, so we register individually
209-
209+
210210 for _ , tool := range capabilities .Tools {
211211 g .mcpServer .AddTool (tool .Tool , tool .Handler )
212212 }
213-
213+
214214 for _ , prompt := range capabilities .Prompts {
215215 g .mcpServer .AddPrompt (prompt .Prompt , prompt .Handler )
216216 }
217-
217+
218218 for _ , resource := range capabilities .Resources {
219219 g .mcpServer .AddResource (resource .Resource , resource .Handler )
220220 }
221-
221+
222222 // Resource templates are handled as regular resources in the new SDK
223223 for _ , template := range capabilities .ResourceTemplates {
224224 // Convert ResourceTemplate to Resource
@@ -230,7 +230,7 @@ func (g *Gateway) reloadConfiguration(ctx context.Context, configuration Configu
230230 }
231231 g .mcpServer .AddResource (resource , template .Handler )
232232 }
233-
233+
234234 g .health .SetHealthy ()
235235
236236 return nil
0 commit comments