Reference
Every maqpna command, generated from the binary, plus the resource, API and configuration reference.
APIs, resources and configuration#
Gateway data-plane APIEvery endpoint agents call on the MAQPNA gateway - MCP, A2A, model calls, egress proxy and probes - with headers, bodies, status codes, reason values and curl examples.Admin APIEvery /v1 route of the MAQPNA gateway's admin API - approvals, audit, sessions, costs, policies, servers, kill switch, taint, memory, posture and more - with roles, parameters, examples and errors.Identity broker APIEvery endpoint of the MAQPNA identity broker - token mint, verify, DPoP bind, proof nonces, RFC 8693 exchange and A2A delegation, JWKS, OIDC discovery, warm-pool bootstrap and probes - plus the session-token claims.Gateway configuration fileEvery key of gateway.json, the MAQPNA gateway's configuration file, with types, defaults, validation rules and the Helm values that set them.Environment variablesEvery environment variable a MAQPNA binary, SDK or install script reads, grouped by component, with its default and meaning.Prometheus metricsEvery Prometheus metric the MAQPNA gateway, operator, identity broker and attestation service export, with the alert rules, dashboards and PromQL queries that ship with the Helm chart.Ports and endpointsEvery port each MAQPNA component listens on, the protocol and main endpoints behind it, which ones you can expose outside the cluster, and the NetworkPolicies the chart and the operator create.CLI configurationThe maqpna CLI config file and contexts, where login tokens are stored, and which of flags, environment and config wins.Helm valuesAll 686 values of the MAQPNA Helm chart with defaults and descriptions, generated from values.yaml and values.schema.json.Resources (CRDs)All 13 MAQPNA custom resources with their fields, generated from the CRD schemas.
Get started#
Install MAQPNA, run it on your laptop, and sign in.
maqpna install | Install MAQPNA in a cluster with Helm |
|---|---|
maqpna dev | Run a local MAQPNA (identity broker, gateway, test MCP server) and your agent under itup run fork snapshot restore attest timeline env status down |
maqpna init | Print a starter manifest for a MAQPNA resource |
maqpna explain | Document a MAQPNA resource or field |
maqpna login | Log in to a gateway's admin API (browser or device flow) and store the access token |
maqpna logout | Delete the context's stored access token |
maqpna whoami | Show the identity and roles the gateway sees for you |
maqpna api-resources | List the resource types maqpna knows, with short names (kubectl api-resources) |
maqpna api-versions | Print the API versions maqpna serves (kubectl api-versions) |
Run agents#
Apply manifests, start sessions and make tool calls.
maqpna apply | Validate manifests, then server-side apply them (agents, policies, trust tiers, ...) |
|---|---|
maqpna diff | Show what apply would change (server-side dry run) |
maqpna validate | Validate MAQPNA manifests offline (schemas, policies, sovereignty, references) |
maqpna session | Start, inspect, control and observe sessionsstart list get describe wait suspend resume fork snapshot delete cost exec files liveview |
maqpna agent | List and inspect agentslist get describe |
maqpna tier | List and inspect trust tierslist get |
maqpna call | Make one tool call through the gateway with a session token (debugging) |
maqpna console | Open the console of an installation |
maqpna token | Mint, inspect and verify session tokensmint inspect verify |
maqpna keygen | Generate an Ed25519 signing key pair for session identities (dev and CI) |
maqpna annotate | Update the annotations of resources (kubectl annotate) |
maqpna attach | Attach to the agent process of a session (kubectl attach; privileged, audited) |
maqpna cp | Copy files to and from a session's sandbox (kubectl cp; privileged, audited) |
maqpna create | Create resources from files, or a session (kubectl create) |
maqpna delete | Delete resources by name, selector or file (kubectl delete) |
maqpna edit | Edit a resource in $KUBE_EDITOR or $EDITOR (kubectl edit) |
maqpna exec | Run a command in a session's sandbox (kubectl exec; privileged, audited) |
maqpna label | Update the labels of resources (kubectl label) |
maqpna patch | Update fields of a resource with a merge or JSON patch (kubectl patch) |
maqpna port-forward | Forward local ports to a session's sandbox, the gateway or the console (kubectl port-forward) |
maqpna replace | Replace resources by file (kubectl replace) |
maqpna rollout | Manage the rollout of agents: status, history, restart (kubectl rollout)status history restart |
maqpna scale | Set the warm-pool size of a trust tier (kubectl scale) |
maqpna wait | Wait for a condition on resources (kubectl wait) |
Govern#
Policies, approvals, the kill switch and everything that decides what an agent may do.
maqpna policy | Test a tool call against policies, offline or on the live gatewaytest lint compile push list get |
|---|---|
maqpna eval | Score the policy decisions of an evaluation suite |
maqpna replay | Replay the audit ledger against a candidate policy |
maqpna sovereignty | Check Agent manifests against a sovereignty policy offlinecheck |
maqpna approvals | List pending approvals, and approve or deny themlist approve deny get watch |
maqpna desk | Open the approvals inbox and dev window in your browser (what MAQPNA Desk shows) |
maqpna kill | Kill switch: revoke or quarantine sessions, agents, users, tenants or tokens at the gateway (break-glass) |
maqpna revocations | List or delete revocations (deleting one lifts it)list delete |
maqpna infra | Govern Terraform/OpenTofu changes: plan diff and blast-radius tier, policy, approval-gated applyplan apply |
maqpna mcp | List MCP servers, their tools and pins (tool pinning)list tools pin serve |
maqpna a2a | List the gateway's agent-to-agent (A2A) routesroutes |
maqpna accounts | List or revoke users' connected accountslist revoke |
maqpna memory | List memory stores, or erase a user's memory with a signed certificate (GDPR Art. 17)stores erase |
maqpna taint | List, inspect and clear session taintlist get clear |
Observe#
Status, logs, the audit ledger, usage and costs.
maqpna status | One-screen status of an installation: release, workloads, sessions, approvals, audit ledger |
|---|---|
maqpna logs | Print the logs of a session's sandbox |
maqpna events | Print the events of MAQPNA objects, or of one session with its sandbox and snapshots |
maqpna audit | Verify, export, stream, tail and import into the audit ledgerverify export stream tail import fetch sinks anchor export-segments forward |
maqpna usage | Hourly usage per tenant: sandbox seconds, governed calls, model tokens, approvalsbuckets report verify export |
maqpna costs | Summarize spend, or export costs in FOCUS, the FinOps cost-export formatfocus summary |
maqpna budgets | Show budgets and the spend against themlist |
maqpna evidence | Build and verify compliance evidence packs; export the third-party registerregister frameworks generate verify |
maqpna aibom | Export the AI bill of materials (CycloneDX or SPDX) of agents, models and tools |
maqpna cluster-info | Show the MAQPNA endpoints and their health (kubectl cluster-info)dump |
maqpna describe | Show details of resources with related objects and events (kubectl describe) |
maqpna get | Display one or many resources (kubectl get for MAQPNA) |
maqpna incident | Export an incident timeline from the audit ledger (CERT-In 6-hour reporting)export |
maqpna llamay | Work with the llamay inference engine: verify its hash-chained request auditverify-audit |
maqpna top | Show resource use, tokens and cost of sessions or agents (kubectl top)sessions agents |
Operate#
Install, upgrade, back up, verify and keep an installation healthy.
maqpna doctor | Check the health and security posture of an installation |
|---|---|
maqpna preflight | Check a cluster before installing MAQPNA (read-only; exit 3 when a check fails) |
maqpna upgrade | Upgrade MAQPNA; 'upgrade check' says whether it is safecheck |
maqpna rollback | Roll the Helm release back to an earlier revision |
maqpna uninstall | Uninstall MAQPNA (resources, keys and agent namespaces are kept unless --purge) |
maqpna smoke | Smoke-test a running installation end to end (exit 3 when a step fails) |
maqpna support-bundle | Collect a redacted diagnostics archive for support |
maqpna backup | Back up the audit ledger, MAQPNA resources, sealed signing keys and PostgreSQL statecreate verify |
maqpna restore | Restore a backup (signing keys, MAQPNA resources, PostgreSQL state, audit ledger) |
maqpna dr | Disaster-recovery drill: prove a backup restores, and report recovery time and data-loss windowdrill |
maqpna keys | Rotate signing and encryption keys without downtimerotate generate inventory |
maqpna license | Install, show, verify or issue MAQPNA licences (offline EdDSA or ES256 JWS)install status verify issue |
maqpna verify | Verify signatures, SBOM attestations and checksums of MAQPNA releasesrelease image chart binary bundle |
maqpna airgap | Build, verify and mirror offline (air-gap) install bundlesbundle verify push |
maqpna config | Validate a gateway configuration file offline; sign and push configuration bundlesvalidate bundle get-contexts current-context use-context set-context delete-context view |
maqpna values | Validate Helm values for the MAQPNA chart offlinevalidate |
maqpna tenants | List tenants with their trust domain, signing key and ledger headlist |
Configure#
Contexts, shell completion and the CLI itself.
maqpna context | Manage named contexts: gateway URL, cluster and namespacelist current use set delete |
|---|---|
maqpna completion | Print a shell completion script (bash, zsh, fish, PowerShell)bash zsh fish powershell |
maqpna version | Print the CLI version, or every component's version with the skew check |
maqpna help | Show help for maqpna or one command |
maqpna alias | Install a short alias for maqpna (default ma) in your shell, with completioninstall uninstall print |
maqpna auth | Check your permissions and identity (kubectl auth can-i / whoami)can-i whoami |
maqpna plugin | List the maqpna-NAME plugins on PATH (kubectl plugin list)list |
Server binaries#
Flags of the components the Helm chart runs. You rarely start these by hand.
maqpna-gateway | The MAQPNA gateway: every tool, model and egress call passes through it. |
|---|---|
maqpna-identity | The identity broker: mints the short-lived session tokens the gateway verifies. |
maqpna-operator | The Kubernetes operator: reconciles agents, sessions, trust tiers and policies. |
Global flags#
These go before or after the command name and work with every command.
| Flag | Description |
|---|---|
--context NAME | Use this context from the config file (env MAQPNA_CONTEXT) |
--kubeconfig FILE | Kubeconfig for Kubernetes-backed commands (default $KUBECONFIG) |
-o, --output FORMAT | table, wide, json, yaml, name, jsonpath=, go-template=, custom-columns= (and -file=) |
--jq EXPR | Filter the JSON output with a jq expression |
--no-color | Plain output without colour (also NO_COLOR=1) |
--gateway URL | Gateway base URL (before the command; commands also take --gateway) |
-n, --namespace NS | Default namespace (before the command; commands also take -n) |
-v, --v N | Verbosity: 6 logs every Kubernetes and gateway request |
Environment#
| Variable | Description |
|---|---|
MAQPNA_GATEWAY_URL | gateway base URL (default for --gateway; else the context's gateway) |
MAQPNA_CONTEXT | context name (default for --context) |
MAQPNA_CONFIG | config file (default $XDG_CONFIG_HOME/maqpna/config.yaml or ~/.config/maqpna/config.yaml) |
MAQPNA_BROKER_TOKEN | bearer token for the identity broker (token mint --broker) |
MAQPNA_ADMIN_TOKEN | static bearer token for the gateway admin API (adminAuth.mode token/both) |
MAQPNA_CAPTURE_KEY | key URI of the argument-capture key (replay --capture-key) |
NO_COLOR | any value: no colour (https://no-color.org) |
MAQPNA_ASCII | 1: ASCII symbols (+ x ! *) instead of ✓ ✗ ! • |
Exit codes#
| Code | Meaning |
|---|---|
0 | success |
1 | error (the message says what failed, with a hint when there is one) |
2 | usage error: unknown flag, missing argument or bad value; the synopsis is printed |
3 | a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) |
Last updated