You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add asyncio.Lock around _connections, _current_template, and other shared mutable state in tools.py to prevent race conditions in concurrent MCP tool calls.
Acceptance Criteria
asyncio.Lock instances for connection state, template state, measurement state
All reads/writes to shared state use async with lock:
Add asyncio.Lock around
_connections,_current_template, and other shared mutable state in tools.py to prevent race conditions in concurrent MCP tool calls.Acceptance Criteria
async with lock: