File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,17 @@ import (
9
9
10
10
func (s * Server ) initNamespaces () []server.ServerTool {
11
11
ret := make ([]server.ServerTool , 0 )
12
+ ret = append (ret , server.ServerTool {
13
+ Tool : mcp .NewTool ("namespaces_list" ,
14
+ mcp .WithDescription ("List all the Kubernetes namespaces in the current cluster" ),
15
+ ), Handler : s .namespacesList ,
16
+ })
12
17
if s .k .IsOpenShift (context .Background ()) {
13
18
ret = append (ret , server.ServerTool {
14
19
Tool : mcp .NewTool ("projects_list" ,
15
20
mcp .WithDescription ("List all the OpenShift projects in the current cluster" ),
16
21
), Handler : s .projectsList ,
17
22
})
18
- } else {
19
- ret = append (ret , server.ServerTool {
20
- Tool : mcp .NewTool ("namespaces_list" ,
21
- mcp .WithDescription ("List all the Kubernetes namespaces in the current cluster" ),
22
- ), Handler : s .namespacesList ,
23
- })
24
23
}
25
24
return ret
26
25
}
You can’t perform that action at this time.
0 commit comments