get_application_resource_tree
Retrieve the resource tree for an ArgoCD application by specifying its name to visualize and manage Kubernetes resources.
Instructions
get_application_resource_tree returns resource tree for application by application name
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| applicationName | Yes |
Implementation Reference
- src/argocd/client.ts:158-163 (handler)The core handler function that fetches the ArgoCD application resource tree via HTTP GET to the /resource-tree API endpoint.public async getApplicationResourceTree(applicationName: string) { const { body } = await this.client.get<V1alpha1ApplicationTree>( `/api/v1/applications/${applicationName}/resource-tree` ); return body; }
- src/server/server.ts:79-84 (registration)MCP tool registration using addJsonOutputTool, including input schema validation with Zod and handler callback that delegates to ArgoCDClient.'get_application_resource_tree', 'get_application_resource_tree returns resource tree for application by application name', { applicationName: z.string() }, async ({ applicationName }) => await this.argocdClient.getApplicationResourceTree(applicationName) );
- src/server/server.ts:81-81 (schema)Zod input schema for the tool: requires 'applicationName' as string.{ applicationName: z.string() },