Set up the Argo CD MCP server
The Argo CD MCP server gives AI agents access to your GitOps deployments, so they can list applications, check sync and health status, see which images and revisions each application is running, walk resource trees, and read Kubernetes events and workload logs. This guide covers creating an Argo CD API token and adding the connector from the Mintive MCP gateway catalog.
Prerequisites
- A Mintive admin account
- An Argo CD instance
- Permission to edit the
argocd-cmandargocd-rbac-cmConfigMaps in the Argo CD namespace, and theargocdCLI logged in as an admin
Two requirements apply:
- Network access: The Argo CD API server must be reachable from Mintive's runtime. A public ingress for the Argo CD server works directly. If it is firewalled, allowlist Mintive's dedicated egress IP. If it is only reachable inside your network, install it with the API token via Private Network method instead.
- API token: The connector authenticates with an API token for an Argo CD local account. Everyone who uses the connector shares that one account.
Create an Argo CD API token
Because the connector acts as one local account for every user, the account's RBAC role decides what anyone can do through it. Argo CD's built-in role:readonly covers every read tool, including workload logs, and it makes the write tools fail even if they are turned on. Bind a custom role only if your team needs agents to sync or change applications.
-
Add a local account with the
apiKeycapability to theargocd-cmConfigMap:apiVersion: v1kind: ConfigMapmetadata:name: argocd-cmnamespace: argocddata:accounts.mcp-readonly: apiKey -
Bind the account to a role in the
argocd-rbac-cmConfigMap. Add this line topolicy.csv, keeping any lines already there:apiVersion: v1kind: ConfigMapmetadata:name: argocd-rbac-cmnamespace: argocddata:policy.csv: |g, mcp-readonly, role:readonlyAn account with no binding falls back to
policy.default, which may grant more or less than you expect, so always bind it explicitly. -
Generate a token for the account and copy it:
argocd account generate-token --account mcp-readonly --expires-in <duration>Replace
<duration>with how long the token should stay valid under your security policy, such as720hor90d. A shorter lifetime limits how long a leaked token stays usable, but the connector stops working when the token expires, so put the renewal in your calendar. Without--expires-inthe token never expires.
Add Argo CD to Mintive
The Argo CD connector is pre-listed in the Mintive MCP gateway catalog. Installing it asks for an Authentication Method, which is how the connector reaches your Argo CD API server:
- API token if Argo CD is reachable from the internet, publicly or with Mintive's dedicated egress IP allowlisted
- API token via Private Network if it is only reachable inside your network
- API token via Private Network with private CA if it is only reachable inside your network and its certificate comes from your internal CA
- API token
- API token via Private Network
- API token via Private Network with private CA
If your Argo CD API server is firewalled, contact Mintive to get the dedicated egress IP and add it to your ingress allowlist first.
- In Mintive, go to MCP gateway > Catalog
- Find Argo CD and install it
- Choose API token
- In the
ARGOCD_BASE_URLfield, enter your Argo CD server address (e.g.https://argocd.example.com) - In the
ARGOCD_API_TOKENfield, paste the token from Create an Argo CD API token - In the
MCP_READ_ONLYfield, keepfalseto expose all 16 tools, or entertruefor a read-only install (see Make the install read-only) - Click Install
The connector sends its Argo CD traffic through a SOCKS5 route in a private network. The agent replica inside your network makes the connection to Argo CD and looks up its hostname with your network's DNS, so no inbound firewall rule is needed.
Before you start
- Set up a private network that serves hosted connectors, if you haven't already.
- Run agent version 0.2.0 or later on its replicas. Older replicas don't serve SOCKS5 routes.
- Know your Argo CD server's internal hostname, such as
argocd.corp.example. The replica must be able to resolve it and reach it on its port. The connector only works with hostnames, not IP addresses.
Add a SOCKS5 route
- In the private network's details, click Add route
- Enter a Name, such as
Argo CD - Under Type, select SOCKS5 proxy
- In Allowed destinations, enter the Argo CD server's hostname and port, such as
argocd.corp.example:443 - Click Add route, then wait for the route to show Ready
- Copy the route's
pnrte_...id
Install the connector
- In Mintive, go to MCP gateway > Catalog
- Find Argo CD and install it
- Choose API token via Private Network
- In the
ARGOCD_BASE_URLfield, enter the internal URL, such ashttps://argocd.corp.example. Its host and port must match the route's allowed destination. - In the
ARGOCD_API_TOKENfield, paste the token from Create an Argo CD API token - In the
ARGOCD_SOCKS5_PROXYfield, enter thepnrte_...id you copied - In the
MCP_READ_ONLYfield, keepfalseto expose all 16 tools, or entertruefor a read-only install (see Make the install read-only) - Click Install
Move the connector into the private network
A connector installed from the catalog starts outside any network. It runs, but until it is moved every tool call fails with an error saying the connector is not in a Private Network yet.
- Open the connector's settings page, click the Hosted connector tab, and expand Networking
- Select your network in Move to another network and click Move connector
Mintive recreates the connector runtime, so it is unavailable for a few minutes. From then on, the connector sends every Argo CD request through the route, and fails rather than connecting directly if the route is unavailable. TLS is verified against your Argo CD server's own certificate.
The connector reaches Argo CD the same way as the API token via Private Network method, through a SOCKS5 route in a private network. It trusts only the CA certificates you provide instead of the public CAs. Hostname verification stays on, and there is no option to turn certificate verification off.
Before you start
- Set up a private network that serves hosted connectors, if you haven't already.
- Run agent version 0.2.0 or later on its replicas. Older replicas don't serve SOCKS5 routes.
- Know your Argo CD server's internal hostname, such as
argocd.corp.example. The replica must be able to resolve it and reach it on its port, and the server's certificate must be issued for that hostname. The connector only works with hostnames, not IP addresses. - Get your internal CA's certificates in PEM format: the root, plus any intermediates your Argo CD server does not send. Each one starts with
-----BEGIN CERTIFICATE-----. To see which certificates the server sends, runopenssl s_client -connect argocd.corp.example:443 -servername argocd.corp.example -showcerts </dev/nullfrom inside your network.
Add a SOCKS5 route
- In the private network's details, click Add route
- Enter a Name, such as
Argo CD - Under Type, select SOCKS5 proxy
- In Allowed destinations, enter the Argo CD server's hostname and port, such as
argocd.corp.example:443 - Click Add route, then wait for the route to show Ready
- Copy the route's
pnrte_...id
Install the connector
- In Mintive, go to MCP gateway > Catalog
- Find Argo CD and install it
- Choose API token via Private Network with private CA
- In the
ARGOCD_BASE_URLfield, enter the internal URL, such ashttps://argocd.corp.example. Its host and port must match the route's allowed destination, and its host must match the server's certificate. - In the
ARGOCD_CA_BUNDLEfield, paste the CA certificates, including each-----BEGIN CERTIFICATE-----and-----END CERTIFICATE-----line - In the
ARGOCD_API_TOKENfield, paste the token from Create an Argo CD API token - In the
ARGOCD_SOCKS5_PROXYfield, enter thepnrte_...id you copied - In the
MCP_READ_ONLYfield, keepfalseto expose all 16 tools, or entertruefor a read-only install (see Make the install read-only) - Click Install
Move the connector into the private network
A connector installed from the catalog starts outside any network. It runs, but until it is moved every tool call fails with an error saying the connector is not in a Private Network yet.
- Open the connector's settings page, click the Hosted connector tab, and expand Networking
- Select your network in Move to another network and click Move connector
Mintive recreates the connector runtime, so it is unavailable for a few minutes. From then on, the connector sends every Argo CD request through the route, and fails rather than connecting directly if the route is unavailable. The connector's logs list each CA certificate it trusts and when it expires. Update ARGOCD_CA_BUNDLE before your CA is rotated or expires.
Make the install read-only
The connector ships all 16 Argo CD tools, and its five write tools are enabled by default: create_application, update_application, delete_application, sync_application, and run_resource_action. There are two ways to remove them.
Read-only mode (recommended). Set MCP_READ_ONLY to true when installing, or later in the connector's settings. The connector then doesn't offer the write tools at all, so nobody can switch them back on from the Tools tab.
Tool toggles. Keep MCP_READ_ONLY at false and turn off the write tools you don't want, for example to allow syncs but not deletes:
- In Mintive, go to MCP gateway > Registry and click the Argo CD server
- Select the Tools tab
- Switch off each write tool by name
The tools are not grouped into read and modifying sections, because the Argo CD server does not mark which of its tools change data.
Disabled tools no longer appear in the agent's tool list. Combined with a role:readonly token, Argo CD also rejects writes if someone turns a write tool back on later. See tool customization for bulk controls and approval policies for new tools.
What the connector exposes
| Tool | Type | What users can do |
|---|---|---|
list_applications | Read | List applications with their sync and health status |
get_application | Read | Get an application's spec and status, including the images and revision it is running |
get_application_resource_tree | Read | Walk the resources an application owns, down to pods and ReplicaSets |
get_application_managed_resources | Read | List managed resources with their live and target state, filtered by kind or name |
get_application_workload_logs | Read | Read container logs from an application's workloads |
get_application_events | Read | List Kubernetes events for an application |
get_resource_events | Read | List Kubernetes events for one resource |
get_resources | Read | Get the manifests of an application's resources |
get_resource_actions | Read | List the actions available on a resource |
get_appproject | Read | Get an Argo CD project and its restrictions |
list_clusters | Read | List the clusters Argo CD deploys to |
create_application | Write | Create an application |
update_application | Write | Update an application's spec |
delete_application | Write | Delete an application |
sync_application | Write | Sync an application to its target revision |
run_resource_action | Write | Run a resource action, such as restarting a Deployment |
Security considerations
- The API token is a single shared credential, so every tool call runs as that Argo CD account. Argo CD attributes activity to the account, not to individual people.
- Grant the account the lowest role that works.
role:readonlyis enough for every read tool and makes the write tools fail even if they are exposed. A custom role scoped to specific projects limits which applications the connector can see. - Rotate by generating a new token for the same account and updating the connector, then revoke the old one with
argocd account delete-token. - The connector connects outbound to your Argo CD API server only, and no deployment data is stored in Mintive beyond what individual tool calls return.
- When connecting through a private network, the SOCKS5 route keeps Argo CD off the public internet. The route only reaches the destinations you allow, and only hosted connectors in that private network can use it.
- With a private CA, the connector trusts only the CA certificates in
ARGOCD_CA_BUNDLEand always checks that the certificate matches the Argo CD hostname. It refuses to start if certificate verification is turned off.
Troubleshooting
- Connection timeout or tool calls hang: Argo CD is not reachable from Mintive. Verify the URL is publicly accessible, or contact Mintive to get the dedicated egress IP and add it to your ingress allowlist. If Argo CD is only reachable inside your network, install it with the API token via Private Network method.
- 401 or "Unauthorized" on every tool: The token is wrong, was revoked, or has expired. Generate a new token and update
ARGOCD_API_TOKEN. - Tools return no applications: The account's role can't see them. Check the
policy.csvbinding, and that any project-scoped role covers the projects your team uses. - Write tools fail with a permission error: The account is bound to
role:readonly, which is the intended result for a read-only install. SetMCP_READ_ONLYtotrue, or turn the write tools off on the Tools tab, so agents stop trying them. - Certificate errors, such as "unable to verify the first certificate": The connector does not trust the CA that issued Argo CD's certificate. If it comes from your internal CA, install with the API token via Private Network with private CA method. If you already did, add any missing intermediate certificates to
ARGOCD_CA_BUNDLE. - "Hostname/IP does not match certificate's altnames": The host in
ARGOCD_BASE_URLis not on Argo CD's certificate. Use the hostname the certificate was issued for. - Connector won't start with a CA bundle:
ARGOCD_CA_BUNDLEmust hold at least one complete-----BEGIN CERTIFICATE-----block and no private key. Check the connector's logs for the exact reason. - "The connector is not in a Private Network yet":
ARGOCD_SOCKS5_PROXYholds a route id, but the connector hasn't been moved. Move it into the network. - Private network calls fail with "fetch failed": Confirm the route shows Ready, and that the host and port in
ARGOCD_BASE_URLmatch one of its allowed destinations. The text after "fetch failed" gives the reason. - Connector won't start after moving it into a private network:
ARGOCD_SOCKS5_PROXYmust be the id of a SOCKS5 proxy route in that network. Check the connector's logs for the exact reason. - Route shows "Requires agent 0.2.0 or later": Upgrade the agent on the private network's replicas, then wait for the route to show Ready.
Next steps
- Tool customization: Control which Argo CD tools are exposed to users
- MCP gateway administration: Manage access and permissions
- Private networks: Set up routes for other internal services