MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / get_instance

Method get_instance

helpers/mcp_handler.py:699–703  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

697
698 @classmethod
699 def get_instance(cls) -> "MCPConfig":
700 with cls.__lock:
701 if cls.__instance is None:
702 cls.__instance = cls(servers_list=[], config_scope="global")
703 return cls.__instance
704
705 @classmethod
706 def clear_project_instances(cls):

Callers 15

_execute_tool_requestMethod · 0.45
process_toolsMethod · 0.45
initialize_mcpFunction · 0.45
get_project_instanceMethod · 0.45
get_for_agentMethod · 0.45
build_asgi_appFunction · 0.45
_mcp_toolsFunction · 0.45
build_asgi_appMethod · 0.45
update_mcp_settingsFunction · 0.45
update_mcp_tokenFunction · 0.45
update_a2a_tokenFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected