grpcprocctl: inspect and operate grpcproc nodes through their
Inspector, from a terminal or, as an MCP server,
from an AI agent. A separate module, so grpcproc itself carries no CLI or MCP
dependencies. The site has a page for each:
grpcprocctl and
an AI agent over MCP.
go install github.com/floatdrop/grpcproc/tools/cmd/grpcprocctl@latest
The node must serve the Inspector next to grpcproc:
node.Register(grpcServer)
insp := inspect.New(node) // forwards to other nodes' Inspectors, as the node reaches them
insp.Register(grpcServer)
defer insp.Close()
In a terminal
export GRPCPROC_ADDR=10.0.0.5:9000 # or --addr; TLS by default, --plaintext without
grpcprocctl --plaintext ps --sort mailbox
every node this one knows of, by the members its Membership reports and by links, with its peers up and down; --json also lists each node's links, up to 32 nodes
one process, with what it says about itself: --node, --wait
names [name]
global names: who holds one, or a list: --node, --prefix, --limit
groups [group]
a grpcproc/groups scope's groups, with their members on every node and on this one, and the scope's other nodes and their states; or one group's members: --node, --scope, --prefix, --limit
watch
stream spawns, exits, links, members, dead letters: --node, --kind, --count
exit <pid|name> [reason]
ask a process to exit
loglevel <pid|name> <level>
change one process's log level
leader [status] <cluster>
a grpcproc/leader election, as each node that takes part sees it
leader move <cluster>
hand leadership over: --to a node, by default the follower with the latest state
leader cordon <cluster> <node>
keep a node from leading, to work on its host; if it leads, it hands over
leader uncordon <cluster> <node>
let it lead again
cron [list] [<pid|name>]
grpcproc/cron processes and their jobs: --node, every node by default
cron enable|disable|remove <pid|name> <job>
change a job of a cron process: --node
saga [engines]
grpcproc/saga engines and the sagas they run: --node, every node by default
saga runs [<saga>]
runs of a saga, or of the sagas one engine runs: --status active,done,stuck, --limit, --after <id> (and --after-saga when no saga is named) for the next page, --node
saga get <saga> <id>
one run: its state, error, timers and waiting signals, with its data and payloads as JSON when the engine shows them: --node
saga resume <saga> <id>
make a stuck run active again, then show it: --node
dot
Graphviz of processes and who started whom: --node, --cluster
mcp
serve these as MCP tools over stdio: --allow-writes
web
serve a web UI that shows the cluster live: --listen, --allow-writes
grpcprocctl --version prints the version it was installed at, which is also
what its MCP server reports.
A pid is written as grpcproc prints it, <node.incarnation.id>; a name is
looked up on --node, by default the node serving the Inspector.
--json before node, nodes, ps, inspect, names, groups, watch, leader, cron or saga prints the same
data as JSON: one indented value, or for watch one compact event per line,
so grpcprocctl --json watch | jq sees events as they happen. The objects
are those the MCP tools return, which wrap lists in an object of their own.
Connection flags follow grpcurl: --plaintext, --cacert, --cert and
--key for mutual TLS, --servername.
draws each node as a cluster, each supervisor bold, an edge from each
process to those it started, and any process with waiting messages in red.
Leader elections
grpcprocctl --plaintext leader cordon sched b # b led: it hands over
NODE ROLE TERM LEADER VIEW STATE CORDONED UNREACHABLE SINGLETON BACKOFF ERROR
a leader 2 a a,b,c 2.3 b <a.1.11>
b follower 2 a a,b,c 2.3 b none 200ms
c follower 2 a a,b,c 2.3 b none
Each row is what one node's elector believes, so nodes that name different
leaders, or lag a term behind, show a partition. move, cordon and
uncordon go to whichever node leads, through the Inspector's Call, and
print the table once every node agrees, or as it stands when --timeout
runs out, saying so. A cordon is kept in the state the leader replicates:
the node stays out of the running across its own restarts until uncordon.
Cron jobs
grpcprocctl --plaintext cron disable --node b billing yearly
NODE CRON JOB SPEC ZONE NEXT LAST RUNNING LAST FAILURE ERROR
b billing leap 0 0 29 2 * UTC 2028-02-29T00:00:00Z 0
b billing paused 0 * * * * UTC disabled 0
b billing yearly @yearly UTC disabled 0
cron finds every cron process on one node by the type of message it
takes, whatever it is named or labelled, and across all of them by that
type and its label, cron, so that each node lists only those (one
spawned with a label of its own is found with --node). It lists the
jobs as each process publishes them: when each runs next and last ran, how many runs are going,
why the last one that failed did. enable, disable and remove go to the
cron process through the Inspector's Call, then list it again. Its runs are
processes of their own: grpcprocctl ps --label cron:yearly shows those
going.
Sagas
grpcprocctl --plaintext saga runs --status stuck
SAGA ID STATE STATUS ATTEMPTS SIGNALS OWNER UPDATED ERROR
orders order-17 charging stuck 5 1 2026-10-05T11:49:21.704174Z card declined
saga finds the saga engines by their label and asks one that says it
runs the saga, on --node if given: an engine answers for the runs of the
sagas it runs and no others, and shows their data only with its
Config.InspectData. With no saga named, runs lists the sagas of the
first engine found. runs lists them a page at a time, at most 100 unless
--limit says otherwise, and prints the flags for the next page; get
shows one, its error and the signals waiting for a state that takes them,
with its data and their payloads as JSON when the engine shows them.
Both go through the Inspector's Query, which a read-only Inspector serves.
resume makes a stuck run active again, through Call, which it refuses.
In a browser
grpcprocctl --plaintext web # http://localhost:9911
serves a page, in the spirit of Erlang's observer, that reads the cluster
through the same Inspector and refreshes every second:
Cluster: every node, with its peers up and down, dead letters and
queues, those in trouble first, a hundred at a time, and up to 32 nodes a
map of the links between them with messages per second on each. Grouped
by a key of the nodes' metadata, a data center or a shard, it adds each
group up and maps what goes between groups, up to 24; a group, or a
filter by name or key=value, lists its nodes. What every name begins
with, as the pods of one chart share yarco-moq-, is left off the map
and the peers and dimmed wherever a node or a PID is named, on every
page: the rest tells the nodes apart.
Pages share a walk over
the cluster, which asks 32 nodes at a time: a large cluster is walked
again once five times as long as the last walk took has passed, and at
most 15 seconds. The node picker at the top filters as you type.
Node: its counters and links, with the last minute charted; the
links down or queued first, a hundred at a time, filtered by peer or
grouped by a key of the peers' metadata as the node's Membership
reports it.
Processes: the table ps prints, with messages in and out per
second and the share of each second each process was busy; the scope
(name, label, state, mailbox) goes to the node, the search and the order
stay in the page.
Supervision: each process under the one that started it, coloured by
state, mailbox or activity.
Events: spawns, exits with reasons, links and dead letters, streamed
as they happen.
Cron and Elections: every grpcproc/cron job and grpcproc/leader
election on the nodes of the shared walk, found by their label (cron)
and how electors are named, asking 32 nodes at a time; a node that
cannot be asked is listed with why. A cron process spawned with a label
of its own is shown by grpcprocctl cron --node, not here.
Groups: the grpcproc/groups scopes the node runs, as its copy has
them: each group's members on every node and on this one, by prefix, a
group's members once picked, and the other nodes of the scope with their
states (synced, syncing, absent, unreachable).
Sagas: the grpcproc/saga engines reachable from here and the sagas
each runs, and a saga's runs a page at a time, by status, as
grpcprocctl saga runs lists them. A run opens beside them, as saga get shows it: why it is stuck, its timers and owner, its data when the
engine shows it, and the signals waiting.
A process opens beside any of these: its mailbox and messages per second
charted, what it says about itself (asked for, or asked again on an
interval, since asking takes it a turn), and what it started. The address
says what is open, so a view can be shared.
The page is read-only unless started with --allow-writes, which adds
exiting a process, setting its log level, enabling, disabling and removing
cron jobs, moving or cordoning a leader, and resuming a stuck saga run,
each confirmed first. It
listens on localhost by default and then answers only to a localhost Host,
so a page elsewhere cannot reach it through the browser; a change must come
from the page itself. On any other address, put it behind something that
authenticates. The API behind the page returns the objects --json
prints, /api/nodes with when the walk ended: /api/nodes, /api/node, /api/processes, /api/process,
/api/names, /api/groups, /api/group, /api/crons, /api/elections, /api/sagas, /api/saga/runs,
/api/saga/run, and /api/events as server-sent events.
For an AI agent
claude mcp add grpcproc -- grpcprocctl --plaintext --addr 10.0.0.5:9000 mcp
The server explains grpcproc to the agent (pids, labels, what a deep mailbox
or a busy process means) and offers:
Tool
cluster_nodes
every node known, its links added up (by a metadata key with group_links_by), and which could not be reached
node_info
one node: counts, dead letters, link traffic and errors
list_processes
filter and sort, e.g. by mailbox to find backlogs
get_process
one process, with what it says about itself
watch_events
collect events for a few seconds
election
a leader election, as each node sees it
cron_jobs
cron processes and their jobs, on a node or all of them
saga_runs
saga runs by saga and status, a page at a time
saga_run
one saga run: its state, error and waiting signals, and its data when the engine shows it
global_names
who holds a global name, or every name with a prefix
process_groups, group_members
a groups scope's groups and other nodes, as one node's copy has them; one group's members
So "orders are slow since the deploy" becomes: list processes by mailbox,
find ledger-writer with 41 waiting, inspect it, see it busy on one message
for a second, watch events for exits and dead letters.
Package client is a typed wrapper over grpcproc's Inspector, shared by grpcprocctl and its MCP server: flat, readable views of nodes, processes and events, target parsing, and a walk over every node of a cluster.
Package client is a typed wrapper over grpcproc's Inspector, shared by grpcprocctl and its MCP server: flat, readable views of nodes, processes and events, target parsing, and a walk over every node of a cluster.
Package dot draws grpcproc processes as a Graphviz digraph: one cluster per node, and an edge from each process to those it started, which for supervised processes is the supervision tree.
Package dot draws grpcproc processes as a Graphviz digraph: one cluster per node, and an edge from each process to those it started, which for supervised processes is the supervision tree.
Package mcpserver offers grpcproc's Inspector to AI agents as MCP tools, so an agent can investigate a symptom ("orders are slow") by looking at the cluster itself: which processes have backlogs, what they say about themselves, what is exiting and why.
Package mcpserver offers grpcproc's Inspector to AI agents as MCP tools, so an agent can investigate a symptom ("orders are slow") by looking at the cluster itself: which processes have backlogs, what they say about themselves, what is exiting and why.
Package web is grpcprocctl's web UI: a page in the browser that shows a grpcproc cluster through its Inspector, live, as Erlang's observer shows a BEAM node.
Package web is grpcprocctl's web UI: a page in the browser that shows a grpcproc cluster through its Inspector, live, as Erlang's observer shows a BEAM node.
Click to show internal directories.
Click to hide internal directories.
go.dev uses cookies from Google to deliver and enhance the quality of its services and to
analyze traffic. Learn more.