get_application_resource_tree
Retrieve the resource tree for an application by specifying its name using the argocd-mcp server to access detailed structural insights.
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)Core handler function that executes the HTTP GET request to ArgoCD API to retrieve the application resource tree.public async getApplicationResourceTree(applicationName: string) { const { body } = await this.client.get<V1alpha1ApplicationTree>( `/api/v1/applications/${applicationName}/resource-tree` ); return body; }
- src/server/server.ts:78-84 (registration)Registers the MCP tool 'get_application_resource_tree' including input schema { applicationName: string } and thin wrapper handler delegating to ArgoCDClient.this.addJsonOutputTool( '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)Input schema validation for the tool using Zod.{ applicationName: z.string() },