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
Copy file name to clipboardExpand all lines: src/server/server.ts
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,25 @@ export class Server extends McpServer {
65
65
offset
66
66
})
67
67
);
68
+
this.addJsonOutputTool(
69
+
'list_clusters',
70
+
'list_clusters returns list of clusters registered with ArgoCD',
71
+
{
72
+
server: z
73
+
.string()
74
+
.optional()
75
+
.describe('Filter clusters by server URL. Optional.'),
76
+
name: z
77
+
.string()
78
+
.optional()
79
+
.describe('Filter clusters by name. Optional.')
80
+
},
81
+
async({ server, name })=>
82
+
awaitthis.argocdClient.listClusters({
83
+
server: server??undefined,
84
+
name: name??undefined
85
+
})
86
+
);
68
87
this.addJsonOutputTool(
69
88
'get_application',
70
89
'get_application returns application by application name. Optionally specify the application namespace to get applications from non-default namespaces.',
0 commit comments