aiida_mcp.connection module¶
AiiDA profile loading and status helpers.
- aiida_mcp.connection.ensure_profile() None¶
Load the default AiiDA profile and initialise its storage once, thread-safely.
- aiida_mcp.connection.get_status() dict[str, Any]¶
Report the AiiDA profile, daemon and broker status without raising.
- Returns:
Whether a profile is loaded, the daemon state, and broker connectivity. If loading the profile fails, only
profile_loadedanderrorare present.- Return type:
dict[str, Any]
- aiida_mcp.connection.lock() allocate_lock¶
Return the lock guarding profile load and switch operations.
- Returns:
The lock used to serialise profile load and switch operations.
- Return type:
threading.Lock