Skip to main content

Module http_server

Module http_server 

Source
Expand description

HTTP server combining Streamable-HTTP MCP transport, REST APIs, and optional team/commercial surfaces behind feature flags.

§Pillar mapping

  • Engine: HTTP MCP transport, Context OS event bus (SSE), A2A handoffs, agent registry, capabilities/manifest/openapi endpoints.
  • Cloud (commercial): team/ (hosted team server), team_billing (billing proxy). Both gated by feature = "team-server".
  • Cross-pillar: savings_ingest, savings_summary, roi_webhook — consumed by both the local dashboard and cloud sync.

Modules§

context_views
roi_webhook
Weekly team-ROI webhook (GL #388) — posts the savings roll-up to Slack, Discord, or any generic JSON webhook once per ISO week.
savings_ingest
savings_summary
GET /v1/savings/summary — the team savings roll-up (the customer-facing “team usage visibility” surface, powering the account ROI dashboard).
team
team_billing
GET /v1/storage + GET /v1/usage — the team server’s billing-plane surface (docs/contracts/billing-plane-v2.md, GL #463).

Structs§

HttpServerConfig

Functions§

serve
serve_ipc
Serve the daemon over a platform-independent IPC channel (UDS on Unix, Named Pipes on Windows).