Skip to content

Commit 8c80cfe

Browse files
committed
refactor(configuration): prepare for additional tools depending on environment
1 parent b3f3844 commit 8c80cfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/mcp/configuration.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
func (s *Server) initConfiguration() []server.ServerTool {
12-
return []server.ServerTool{
12+
tools := []server.ServerTool{
1313
{mcp.NewTool("configuration_view",
1414
mcp.WithDescription("Get the current Kubernetes configuration content as a kubeconfig YAML"),
1515
mcp.WithBoolean("minified", mcp.Description("Return a minified version of the configuration. "+
@@ -18,6 +18,7 @@ func (s *Server) initConfiguration() []server.ServerTool {
1818
"(Optional, default true)")),
1919
), configurationView},
2020
}
21+
return tools
2122
}
2223

2324
func configurationView(_ context.Context, ctr mcp.CallToolRequest) (*mcp.CallToolResult, error) {

0 commit comments

Comments
 (0)