Skip to main content

Resources and Prompts

The ArgoCD MCP Server provides MCP Resources for real-time data streams and Prompts for guided workflows.


📁 Available Resources

Resources provide real-time data streams that can be monitored by AI agents.

Resource URIDescriptionUpdate Frequency
argocd://applications/[cluster]List all applications and their stateEvery 5 seconds
argocd://application-metrics/[cluster]/[app]Real-time application metricsEvery 10 seconds
argocd://sync-operations/[cluster]Active sync operationsEvery 2 seconds
argocd://deployment-events/[cluster]Deployment event streamReal-time
argocd://cluster-health/[cluster]Overall cluster healthEvery 30 seconds

argocd://applications/[cluster]

List all applications in a cluster with health and sync status.

URI Example: argocd://applications/production

Returns:

  • Application names
  • Health status (Healthy, Degraded, Progressing)
  • Sync status (Synced, OutOfSync)
  • Last sync time
  • Target revision

argocd://application-metrics/[cluster]/[app]

Get real-time metrics for a specific application.

URI Example: argocd://application-metrics/production/payment-service

Returns:

  • Pod count and status
  • Resource utilization
  • Replica health
  • Sync duration

argocd://sync-operations/[cluster]

Monitor active sync operations across the cluster.

URI Example: argocd://sync-operations/production

Returns:

  • Active syncs
  • Sync phase
  • Progress percentage
  • Resource changes

Use Case:

"Monitor the sync operation for my-app in production cluster"

argocd://deployment-events/[cluster]

Real-time stream of deployment events.

URI Example: argocd://deployment-events/production

Returns:

  • Event type
  • Application affected
  • Timestamp
  • Event details

argocd://cluster-health/[cluster]

Overall cluster health overview.

URI Example: argocd://cluster-health/production

Returns:

  • Total applications
  • Healthy count
  • Degraded count
  • Out-of-sync count

💬 Available Prompts

Prompts are guided workflows that orchestrate multiple tools to accomplish complex tasks.

PromptDescriptionTools Used
onboard_github_repositoryStep-by-step repository onboarding4 tools
full_application_deploymentEnd-to-end deployment workflow11 tools
debug_application_issuesComprehensive troubleshooting5 tools
rollback_decisionGuided rollback with impact analysis8 tools
setup_argocd_projectMulti-tenancy project setup4 tools
deploy_new_versionGuided deployment workflow7 tools
post_deployment_validationComprehensive health check4 tools

onboard_github_repository

Step-by-step GitHub repository onboarding workflow.

Workflow:

  1. Check environment credentials
  2. Validate repository connection
  3. Onboard to ArgoCD
  4. Verify registration

Use Case:

"Help me onboard my GitHub repository https://github.com/myorg/myapp"

full_application_deployment

Complete end-to-end deployment from repository to running application.

Workflow:

  1. Onboard repository (if needed)
  2. Create ArgoCD application
  3. Show deployment preview
  4. Execute deployment
  5. Monitor progress
  6. Validate success

Use Case:

"Deploy my application from https://github.com/myorg/myapp to production cluster"

Time Estimate: ~1-2 minutes


debug_application_issues

Comprehensive troubleshooting workflow with automatic error detection.

Workflow:

  1. Analyze application status
  2. Detect errors in logs
  3. Review Kubernetes events
  4. Identify root cause
  5. Provide recommendations

Use Case:

"My app 'payment-service' is not working in production, help me debug it"

Time Estimate: ~15 seconds (fully automated)


rollback_decision

Guided rollback with history and impact preview.

Workflow:

  1. Show deployment history
  2. Preview rollback changes
  3. Execute rollback
  4. Validate recovery

Use Case:

"URGENT: Latest deployment of checkout-service is broken, rollback immediately!"

Time Estimate: ~1 minute


setup_argocd_project

Multi-tenancy project configuration assistant.

Workflow:

  1. Gather project requirements
  2. Configure RBAC policies
  3. Create project
  4. Verify setup
  5. Generate manifests

Use Case:

"Set up a new ArgoCD project for the payments team"

deploy_new_version

Guided workflow for deploying a new version.

Workflow:

  1. Validate configuration
  2. Show deployment diff
  3. Execute sync
  4. Monitor progress
  5. Validate deployment

Use Case:

"Deploy version 2.0.0 of my-app to production"

post_deployment_validation

Comprehensive post-deployment health check.

Workflow:

  1. Check sync status
  2. Validate configuration
  3. Analyze logs for errors
  4. Get health metrics

Use Case:

"Validate that my deployment was successful"

Using Resources and Prompts

Accessing Resources

Resources are accessed via the MCP protocol using their URI:

Client: Monitor the production cluster health
Agent: [Subscribes to argocd://cluster-health/production]
[Provides real-time health updates]

Using Prompts

Prompts are invoked to guide complex multi-step operations:

Client: Deploy my application from GitHub to production
Agent: [Invokes full_application_deployment prompt]
[Orchestrates 11 tools in sequence]
[Provides step-by-step progress updates]

Next Steps

  • 📖 Examples - Usage patterns and workflows
  • 🛠️ Tools - Available MCP tools reference
  • ⚙️ Configuration - Server configuration