Build a fresh MCPServer for this session. Called on initialize, and
for the first 2026-07-28 request of a principal that has no server yet.
The server MUST be constructed with sessionId (i.e.
createMCPServer({ ..., sessionId })): it keys per-session state —
the layer workspace in particular (#1030) — and its disposal on
session end. The transport rejects servers built without it rather
than letting every HTTP session silently share the local workspace.
Build a fresh MCPServer for this session. Called on
initialize, and for the first 2026-07-28 request of a principal that has no server yet.The server MUST be constructed with
sessionId(i.e.createMCPServer({ ..., sessionId })): it keys per-session state — the layer workspace in particular (#1030) — and its disposal on session end. The transport rejects servers built without it rather than letting every HTTP session silently share the local workspace.