Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

HashiCorp Consul

$ consul Official High Risk
HashiCorp · Cloud & Infra · BSL-1.1 · macos / linux / windows

HashiCorp Consul CLI (consul) inspects and manages Consul service catalogs, health checks, KV stores, ACLs, and service-mesh configs, emitting JSON on kv export, config read, and acl ... -format=json under CONSUL_HTTP_TOKEN auth.

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
brew install hashicorp/tap/consul
CLI vs MCP Decision CLI Preferred vs MCP

consul talks directly to the local or remote Consul HTTP agent via a fast single Go binary.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

kv export, config read, and acl subcommands emit JSON, while older commands like members and catalog services only emit plain text.

  • JSON on kv export, config read, and acl -format=json; plain text on members
Trust & Safety 18 / 25

Fine-grained ACL tokens (CONSUL_HTTP_TOKEN) protect reads/writes cleanly, though recursive KV deletes carry high risk.

  • Supports CONSUL_HTTP_TOKEN ACL scoping; lacks universal --dry-run
Setup & Portability 14 / 15

Single static Go binary via Homebrew or official downloads across macOS, Linux, and Windows.

  • Single Go binary via brew install hashicorp/tap/consul
Utility & Efficiency 11 / 15

Useful for quick operator checks, though Consul's REST API (/v1/*) is more consistent for pure JSON automation.

  • Quick operator CLI; REST API offers fuller JSON parity
Maintenance & Lineage 8 / 10

Official hashicorp/consul repository maintained under BSL-1.1.

  • Official hashicorp/consul repository
Docs & Verifiability 8 / 10

Well-documented HashiCorp Developer CLI commands and --help.

  • Official docs at developer.hashicorp.com/consul

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Reads CONSUL_HTTP_ADDR, CONSUL_HTTP_TOKEN, CONSUL_NAMESPACE, and TLS env vars (CONSUL_CACERT) from the shell environment.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

CLI binary is free under BSL-1.1; runs against your own Consul cluster.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Consul CLI Agent Rules
- Verify `CONSUL_HTTP_ADDR` and use a read-only `CONSUL_HTTP_TOKEN` during investigation.
- Remember `consul kv export` returns base64-encoded values and `members` emits plain text (use `/v1/catalog/...` HTTP API if full JSON is needed).
- Never run `consul kv delete -recurse` or `consul force-leave` without explicit human approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Export a KV prefix tree as JSON
consul kv export app/config/

Exports matching KV keys and base64-encoded values as a JSON array.

Read a service-mesh config entry in JSON
consul config read -kind service-defaults -name web

Prints the active Consul configuration entry as JSON.

Strengths for Agents

  • + Fast single Go binary with clean CONSUL_HTTP_TOKEN ACL scoping.
  • + consul kv export and consul config read emit clean JSON natively.
  • + Supports TLS mTLS client configuration via standard CONSUL_* env vars.

Caveats & Pitfalls

  • ! -format=json is not supported on older commands like consul members or consul catalog services.
  • ! Lacks a built-in --dry-run flag for kv put, kv delete, or config write.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI