FastMCP server exposing the CMDB domain layer as MCP tools over stdio transport. Provides inventory management, security posture evaluation, Kubernetes topology, image vulnerability scanning, and configuration generation for homelab infrastructure.
HomeLabCMDB exposes 20 tools with consistent verb-noun naming (list_*, get_*, add_*, remove_*, delete_*, generate_*, import_*) and complete input schemas. All tools have descriptions (avg ~80 chars, within baseline 34 - 392). However, descriptions are terse and lack context for LLM selection, they state WHAT but rarely WHEN or WHY. Parameter descriptions are minimal (e.g., 'Hostname to retrieve' vs 'The FQDN or short hostname of the target host'). No output schemas are documented in the code; LLMs must infer return types from Pydantic model names. Error handling is implicit (ValueError propagates as MCP error) but lacks recovery guidance. Destructive tools (delete_host, delete_cluster) have no confirmation or dry-run pattern. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) are present despite clear risk stratification in the spec.
Create a Kubernetes cluster.
Add a host to a cluster with a role. role must be one of: control-plane, worker, etcd. Updates the role if the node already exists.
Add a tag to a host (creating the tag if needed). Idempotent.
Delete a Kubernetes cluster and its nodes/namespaces. Returns True if it existed.
Delete a host and its related records. Returns True if it existed.
Generate an Ansible INI inventory from the hosts in the CMDB.
Descriptions lack LLM-optimized context. Most are 50 - 80 chars and state only WHAT (e.g., 'Add a tag to a host') without WHEN to use or dependencies. Baseline for A+ is 50 - 200 chars with clear selection criteria.
No output schemas documented. Return types are inferred from Pydantic model names (HostOut, PostureSummaryOut, etc.) but LLMs cannot see field definitions. Agents cannot plan downstream calls or extract required IDs without trial-and-error.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Generate an Ansible YAML inventory from the hosts in the CMDB.
Generate an OpenSSH client config from the hosts in the CMDB.
Get full detail for one host, including containers, listening ports, and Tailscale services. Raises if the host is not found.
Newest-first timeline of recorded changes for a host.
Evaluate one host's security posture (hardened/exposed, active MAC, FIPS).
Full vulnerability list for an image's latest scan. Raises if not found.
Import Ansible facts from a JSON file or directory on the server's filesystem (e.g. the output of `ansible -m setup --tree`). Returns a summary of hosts upserted/failed.
List all Kubernetes clusters with node counts and namespaces.
List inventory hosts, optionally filtered by tag or OS family.
List scanned container images with their latest severity counts, per-source staleness, and running/registry-only deployment status.
List the nodes (host + role) in a Kubernetes cluster.
Aggregate security posture across all hosts (counts + exposed hostnames).
Remove a host from a cluster. Returns True if the node existed.
Remove a tag from a host. No-op if the host lacks the tag.
Destructive tools (delete_host, delete_cluster) lack confirmation or dry-run pattern. No error guidance for recovery. Agents can irreversibly delete hosts/clusters without safeguards.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Tools are stratified by risk (READ_ONLY, WRITE, DESTRUCTIVE) in the spec but not exposed to the MCP client. Agents cannot reason about side effects.
Parameter descriptions are minimal. E.g., 'Hostname to retrieve' vs 'The FQDN or short hostname of the target host; must exist in the CMDB.' LLMs cannot infer format, constraints, or valid ranges.