|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
Session-aware MCP Streamable HTTP server. More...
#include <http_server.h>
Public Member Functions | |
| bool | start () |
| Bind and serve until stop() is called. | |
| bool | start_async () |
| Bind and serve on a background listener thread. | |
| void | stop () |
| Stop HTTP acceptance, cancel session work, and join the listener. | |
Session-aware MCP Streamable HTTP server.
This baseline returns one application/json response per POST (a call the client cancelled ends with an empty text/event-stream instead, so no response reaches it) and declines optional GET/SSE streams with HTTP 405. Sessions end with DELETE, after session_idle_timeout without a request, or by eviction at max_sessions; an ended session's id answers 404. factory must return a fresh, registered, uninitialized MCPServer for every new HTTP session. It receives the validated authorization scope so embeddings can isolate durable stores without exposing authentication concepts to GraphEngine.
Definition at line 109 of file http_server.h.