npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

argocd-mcp-lite

v0.1.0

Published

Token-efficient ArgoCD MCP server for AI agents

Downloads

14

Readme

argocd-mcp-lite

A token-efficient fork of mcp-for-argocd, optimized for AI agent usage. Drop-in replacement — same tool names, same required parameters, dramatically fewer tokens.

Why this fork?

Raw ArgoCD API responses are massive. A single get_application call returns ~15KB, list_applications can exceed 300KB, and get_resources without filters can blow past 100KB. For AI agents operating within context windows, this is wasteful — most of that payload is managedFields, networking metadata, and operation history that agents never need.

argocd-mcp-lite adds smart defaults that strip unnecessary fields while keeping full read/write capability:

| Tool | Before | After (default) | Savings | |------|--------|-----------------|---------| | get_application | ~15KB raw | ~2KB compact | ~85% | | get_application_resource_tree | ~8KB raw | ~2KB compact | ~75% | | get_resources (empty refs) | ~100KB+ (fetched everything) | Error with guidance | 100% waste prevented | | get_application_events | All events, unsorted | Last 20, sorted desc | ~80% | | get_application_workload_logs | 100 lines | 50 lines | ~50% |

Every optimization is optional — pass compact=false or adjust limits to get the full response when you need it.

New Parameters

All new parameters are optional with sensible defaults. Existing required parameters are unchanged.

get_application

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | compact | boolean | true | Strips managedFields, operation history, verbose annotations. Keeps sync/health status, ArgoCD annotations, source URL/path/chart. Set false for full response. |

get_application_resource_tree

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | kind | string | — | Filter nodes by K8s kind (e.g., "Deployment", "Pod") | | health | enum | — | Filter by health: Healthy, Degraded, Progressing, Missing, Unknown, Suspended | | namespace | string | — | Filter nodes by namespace | | compact | boolean | true | Strips networkingInfo and images. Keeps group, kind, name, namespace, health, status, parentRefs. |

get_resources

Breaking change: resourceRefs is now required and must not be empty. Use get_application_resource_tree first to discover resource references, then pass specific refs. This prevents accidental 100KB+ responses from fetching all resources.

get_application_events / get_resource_events

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | limit | int | 20 | Maximum events to return | | sinceMinutes | int | — | Only events from the last N minutes |

Events are sorted by lastTimestamp descending (most recent first).

get_application_workload_logs

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | tailLines | int | 50 | Number of log lines from the end | | sinceSeconds | int | — | Only logs from the last N seconds |

All Available Tools

Application Management

  • list_applications — List and filter applications (already optimized with field stripping + pagination)
  • get_application — Get application details (compact mode)
  • create_application — Create a new application
  • update_application — Update an existing application
  • delete_application — Delete an application
  • sync_application — Trigger a sync operation

Resource Management

  • get_application_resource_tree — Resource tree with filters and compact mode
  • get_application_managed_resources — Managed resources with server-side filtering
  • get_resources — Fetch specific resource manifests by ref
  • get_application_workload_logs — Logs with configurable tail and time window
  • get_application_events — Application events with limit and time filter
  • get_resource_events — Resource events with limit and time filter
  • get_resource_actions — Available resource actions
  • run_resource_action — Execute a resource action

Installation

Prerequisites

  • Node.js (v18 or higher)
  • Argo CD instance with API access
  • Argo CD API token (docs)

Claude Desktop / Claude Code

{
  "mcpServers": {
    "argocd-mcp": {
      "command": "npx",
      "args": ["argocd-mcp-lite@latest", "stdio"],
      "env": {
        "ARGOCD_BASE_URL": "<argocd_url>",
        "ARGOCD_API_TOKEN": "<argocd_token>"
      }
    }
  }
}

VS Code

{
  "servers": {
    "argocd-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["argocd-mcp-lite@latest", "stdio"],
      "env": {
        "ARGOCD_BASE_URL": "<argocd_url>",
        "ARGOCD_API_TOKEN": "<argocd_token>"
      }
    }
  }
}

Cursor

{
  "mcpServers": {
    "argocd-mcp": {
      "command": "npx",
      "args": ["argocd-mcp-lite@latest", "stdio"],
      "env": {
        "ARGOCD_BASE_URL": "<argocd_url>",
        "ARGOCD_API_TOKEN": "<argocd_token>"
      }
    }
  }
}

Configuration

Read-Only Mode

Set MCP_READ_ONLY=true to disable write tools (create_application, update_application, delete_application, sync_application, run_resource_action).

Self-Signed Certificates

For ArgoCD instances with self-signed certs:

"NODE_TLS_REJECT_UNAUTHORIZED": "0"

Warning: Only use in development environments or when you understand the security implications.

Development

git clone https://github.com/YOUR_ORG/argocd-mcp-lite.git
cd argocd-mcp-lite
pnpm install
pnpm build

Transport modes: stdio (default), sse, http

Credits

Fork of argoproj-labs/mcp-for-argocd, originally created by @jiachengxu, @imwithye, @hwwn, and @alexmt from Akuity.