Skip to content

Commit 7542ce6

Browse files
committed
Pass to underlying tool
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent 28093aa commit 7542ce6

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

pkg/tools/mcp/gateway.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import (
1717
)
1818

1919
type GatewayToolset struct {
20-
tools.ElicitationTool
21-
2220
mcpServerName string
2321
config any
2422
envProvider environment.Provider
@@ -152,3 +150,11 @@ func writeTempFile(nameTemplate string, content []byte) (string, error) {
152150

153151
return f.Name(), nil
154152
}
153+
154+
func (t *GatewayToolset) SetElicitationHandler(handler tools.ElicitationHandler) {
155+
t.cmdToolset.SetElicitationHandler(handler)
156+
}
157+
158+
func (t *GatewayToolset) SetOAuthSuccessHandler(handler func()) {
159+
t.cmdToolset.SetOAuthSuccessHandler(handler)
160+
}

0 commit comments

Comments
 (0)