Skip to main content
At AWS re:Invent? We're in Las Vegas Nov 30 – Dec 2. Let's meet in person. Let's meet.Pick a time

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-cm and argocd-rbac-cm ConfigMaps in the Argo CD namespace, and the argocd CLI 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.

  1. Add a local account with the apiKey capability to the argocd-cm ConfigMap:

    apiVersion: v1
    kind: ConfigMap
    metadata:
    name: argocd-cm
    namespace: argocd
    data:
    accounts.mcp-readonly: apiKey
  2. Bind the account to a role in the argocd-rbac-cm ConfigMap. Add this line to policy.csv, keeping any lines already there:

    apiVersion: v1
    kind: ConfigMap
    metadata:
    name: argocd-rbac-cm
    namespace: argocd
    data:
    policy.csv: |
    g, mcp-readonly, role:readonly

    An account with no binding falls back to policy.default, which may grant more or less than you expect, so always bind it explicitly.

  3. 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 as 720h or 90d. 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-in the 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

If your Argo CD API server is firewalled, contact Mintive to get the dedicated egress IP and add it to your ingress allowlist first.

  1. In Mintive, go to MCP gateway > Catalog
  2. Find Argo CD and install it
  3. Choose API token
  4. In the ARGOCD_BASE_URL field, enter your Argo CD server address (e.g. https://argocd.example.com)
  5. In the ARGOCD_API_TOKEN field, paste the token from Create an Argo CD API token
  6. In the MCP_READ_ONLY field, keep false to expose all 16 tools, or enter true for a read-only install (see Make the install read-only)
  7. Click Install

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:

  1. In Mintive, go to MCP gateway > Registry and click the Argo CD server
  2. Select the Tools tab
  3. 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​

ToolTypeWhat users can do
list_applicationsReadList applications with their sync and health status
get_applicationReadGet an application's spec and status, including the images and revision it is running
get_application_resource_treeReadWalk the resources an application owns, down to pods and ReplicaSets
get_application_managed_resourcesReadList managed resources with their live and target state, filtered by kind or name
get_application_workload_logsReadRead container logs from an application's workloads
get_application_eventsReadList Kubernetes events for an application
get_resource_eventsReadList Kubernetes events for one resource
get_resourcesReadGet the manifests of an application's resources
get_resource_actionsReadList the actions available on a resource
get_appprojectReadGet an Argo CD project and its restrictions
list_clustersReadList the clusters Argo CD deploys to
create_applicationWriteCreate an application
update_applicationWriteUpdate an application's spec
delete_applicationWriteDelete an application
sync_applicationWriteSync an application to its target revision
run_resource_actionWriteRun 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:readonly is 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_BUNDLE and 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.csv binding, 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. Set MCP_READ_ONLY to true, 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_URL is not on Argo CD's certificate. Use the hostname the certificate was issued for.
  • Connector won't start with a CA bundle: ARGOCD_CA_BUNDLE must 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_PROXY holds 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_URL match 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_PROXY must 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​