Expand description
A small HTTP service over the same five read-only operations as the MCP
server, and through the same code: encode, decode, inspect,
compare, discover, plus capabilities. Version 1 of the interface
lives under /v1/.
It is written directly on std::net so that every bound is in this
file: one request per connection, a fixed number of workers, a fixed
queue, a deadline on reading, a cap on the header block and on the body.
It does not speak TLS and does not authenticate anyone, so it listens
on the loopback interface unless told otherwise, and on loopback it
answers only requests addressed to a loopback host name.
Structs§
- Options
- What the service may cost, apart from the per-call limits of the operations themselves.
Constants§
- OPERATIONS
- The operations a POST may name.
Functions§
- is_
loopback - Whether an address is on the loopback interface.
- serve
- Serve until the listener fails. Each connection carries one request.