We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f02e9 commit 67bdb82Copy full SHA for 67bdb82
cmd/docker-mcp/internal/gateway/run.go
@@ -8,6 +8,7 @@ import (
8
"strings"
9
"time"
10
11
+ "github.com/mark3labs/mcp-go/mcp"
12
"github.com/mark3labs/mcp-go/server"
13
14
"github.com/docker/mcp-gateway/cmd/docker-mcp/internal/docker"
@@ -93,6 +94,13 @@ func (g *Gateway) Run(ctx context.Context) error {
93
94
"Docker AI MCP Gateway",
95
"2.0.1",
96
server.WithToolHandlerMiddleware(toolCallbacks),
97
+ server.WithHooks(&server.Hooks{
98
+ OnBeforeInitialize: []server.OnBeforeInitializeFunc{
99
+ func(ctx context.Context, id any, message *mcp.InitializeRequest) {
100
+ log("> Initializing MCP server with ID:", id)
101
+ },
102
103
+ }),
104
)
105
106
if err := g.reloadConfiguration(ctx, mcpServer, configuration); err != nil {
0 commit comments