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 🙏

© 2025 – Pkg Stats / Ryan Hefner

acm-mcp-server

v1.0.1

Published

This repository aims to build the MCP server for Advanced Cluster Management (ACM).

Downloads

17

Readme

ACM MCP SERVER

This repository provides a Model Context Protocol (MCP) server for Red Hat Advanced Cluster Management (ACM). It exposes ACM resources and tools through the MCP interface, enabling AI agents to interact with ACM environments.

🌟 Features

📚 MCP Resources

The server provides 25 ACM resource schemas with comprehensive metadata:

Core Resources

  • ManagedCluster - Managed cluster registration and status
  • Klusterlet - Klusterlet agent configuration
  • ClusterManager - Hub cluster management
  • ManifestWork - Workload deployment to managed clusters
  • Placement - Cluster selection and placement policies

Policy & Governance

  • Policy - Policy templates and compliance rules
  • PolicySet - Policy grouping and management
  • PlacementBinding - Policy-to-placement binding

Add-ons & Extensions

  • AddOnTemplate - Add-on deployment templates
  • ManagedClusterAddOn - Add-on instance management
  • ClusterManagementAddOn - Global add-on configuration
  • ManagedServiceAccount - Service account management

And More...

  • MultiClusterHub - Hub installation and configuration
  • ManifestWorkReplicaSet - Workload distribution
  • ManagedClusterSet - Cluster grouping
  • PlacementDecision - Placement results
  • ManagedClusterView - Resource access control

Each resource includes:

  • ✅ Complete JSON schema definition
  • ✅ API version and kind information
  • ✅ Detailed descriptions and usage hints
  • ✅ Categorized organization (OCM, Cluster, AddOn, etc.)
  • ✅ Labels and metadata

🛠️ MCP Tools

clusters

  • List all managed clusters in the hub
  • Display cluster status (joined, available, hub accepted)
  • Show cluster ages and API endpoints

kubectl

  • Execute kubectl commands securely
  • Apply YAML configurations
  • Support for both hub and managed cluster contexts
  • Automatic kubeconfig management

connect_cluster

  • Generate kubeconfig for managed clusters
  • Create service accounts with specified cluster roles
  • Automatic RBAC binding setup

🚀 Installation

From NPM

npm install -g acm-mcp-server

From Source

git clone https://github.com/your-org/acm-mcp-server.git
cd acm-mcp-server
npm install
npm run build

🔧 Configuration

MCP Client Configuration

Add the server to your MCP client configuration:

{
  "mcpServers": {
    "acm-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "acm-mcp-server@latest"
      ]
    }
  }
}

Environment Setup

Set your kubeconfig to point to the ACM hub cluster:

export KUBECONFIG=/path/to/your/acm-hub-kubeconfig

📖 Usage Examples

Accessing ACM Resources

// List all available ACM resources
const resources = await client.listResources();

// Get specific resource schema
const managedCluster = await client.readResource({ 
  uri: "acm://managedcluster" 
});

// Access resource categories
const placement = await client.readResource({ 
  uri: "acm://placement" 
});

Using ACM Tools

// List managed clusters
const clusters = await client.callTool({
  name: "clusters",
  arguments: {}
});

// Execute kubectl commands
const pods = await client.callTool({
  name: "kubectl",
  arguments: {
    command: "kubectl get pods -n open-cluster-management"
  }
});

// Connect to a managed cluster
const connection = await client.callTool({
  name: "connect_cluster",
  arguments: {
    cluster: "my-managed-cluster",
    clusterRole: "cluster-admin"
  }
});

🧪 Testing

The project includes comprehensive test suites:

# Run all tests
cd test
npm install
npm run test:all

# Run resource tests only
npm run test:resources

# Run tool tests only
npm run test:tools

📂 Resource Categories

Resources are organized into logical categories:

  • OCM (22 resources) - Open Cluster Management core
  • Cluster (9 resources) - Cluster management
  • AddOn (3 resources) - Add-on management
  • Policy (3 resources) - Policy and governance
  • Work (2 resources) - Workload distribution
  • Hub (2 resources) - Hub components
  • Authentication (1 resource) - Security and auth

🔗 Requirements

  • Node.js 18+
  • Access to ACM hub cluster
  • kubectl CLI tool
  • Valid kubeconfig for ACM hub

📄 License

ISC License