Function

attach

Attach a session to an MCP request context. This allows downstream handlers to retrieve the session.

attach: func(req: borrow​<request>, session: borrow​<session>);