get_application_events
Retrieve application events by application name using the argocd-mcp server. Streamline monitoring and troubleshooting with targeted event data.
Instructions
get_application_events returns events for application by application name
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| applicationName | Yes |
Implementation Reference
- src/server/server.ts:137-142 (registration)Registers the 'get_application_events' tool with description, input schema { applicationName: z.string() }, and handler lambda that delegates to argocdClient.getApplicationEvents.'get_application_events', 'get_application_events returns events for application by application name', { applicationName: z.string() }, async ({ applicationName }) => await this.argocdClient.getApplicationEvents(applicationName) ); this.addJsonOutputTool(
- src/server/server.ts:141-141 (handler)Inline handler function for the tool that calls the ArgoCD client's getApplicationEvents method.);
- src/argocd/client.ts:235-240 (helper)ArgoCD client method implementing the core logic: fetches application events from the ArgoCD API endpoint /api/v1/applications/{applicationName}/events and returns the event list.public async getApplicationEvents(applicationName: string) { const { body } = await this.client.get<V1EventList>( `/api/v1/applications/${applicationName}/events` ); return body; }