File tree Expand file tree Collapse file tree 5 files changed +16
-7
lines changed
cmd/docker-mcp/internal/gateway
github.com/mark3labs/mcp-go/server Expand file tree Collapse file tree 5 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ func (g *Gateway) Run(ctx context.Context) error {
122
122
123
123
mcpServer .SetTools (capabilities .Tools ... )
124
124
mcpServer .SetPrompts (capabilities .Prompts ... )
125
- mcpServer .AddResources (capabilities .Resources ... )
125
+ mcpServer .SetResources (capabilities .Resources ... )
126
126
for _ , v := range capabilities .ResourceTemplates {
127
127
mcpServer .AddResourceTemplate (v .ResourceTemplate , v .Handler )
128
128
}
@@ -131,7 +131,8 @@ func (g *Gateway) Run(ctx context.Context) error {
131
131
changeListeners = append (changeListeners , func (newCapabilities * Capabilities ) {
132
132
mcpServer .SetTools (newCapabilities .Tools ... )
133
133
mcpServer .SetPrompts (newCapabilities .Prompts ... )
134
- // TODO: sync Resources and Resource Templates
134
+ mcpServer .SetResources (newCapabilities .Resources ... )
135
+ // TODO: sync Resource Templates
135
136
})
136
137
lock .Unlock ()
137
138
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module github.com/docker/mcp-gateway
2
2
3
3
go 1.24.4
4
4
5
- replace github.com/mark3labs/mcp-go => github.com/dgageot/mcp-go v0.0.0-20250722181725-fc67445a7583
5
+ replace github.com/mark3labs/mcp-go => github.com/dgageot/mcp-go v0.0.0-20250722182437-554a61b60587
6
6
7
7
require (
8
8
github.com/Microsoft/go-winio v0.6.2
Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
207
207
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM =
208
208
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
209
209
github.com/denisenkom/go-mssqldb v0.0.0-20191128021309-1d7a30a10f73 /go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU =
210
- github.com/dgageot/mcp-go v0.0.0-20250722181725-fc67445a7583 h1:+EwIeDJNjdY0mSkhv5Yv6jjWARo+treRDOCQhVyTEes =
211
- github.com/dgageot/mcp-go v0.0.0-20250722181725-fc67445a7583 /go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4 =
210
+ github.com/dgageot/mcp-go v0.0.0-20250722182437-554a61b60587 h1:HOAbzfOrf27gOCaOIDD/uhmxfo3Z7vIdMRFCS6+YTbU =
211
+ github.com/dgageot/mcp-go v0.0.0-20250722182437-554a61b60587 /go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4 =
212
212
github.com/digitorus/pkcs7 v0.0.0-20230713084857-e76b763bdc49 /go.mod h1:SKVExuS+vpu2l9IoOc0RwqE7NYnb0JlcFHFnEJkVDzc =
213
213
github.com/digitorus/pkcs7 v0.0.0-20230818184609-3a137a874352 h1:ge14PCmCvPjpMQMIAH7uKg0lrtNSOdpYsRXlwk3QbaE =
214
214
github.com/digitorus/pkcs7 v0.0.0-20230818184609-3a137a874352 /go.mod h1:SKVExuS+vpu2l9IoOc0RwqE7NYnb0JlcFHFnEJkVDzc =
Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ github.com/magiconair/properties
362
362
github.com/mailru/easyjson/buffer
363
363
github.com/mailru/easyjson/jlexer
364
364
github.com/mailru/easyjson/jwriter
365
- # github.com/mark3labs/mcp-go v0.34.0 => github.com/dgageot/mcp-go v0.0.0-20250722181725-fc67445a7583
365
+ # github.com/mark3labs/mcp-go v0.34.0 => github.com/dgageot/mcp-go v0.0.0-20250722182437-554a61b60587
366
366
## explicit; go 1.23
367
367
github.com/mark3labs/mcp-go/client
368
368
github.com/mark3labs/mcp-go/client/transport
@@ -947,4 +947,4 @@ gopkg.in/yaml.v3
947
947
## explicit; go 1.17
948
948
# k8s.io/client-go v0.33.1
949
949
## explicit; go 1.24.0
950
- # github.com/mark3labs/mcp-go => github.com/dgageot/mcp-go v0.0.0-20250722181725-fc67445a7583
950
+ # github.com/mark3labs/mcp-go => github.com/dgageot/mcp-go v0.0.0-20250722182437-554a61b60587
You can’t perform that action at this time.
0 commit comments