swag
$ swag Community Low Riskswag (swag) — Automatically generate RESTful API documentation with Swagger 2.0 for Go. Verified across Homebrew Core, Aqua Standard Registry; included for structured shell automation under FCRS-1.0 baseline review.
brew install swag Pure CLI utility (swag); directly invoked in shell workflows without an equivalent MCP server layer.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Registry-verified CLI binary (swag); inspect --help output before assuming structured JSON flags.
- Indexed in Homebrew Core, Aqua Standard Registry
Classified as low risk based on design-docs scope and upstream package metadata.
- Install channel verified via
brew install swag - Declared license: MIT
Installable via brew install swag across macos, linux, windows.
- Primary install:
brew install swag
Automatically generate RESTful API documentation with Swagger 2.0 for Go
- Official homepage/source: https://github.com/swaggo/swag
community lineage tool maintained by swaggo.
- Upstream repository: swaggo/swag
Upstream documentation linked at https://github.com/swaggo/swag; baseline FCRS cap applies until local probe runs.
- https://github.com/swaggo/swag
Security, Auth & Guardrails
Local execution tool; typically requires no external credentials unless targeting remote endpoints.
Open-source / free local execution; zero API token or SaaS billing overhead from the binary itself.
When invoking `swag`, verify flags with `swag --help` first, close stdin to avoid interactive prompts, and require confirmation before remote or destructive mutations.
Agent-Ready Command Recipes
Safe Read-Only Queries
swag --help
Discover supported flags and subcommands for swag before constructing automated calls.
swag --version
Confirm swag is installed and executable in PATH with zero side effects.
Strengths for Agents
- + Indexed in Homebrew Core, Aqua Standard Registry with reproducible install via
brew install swag - + Standalone CLI binary (
swag) directly composable in shell pipelines
Caveats & Pitfalls
- ! Low-confidence baseline review: not yet locally probed on this host; run
swag --helpto verify flags before scripting