3.7.3 #42
call518
announced in
Announcements
3.7.3
#42
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
MCP Ambari API — v3.7.3 (First Release)
MCP Ambari API is a Model Context Protocol (MCP) server that bridges AI/LLM agents to Apache Ambari's REST API, enabling natural-language Hadoop cluster management. This is the first formal GitHub Release, consolidating all work since the initial commit.
Overview
This release provides a complete MCP server implementation that allows LLM clients (Claude Desktop, OpenWebUI, MCP Inspector, and any MCP-compatible client) to manage Hadoop clusters through conversational commands. The server communicates with Apache Ambari 2.7+ via its REST API and exposes the operations as MCP tools and resources.
Core Architecture
mcp_main.pyhandles MCP tool and resource registration;functions.pycontains business logic and HTTP helpers.stdiofor direct LLM client integration andstreamable-httpfor Docker-based deployments with MCPO proxy.aiohttpfor non-blocking I/O.Features
Cluster Management
Service Lifecycle
Configuration Management
dump_configurations— unified tool replacing the formerget_configurationsandlist_configurationstools.yarn-site,hdfs-site).Host Management
User Management
Alert Management
get_alerts_history— unified tool for both current and historical alerts.CRITICAL,WARNING,OK,UNKNOWN.Ambari Metrics Service (AMS) Integration
/ws/v1/timeline/metrics/metadatainstead of a hardcoded catalog.list_ambari_metric_apps— discover all AMSappIdvalues with optional metric counts.list_common_metrics_catalog— keyword search against the live per-app metric catalog.list_ambari_metrics_metadata— raw AMS metadata explorer withapp_id,metric_name_filter,host_filter, andsearchparameters.query_ambari_metrics— time-series data retrieval with exact-match metric names, host scoping, duration strings (e.g.,1h,30m), and configurable precision.ambari-metrics://catalog/allambari-metrics://catalog/appsambari-metrics://catalog/<appId>HDFS Reporting
hdfs_dfadmin_report— DFSAdmin-style capacity and DataNode summary that mirrors the output ofhdfs dfsadmin -report, with async DataNode metric fetching.Security and Authentication
streamable-httpmode viaREMOTE_AUTH_ENABLEandREMOTE_SECRET_KEYenvironment variables or CLI flags.gitleakssecret scanning integrated as a pre-commit hook.LLM Integration
prompt_template.md) shipped inside the package for improved tool discoverability by LLM agents.X-Requested-Byheader added to all Ambari API requests for protocol compatibility.Observability
log_tooldecorator applied uniformly to all MCP tools for timing and structured logging.MCP_LOG_LEVELenvironment variable.Deployment
PyPI
Docker (streamable-http mode)
cp .env.example .env # Edit .env with your Ambari cluster settings docker-compose up -dstdio (Claude Desktop / MCP Inspector)
{ "mcpServers": { "mcp-ambari-api": { "command": "uvx", "args": ["--python", "3.12", "mcp-ambari-api"], "env": { "AMBARI_HOST": "your-ambari-host", "AMBARI_PORT": "8080", "AMBARI_USER": "admin", "AMBARI_PASS": "admin", "AMBARI_CLUSTER_NAME": "your-cluster" } } } }Dependencies
fastmcpaiohttpRequirements
Known Limitations
Links
This discussion was created from the release 3.7.3.
All reactions