Fleet Tools
These tools are about the set of routers flockmcp was told of, and about flockmcp itself.
list_daemons
Lists the routers: each one's name, endpoint, whether it can be reached, its flockd version, and whether that version is one this flockmcp talks to. An assistant starts here, as the names are what every other tool takes as daemon.
It takes no arguments, and asks every router as it is called.
{
"daemons": [
{
"name": "r1",
"endpoint": "http://192.0.2.1:50051",
"allow_actions": true,
"reachable": true,
"version": "26.5.0",
"git_commit": null,
"version_match": true,
"counters": {
"connections": 1,
"version_probes": 1,
"requested_probes": 0,
"version_mismatches": 0,
"retries": 0,
"unreachable": 0
}
}
]
}
allow_actionsis whetherflockmcpwas started with--allow-actionsfor the router. The router has a setting of its own as well.version_matchis false for a routerflockmcpwill not talk to. It,versionandgit_commitare null where the router could not be asked.- A router that cannot be reached has
reachablefalse and anerrorsaying why.
The counters are kept from when flockmcp started:
| Counter | Counts |
|---|---|
connections | Connections made to the router. More than one means the connection was lost and made again |
version_probes | Times the router was asked its version because it had to be: on first use, and after each new connection |
requested_probes | Times it was asked its version though that was not due: by list_daemons, and before every reset |
version_mismatches | Times the version was not one this flockmcp talks to |
retries | Calls asked again because the router restarted under them |
unreachable | Times the router could not be reached |
fleet_overview
The system overview of several routers in one call.
| Argument | |
|---|---|
daemons | The routers to ask. Leave out to ask every router |
Each router has its overview, or an error saying why it could not be asked.
server_status
Reports on flockmcp or flockmcpd itself, not on a router: its version, whose major and minor version are those of the flockd release line it talks to.
{
"server": "flockmcp",
"version": "26.5.0",
"build": "release",
"refuses_version_mismatch": true
}
flockmcpd adds http, for its endpoint:
{
"server": "flockmcpd",
"version": "26.5.0",
"build": "release",
"refuses_version_mismatch": true,
"http": {
"bound_addr": "[::1]:8650",
"allowed_hosts": ["localhost", "127.0.0.1", "::1"],
"loopback_hosts_only": true,
"refused_hosts": 0
}
}
| Field | |
|---|---|
bound_addr | The address and port it serves on |
allowed_hosts | The Host names it answers to: allowed_hosts as configured, or the loopback names if that is not set |
loopback_hosts_only | allowed_hosts is not set, so only requests naming localhost, 127.0.0.1 or ::1 as their Host are answered. See Security |
refused_hosts | How many requests it has refused, with 403, for a Host not in allowed_hosts |