You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commonApiVersion=fmt.Sprintf("(common apiVersion and kind include: %s)", commonApiVersion)
13
18
return []server.ServerTool{
14
19
{mcp.NewTool("resources_list",
15
20
mcp.WithDescription("List Kubernetes resources and objects in the current cluster by providing their apiVersion and kind and optionally the namespace\n"+
mcp.Description("apiVersion of the resources (examples of valid apiVersion are: v1, apps/v1, networking.k8s.io/v1)"),
19
24
mcp.Required(),
@@ -26,7 +31,7 @@ func (s *Server) initResources() []server.ServerTool {
26
31
mcp.Description("Optional Namespace to retrieve the namespaced resources from (ignored in case of cluster scoped resources). If not provided, will list resources from all namespaces"))), s.resourcesList},
27
32
{mcp.NewTool("resources_get",
28
33
mcp.WithDescription("Get a Kubernetes resource in the current cluster by providing its apiVersion, kind, optionally the namespace, and its name\n"+
mcp.Description("A JSON or YAML containing a representation of the Kubernetes resource. Should include top-level fields such as apiVersion,kind,metadata, and spec"),
48
53
mcp.Required(),
49
54
),
50
55
), s.resourcesCreateOrUpdate},
51
56
{mcp.NewTool("resources_delete",
52
57
mcp.WithDescription("Delete a Kubernetes resource in the current cluster by providing its apiVersion, kind, optionally the namespace, and its name\n"+
0 commit comments