MCPcopy Create free account
hub / github.com/Accenture/mcp-bench / close

Method close

mcp_modules/tool_cache.py:348–352  ·  view source on GitHub ↗

Close database connection

(self)

Source from the content-addressed store, hash-verified

346 return {'enabled': True, 'error': str(e)}
347
348 def close(self):
349 """Close database connection"""
350 if hasattr(self.local, 'conn'):
351 self.local.conn.close()
352 del self.local.conn
353
354
355# Global cache instance

Callers 1

_init_dbMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected