Abstract transport for external MCP communication.
virtual void close()=0
Close the transport connection.
virtual bool open()=0
Open the transport connection.
virtual void interrupt()
Abort any in-flight send_request() call ASAP.
virtual bool is_connected() const =0
Check if transport is connected.
virtual bool is_interrupted() const
Whether an interrupt is currently suppressing this transport.
virtual void clear_interrupt()
Release an interrupt so the transport can be used again.
virtual std::string send_request(const std::string &request_json, uint32_t timeout_ms=0)=0
Send a JSON-RPC request and wait for response.
Activate model on GPU (WARM → ACTIVE).
@ optional
optional: every escape asks the host's path approver