KosmoKrator

messaging

RabbitMQ CLI for AI Agents

Use the RabbitMQ CLI from KosmoKrator to call RabbitMQ tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

6 functions 6 read 0 write Username and password auth

RabbitMQ CLI Setup

RabbitMQ can be configured headlessly with `kosmokrator integrations:configure rabbitmq`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure rabbitmq --set username="$RABBITMQ_USERNAME" --set password="$RABBITMQ_PASSWORD" --set hostname="$RABBITMQ_HOSTNAME" --enable --read allow --write ask --json
kosmokrator integrations:doctor rabbitmq --json
kosmokrator integrations:status --json

Credentials

Authentication type: Username and password basic. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
username RABBITMQ_USERNAME Text string yes Username
password RABBITMQ_PASSWORD Secret secret yes Password
hostname RABBITMQ_HOSTNAME URL url yes Management URL

Call RabbitMQ Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call rabbitmq.rabbitmq_list_queues '{}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:rabbitmq rabbitmq_list_queues '{}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs rabbitmq --json
kosmo integrations:docs rabbitmq.rabbitmq_list_queues --json
kosmo integrations:schema rabbitmq.rabbitmq_list_queues --json
kosmo integrations:search "RabbitMQ" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to RabbitMQ.

rabbitmq.rabbitmq_list_queues

Read read

List all RabbitMQ queues across all virtual hosts. Returns queue names, vhost, message counts, consumer counts, and state.

Parameters
none

Generic CLI call

kosmo integrations:call rabbitmq.rabbitmq_list_queues '{}' --json

Provider shortcut

kosmo integrations:rabbitmq rabbitmq_list_queues '{}' --json

rabbitmq.rabbitmq_get_queue

Read read

Get detailed information about a specific RabbitMQ queue, including message counts, consumers, bindings, policy, and arguments.

Parameters
vhost, name

Generic CLI call

kosmo integrations:call rabbitmq.rabbitmq_get_queue '{"vhost":"example_vhost","name":"example_name"}' --json

Provider shortcut

kosmo integrations:rabbitmq rabbitmq_get_queue '{"vhost":"example_vhost","name":"example_name"}' --json

rabbitmq.rabbitmq_list_exchanges

Read read

List all RabbitMQ exchanges across all virtual hosts. Returns exchange names, types, vhost, and durability.

Parameters
none

Generic CLI call

kosmo integrations:call rabbitmq.rabbitmq_list_exchanges '{}' --json

Provider shortcut

kosmo integrations:rabbitmq rabbitmq_list_exchanges '{}' --json

rabbitmq.rabbitmq_list_connections

Read read

List all active RabbitMQ AMQP connections. Returns client info, peer host/port, channels, and connection state.

Parameters
none

Generic CLI call

kosmo integrations:call rabbitmq.rabbitmq_list_connections '{}' --json

Provider shortcut

kosmo integrations:rabbitmq rabbitmq_list_connections '{}' --json

rabbitmq.rabbitmq_list_vhosts

Read read

List all RabbitMQ virtual hosts. Returns vhost names, tracing status, and message counts.

Parameters
none

Generic CLI call

kosmo integrations:call rabbitmq.rabbitmq_list_vhosts '{}' --json

Provider shortcut

kosmo integrations:rabbitmq rabbitmq_list_vhosts '{}' --json

rabbitmq.rabbitmq_get_overview

Read read

Get RabbitMQ cluster overview — node info, RabbitMQ version, message rates, queue totals, and listener ports.

Parameters
none

Generic CLI call

kosmo integrations:call rabbitmq.rabbitmq_get_overview '{}' --json

Provider shortcut

kosmo integrations:rabbitmq rabbitmq_get_overview '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

rabbitmq.rabbitmq_list_queues

List all RabbitMQ queues across all virtual hosts. Returns queue names, vhost, message counts, consumer counts, and state.

Operation
Read read
Schema command
kosmo integrations:schema rabbitmq.rabbitmq_list_queues --json
ParameterTypeRequiredDescription
No parameters.

rabbitmq.rabbitmq_get_queue

Get detailed information about a specific RabbitMQ queue, including message counts, consumers, bindings, policy, and arguments.

Operation
Read read
Schema command
kosmo integrations:schema rabbitmq.rabbitmq_get_queue --json
ParameterTypeRequiredDescription
vhost string yes The virtual host containing the queue (e.g., "/").
name string yes The queue name.

rabbitmq.rabbitmq_list_exchanges

List all RabbitMQ exchanges across all virtual hosts. Returns exchange names, types, vhost, and durability.

Operation
Read read
Schema command
kosmo integrations:schema rabbitmq.rabbitmq_list_exchanges --json
ParameterTypeRequiredDescription
No parameters.

rabbitmq.rabbitmq_list_connections

List all active RabbitMQ AMQP connections. Returns client info, peer host/port, channels, and connection state.

Operation
Read read
Schema command
kosmo integrations:schema rabbitmq.rabbitmq_list_connections --json
ParameterTypeRequiredDescription
No parameters.

rabbitmq.rabbitmq_list_vhosts

List all RabbitMQ virtual hosts. Returns vhost names, tracing status, and message counts.

Operation
Read read
Schema command
kosmo integrations:schema rabbitmq.rabbitmq_list_vhosts --json
ParameterTypeRequiredDescription
No parameters.

rabbitmq.rabbitmq_get_overview

Get RabbitMQ cluster overview — node info, RabbitMQ version, message rates, queue totals, and listener ports.

Operation
Read read
Schema command
kosmo integrations:schema rabbitmq.rabbitmq_get_overview --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.