mirror of
https://github.com/langchain-ai/deepagents.git
synced 2026-07-22 17:55:31 -04:00
75d37c3475
Related #4786 When `dcode` starts with MCP servers enabled, it loads the code used to connect to those servers. Loading the optional authentication support for the first time can perform filesystem work. Previously, that work happened on the async server's event loop, where blocking calls are rejected, so startup could fail with: BlockingError: Blocking call to os.getcwd `dcode` now loads MCP authentication support in a worker thread before the server needs it. This keeps the potentially blocking work away from the event loop so the runtime no longer rejects it during startup. --- #4786 addressed the immediate failure by limiting `filelock` to versions before 3.30. This follow-up hardens `dcode` against the broader problem instead of relying only on one dependency version. The version limit remains in place for now. If the optional authentication support cannot be loaded, the failure is still reported only for an MCP server that needs it; it does not prevent unrelated or stdio MCP servers from loading. A startup smoke test uses the same blocking-call detector as the runtime to verify that first-time authentication loading happens in a worker thread, so CI catches regressions.
Deep Agents Code Tests
API Keys
Required
ANTHROPIC_API_KEY- Required for integration tests that use Anthropic models
Optional
LANGSMITH_API_KEY- Enables LangSmith tracing for test runs