DevSecOps hackathon ArgoCD MCP
npm install devsecops-argocd-mcpAn implementation of Model Context Protocol (MCP) server for Argo CD, Originally developed by Akutiy, modified by WIX DevSecOps team for more capabilities. Enabling AI assistants to interact with your Argo CD applications through natural language. This server allows for seamless integration with Visual Studio Code and other MCP clients through stdio and HTTP stream transport protocols.
This project is maintained by WIX DevSecOps team.

---
!argocd-mcp-demo
- Transport Protocols: Supports both stdio and HTTP stream transport modes for flexible integration with different clients
- Complete Argo CD API Integration: Provides comprehensive access to Argo CD resources and operations
- AI Assistant Ready: Pre-configured tools for AI assistants to interact with Argo CD in natural language
- Node.js (v18 or higher recommended)
- pnpm package manager (for development)
- Argo CD instance with API access
- Argo CD API token (see the docs for instructions)
.cursor/mcp.json file in your project:json
{
"mcpServers": {
"argocd-mcp": {
"command": "npx",
"args": [
"devsecops-argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "",
"ARGOCD_API_TOKEN": ""
}
}
}
}
`2. Start a conversation with Agent mode to use the MCP.
$3
1. Follow the Use MCP servers in VS Code documentation, and create a
.vscode/mcp.json file in your project:
`json
{
"servers": {
"argocd-mcp-stdio": {
"type": "stdio",
"command": "npx",
"args": [
"devsecops-argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "",
"ARGOCD_API_TOKEN": ""
}
}
}
}
`2. Start a conversation with an AI assistant in VS Code that supports MCP.
$3
1. Follow the MCP in Claude Desktop documentation, and create a
claude_desktop_config.json configuration file:
`json
{
"mcpServers": {
"argocd-mcp": {
"command": "npx",
"args": [
"devsecops-argocd-mcp@latest",
"stdio"
],
"env": {
"ARGOCD_BASE_URL": "",
"ARGOCD_API_TOKEN": ""
}
}
}
}
`2. Configure Claude Desktop to use this configuration file in settings.
$3
If your Argo CD instance uses self-signed certificates or certificates from a private Certificate Authority (CA), you may need to add the following environment variable to your configuration:
`
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
`This disables TLS certificate validation for Node.js when connecting to Argo CD instances using self-signed certificates or certificates from private CAs that aren't trusted by your system's certificate store.
> Warning: Disabling SSL verification reduces security. Use this setting only in development environments or when you understand the security implications.
Available Tools
The server provides the following ArgoCD management tools:
$3
- list_applications: List and filter all applications
- get_application: Get detailed information about a specific application
- create_application: Create a new application
- update_application: Update an existing application
- delete_application: Delete an application
- sync_application: Trigger a sync operation on an application
- get_application_events: Get events of an application
-
list_clusters: List all clusters
- create_cluster: Create a new cluster-
list_applicationsets: List and filter all applications sets
- get_applicationset: Get an application set
- create_applicationset: Create a new application set
- update_applicationset: Update an existing application set
- delete_applicationset: Delete an application set$3
- get_application_resource_tree: Get the resource tree for a specific application
- get_application_managed_resources: Get managed resources for a specific application
- get_application_workload_logs: Get logs for application workloads (Pods, Deployments, etc.)
- get_resource_events: Get events for resources managed by an application
- get_resource_actions: Get available actions for resources
- run_resource_action: Run an action on a resourceFor Development
1. Clone the repository:
`bash
git clone https://github.com/wix-private/devsecops-argocd-mcp.git
cd devsecops-argocd-mcp
`2. Install project dependencies:
`bash
pnpm install
`3. Start the development server with hot reloading enabled:
`bash
pnpm run dev
`
Once the server is running, you can utilize the MCP server within Visual Studio Code or other MCP client.$3
To update the TypeScript type definitions based on the latest Argo CD API specification:
1. Download the
swagger.json file from the ArgoCD release page, for example here is the swagger.json link for ArgoCD v2.14.11.2. Place the downloaded
swagger.json file in the root directory of the argocd-mcp project.3. Generate the TypeScript types from the Swagger definition by running the following command. This will create or overwrite the
src/types/argocd.d.ts file:
`bash
pnpm run generate-types
`4. Update the
src/types/argocd-types.ts file to export the required types from the newly generated src/types/argocd.d.ts`. This step often requires manual review to ensure only necessary types are exposed.