MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / close

Method close

src/mcp_client/client.py:121–127  ·  view source on GitHub ↗

Public method to clean up the client

(self)

Source from the content-addressed store, hash-verified

119 self._client = None
120
121 def close(self):
122 """Public method to clean up the client"""
123 if self._loop is None:
124 return
125 self._loop.run_until_complete(self._close_client())
126 self._loop.close()
127 self._loop = None
128
129 def get_session_id(self) -> Optional[str]:
130 """

Callers 7

run_loopFunction · 0.95
mainFunction · 0.95
_run_single_queryFunction · 0.95
runMethod · 0.45
setupFunction · 0.45
canListenFunction · 0.45
App.tsxFile · 0.45

Calls 1

_close_clientMethod · 0.95

Tested by

no test coverage detected