KosmoKrator

productivity

Argo CD MCP Integration for OpenAI Agents SDK

Connect Argo CD to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write API key auth

Connect Argo CD to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

Argo CD MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-argocd": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=argocd",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=argocd --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Argo CD instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Argo CD Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the Argo CD integration catalog.

MCP toolSource functionTypeDescription
integration__argocd__argocd_list_applications argocd.argocd_list_applications Read List all Argo CD applications. Optionally filter by project or label selector.
integration__argocd__argocd_get_application argocd.argocd_get_application Read Get details for a specific Argo CD application, including sync status, health, source, and destination.
integration__argocd__argocd_create_application argocd.argocd_create_application Write Create a new Argo CD application. Requires application name, project, source repository with path and revision, and destination cluster/namespace.
integration__argocd__argocd_list_projects argocd.argocd_list_projects Read List all Argo CD projects.
integration__argocd__argocd_get_project argocd.argocd_get_project Read Get details for a specific Argo CD project, including source/destination rules and cluster configurations.
integration__argocd__argocd_list_repositories argocd.argocd_list_repositories Read List all configured Git repositories in Argo CD, including connection status.
integration__argocd__argocd_get_current_user argocd.argocd_get_current_user Read Get the authenticated Argo CD user's profile information.

Related Argo CD Pages