Skip to main content
fracta debug is the entry point for diagnostic commands that inspect a running deployment. Unlike most CLI verbs it does not require a fracta project directory: every subcommand resolves its target from explicit flags or environment variables, so you can run it from anywhere.

Command tree

gateway policy

Fetches the gateway’s tool-policy and visibility snapshot. This is the verification command for Gateway Tool Policy: after you edit a tool_policy block, gateway policy confirms the gateway loaded it and shows you exactly which tools are visible vs denied.

URL resolution

By default the request is routed through the control-plane API (which proxies to the gateway pod), so thin-client operators don’t need cluster-internal DNS or kubectl port-forward to the gateway Service. Resolution order:
  1. --cp-url <url> / control_plane_api.url in fracta.yaml — preferred path; the CP daemon proxies to its configured gateway URL.
  2. --direct flag — skip the CP API and hit the gateway directly.
  3. --gateway-url <url> / $FRACTA_GATEWAY_URL / gateway.url in fracta.yaml — direct fallback.
When --direct --gateway-url is supplied, no project lookup happens — the command works from any directory. Without the explicit flag, it’ll best-effort walk up for a fracta project and read gateway.url if one is found.

Default output

Without --verbose, the command prints a summary of the gateway’s policy state:
Field meanings: Visible + Denied by policy + Disabled by registry == Catalog size. If that identity doesn’t hold, the gateway is in an inconsistent state — file an issue.

--verbose per-tool breakdown

--verbose adds a per-tool listing with the reason each non-visible tool was filtered:
Tools are namespaced as <server>.<tool>. + is visible to agents; - is filtered out. The bracketed reason is either denied_by_policy or disabled_by_registry.

--json

Emits the raw response body for machine consumption — useful for assertions in shell scripts or CI:

From outside a fracta project

The most common use:
No .fracta/ directory is required and no git init--direct plus the URL is sufficient context.

registry

The registry subtree predates the debug group and retains its own page: see fracta registry for the full surface. The debug registry alias is kept for operator muscle memory.

What’s next