-
Notifications
You must be signed in to change notification settings - Fork 0
Introduce K8S Clusters #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ SC_TOKEN=your-api-token npx @servers.com/mcp | |
|
|
||
| ## Available Tools | ||
|
|
||
| 73 tools across 6 categories — see **[TOOLS.md](TOOLS.md)** for the full reference. | ||
| 78 tools across 7 categories — see **[TOOLS.md](TOOLS.md)** for the full reference. | ||
|
|
||
|
Comment on lines
37
to
40
|
||
| ## Async Operations | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,102 @@ | ||||||||||
| package tools | ||||||||||
|
|
||||||||||
| import ( | ||||||||||
| "context" | ||||||||||
|
|
||||||||||
| "github.com/modelcontextprotocol/go-sdk/mcp" | ||||||||||
| serverscom "github.com/serverscom/serverscom-go-client/pkg" | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| func registerKubernetesClusterTools(server *mcp.Server, h *handler) { | ||||||||||
| registerListKubernetesClusters(server, h) | ||||||||||
| registerGetKubernetesCluster(server, h) | ||||||||||
| registerUpdateKubernetesCluster(server, h) | ||||||||||
| registerListKubernetesClusterNodes(server, h) | ||||||||||
| registerGetKubernetesClusterNode(server, h) | ||||||||||
| } | ||||||||||
|
|
||||||||||
| type kubernetesClusterIDArgs struct { | ||||||||||
| ClusterID string `json:"cluster_id" jsonschema:"cluster ID,required"` | ||||||||||
| } | ||||||||||
|
|
||||||||||
| type updateKubernetesClusterArgs struct { | ||||||||||
| ClusterID string `json:"cluster_id" jsonschema:"cluster ID,required"` | ||||||||||
| Labels map[string]string `json:"labels,omitempty" jsonschema:"key-value labels (replaces all existing labels)"` | ||||||||||
|
||||||||||
| Labels map[string]string `json:"labels,omitempty" jsonschema:"key-value labels (replaces all existing labels)"` | |
| Labels map[string]string `json:"labels" jsonschema:"key-value labels (replaces all existing labels),required"` |
Copilot
AI
Feb 25, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
listKubernetesClusterNodesArgs duplicates kubernetesClusterIDArgs (both only contain cluster_id). Reusing the existing args type would reduce duplication and keep the API surface consistent if the ID field’s schema/description changes later.
| type listKubernetesClusterNodesArgs struct { | |
| ClusterID string `json:"cluster_id" jsonschema:"cluster ID,required"` | |
| } | |
| type listKubernetesClusterNodesArgs = kubernetesClusterIDArgs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that Kubernetes Cluster tools are implemented and mapped here, the earlier “Top-level services” section should also document
h.client.KubernetesClustersalongside the other client services to keep contributor guidance accurate.