MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / lifespan

Method lifespan

src/mcp/server/context.py:72–74  ·  view source on GitHub ↗

The server-wide lifespan output (what `Server(..., lifespan=...)` yielded).

(self)

Source from the content-addressed store, hash-verified

70
71 @property
72 def lifespan(self) -> LifespanT_co:
73 """The server-wide lifespan output (what `Server(..., lifespan=...)` yielded)."""
74 return self._lifespan
75
76 @property
77 def connection(self) -> Connection:

Callers 4

connectFunction · 0.80
runMethod · 0.80
runMethod · 0.80
appFunction · 0.80

Calls

no outgoing calls

Tested by 1

appFunction · 0.64