argocd-app-status
Check the deployment status of ArgoCD applications in Kubernetes clusters to monitor sync health and resource conditions.
Instructions
Get the status of an ArgoCD application
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The name of the ArgoCD application | |
| namespace | No | The namespace of the application (optional, defaults to argocd namespace) |
Implementation Reference
- server.js:2173-2180 (handler)The handler function for the 'argocd-app-status' tool. It destructures the app name and optional namespace (defaulting to 'argocd'), constructs a kubectl command to get the application YAML, executes it using execAsync, and returns the stdout or a fallback message.case "argocd-app-status": { const { app, namespace = "argocd" } = args; const cmd = `kubectl get application ${app} -n ${namespace} -o yaml`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "ArgoCD application not found" }] }; }
- server.js:1267-1284 (schema)The tool definition object in the 'tools' array, which serves as both registration (listed for ListToolsRequest) and schema (defines inputSchema with required 'app' parameter and optional 'namespace'). This is used by the MCP server to advertise and validate tool calls.{ name: "argocd-app-status", description: "Get the status of an ArgoCD application", inputSchema: { type: "object", properties: { app: { type: "string", description: "The name of the ArgoCD application" }, namespace: { type: "string", description: "The namespace of the application (optional, defaults to argocd namespace)" } }, required: ["app"] } },
- server.js:1392-1394 (registration)The request handler for ListToolsRequestSchema that returns the entire 'tools' array, effectively registering all tools including 'argocd-app-status' for discovery by MCP clients.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });