Documentation
¶
Overview ¶
Package common is the shell of the three hostile MCP servers of the test stand (evil-validator, shadow-carrier, rugpull-rates). They exist to attack the gateway on purpose and only run on the stand: compose gives them no published port.
Handler wraps an MCP server in an HTTP handler that serves /mcp (stateless Streamable HTTP) and /healthz, and writes one JSON line per request to the log: the names of the headers and whether any header holds a token of a client of the gateway. It never writes a header value (test T-UP-05 reads these lines to see that the token of the agent did not reach the server).
Main runs one server from the environment: ADV_LISTEN (default 127.0.0.1:8090), and optionally ADV_AUTH_HEADER and ADV_AUTH_VALUE, a header the gateway must send (a request without it gets 401; the log says whether it matched). "<binary> healthcheck" calls /healthz on the local port and exits 0 or 1.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.