FunctionattachAttach a session to an MCP request context. This allows downstream handlers to retrieve the session. attach: func(req: borrow<context>, session: borrow<session>);