Flock MCP Utility: flockmcp
Overview
flockmcp is a utility, not a service. It is started by the AI assistant, not by systemd. The assistant runs it as a child process and talks to it on its standard input and output. It runs for as long as the conversation needs it and exits when the assistant closes its input.
flockmcp holds a connection to each router it is told about. It connects to a router the first time a tool asks that router something, and connects again by itself if the connection is lost. It starts whether or not the routers are up.
Options
flockmcp [OPTIONS]
Options:
--daemon <NAME=ENDPOINT> A flockd daemon to talk to, e.g. r1=http://192.0.2.1:50051
--allow-actions <NAME> Let tools that change a daemon's running state act on this one
--request-timeout <SECS> How long to wait for a daemon to answer [default: 10]
--connect-timeout <SECS> How long to wait for a connection to a daemon [default: 3]
-h, --help Print help
-V, --version Print version
--daemon
--daemon names a router and gives the gRPC endpoint of its flockd. Give it once for each router.
flockmcp --daemon r1=http://192.0.2.1:50051 --daemon r2=http://[2001:db8::2]:50051
The name is what the assistant, and you, call the router: every tool that asks a router something takes it as daemon. A name is made of letters, digits, _, . and -. The endpoint may use a host name in place of an address.
With no --daemon there is one daemon, named local, at the endpoint FLOCK_ENDPOINT gives, or http://[::1]:50051 if that is not set. This is the flockd on the same host, where it serves its API by default.
--allow-actions
--allow-actions names a router that the assistant may reset a BGP neighbor on. It is not given for a router by default. See Changing a Router.
--request-timeout and --connect-timeout
A router that does not answer in --request-timeout seconds, or cannot be connected to in --connect-timeout seconds, is reported to the assistant as unreachable. The other routers are not affected.
Logging
flockmcp logs to its standard error, at the level RUST_LOG sets. Where the log goes is up to the assistant that started it.
More than one assistant
Each assistant starts a flockmcp of its own. Any number can talk to the same routers at once.