manhvu1997/mcp-argocd
3.1
If you are the rightful owner of mcp-argocd and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project implements an MCP server that integrates with the ArgoCD API, exposing application management actions as MCP tools.
Tools
9
Resources
0
Prompts
0
MCP ArgoCD Server
This project implements an MCP server that integrates with the ArgoCD API, exposing application management actions as MCP tools. It supports listing, creating, deleting, syncing, rolling back applications, listing events, and showing pod logs.
Project Structure
src/
- Source code for the MCP server and toolsconfig/
- Environment configurationtests/
- Pytest-based testsdocs/
- Documentation
Setup
- Install dependencies (requires Python 3.10+ and uv):
venv
source .venv/bin/activate
pip install -r requirements.txt # or use `uv pip install .` if using pyproject.toml
- Configure environment:
Create config/.env
with:
ARGOCD_API_URL=https://cd.apps.argoproj.io
ARGOCD_USERNAME=admin
ARGOCD_PASSWORD=yourpassword
ARGOCD_TOKEN=yourtoken
MCP_TRANSPORT=
Usage
Run the server (default: stdio):
uv run src/server.py
To use SSE or HTTP transport, set MCP_TRANSPORT=sse
or MCP_TRANSPORT=streamable-http
in your environment.
Tools
list_applications
: List all ArgoCD applicationscreate_application
: Create a new ArgoCD applicationdelete_application
: Delete an ArgoCD applicationforce_sync_application
: Force sync an ArgoCD applicationlist_event_applications
: List events for an ArgoCD applicationshow_pod_logs
: Show pod logs for an applicationrollback_application
: Rollback an ArgoCD applicationget_manifests_appication
: Get detail resource of applicationdescribe_application
: Describe an ArgoCD application
Testing
Run tests with pytest:
pytest tests/