MCPcopy Create free account
hub / github.com/openai/openai-agents-python / cleanup

Method cleanup

src/agents/mcp/server.py:279–283  ·  view source on GitHub ↗

Cleanup the server. For example, this might mean closing a subprocess or closing a network connection.

(self)

Source from the content-addressed store, hash-verified

277
278 @abc.abstractmethod
279 async def cleanup(self):
280 """Cleanup the server. For example, this might mean closing a subprocess or
281 closing a network connection.
282 """
283 pass
284
285 @abc.abstractmethod
286 async def list_tools(

Callers 3

closeMethod · 0.45
lifespanFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected