MCPcopy Create free account
hub / github.com/InternScience/InternAgent / cleanup_mcp

Function cleanup_mcp

internagent/mas/tools/__init__.py:90–97  ·  view source on GitHub ↗

Clean up MCP connections

()

Source from the content-addressed store, hash-verified

88
89
90async def cleanup_mcp():
91 """Clean up MCP connections"""
92 global _mcp_manager, _mcp_initialized
93 if _mcp_manager:
94 await _mcp_manager.cleanup()
95 _mcp_manager = None
96 _mcp_initialized = False
97 logger.info("MCP connections cleaned up")
98
99
100# Module initialization: Register function-based tools automatically on import

Callers 2

mainFunction · 0.90
shutdownMethod · 0.85

Calls 1

cleanupMethod · 0.45

Tested by

no test coverage detected