get_application_events
Retrieve deployment events for an ArgoCD application by name to monitor status and troubleshoot issues.
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:136-141 (registration)Registration of the MCP tool 'get_application_events', including schema { applicationName: z.string() }, description, and inline handler that delegates to argocdClient.getApplicationEvents
this.addJsonOutputTool( 'get_application_events', 'get_application_events returns events for application by application name', { applicationName: z.string() }, async ({ applicationName }) => await this.argocdClient.getApplicationEvents(applicationName) ); - src/server/server.ts:140-140 (handler)Inline handler function for the 'get_application_events' tool that calls the ArgoCD client's getApplicationEvents method
async ({ applicationName }) => await this.argocdClient.getApplicationEvents(applicationName) - src/server/server.ts:139-139 (schema)Input schema for the tool using Zod: applicationName as string
{ applicationName: z.string() }, - src/argocd/client.ts:235-240 (helper)Core implementation in ArgoCD client: fetches application events from ArgoCD API endpoint /api/v1/applications/{applicationName}/events and returns V1EventList
public async getApplicationEvents(applicationName: string) { const { body } = await this.client.get<V1EventList>( `/api/v1/applications/${applicationName}/events` ); return body; }