class documentation
class _ConnectionRecord: (source)
Constructor: _ConnectionRecord(server, factory, idle_timeout)
A single MCP session held open by a dedicated owner task.
_run enters and exits the session's context manager in the same task for the connection's whole lifetime; list_tools / call_tool activities on the same event loop call through the shared session (MCP multiplexes concurrent requests by id).
| Method | __init__ |
Undocumented |
| Async Method | aclose |
Signal the owner task to exit its context manager and wait for it. |
| Method | acquire |
Mark a call in flight; pause idle eviction while calls are active. |
| Method | release |
Mark a call done; arm idle eviction once no calls remain in flight. |
| Async Method | session |
Return the live session, or raise the connect failure. |
| Async Method | _maybe |
Undocumented |
| Method | _on |
Undocumented |
| Async Method | _run |
Undocumented |
| Instance Variable | _idle |
Undocumented |
| Instance Variable | _idle |
Undocumented |
| Instance Variable | _inflight |
Undocumented |
| Instance Variable | _owner |
Undocumented |
| Instance Variable | _ready |
Undocumented |
| Instance Variable | _server |
Undocumented |
| Instance Variable | _stop |
Undocumented |