mdapi-sync-calls-in-async-context-require-asyncio-to-thread
All conn.mdapi.* method calls are synchronous (simple-salesforce uses zeep/suds under the hood). Calling them directly inside async tool functions blocks the event loop. Every mdapi call must be wrapped in await asyncio.to_thread(conn.mdapi.Method, args). Found 23 violations across metadata, security, integration, and utilities modules.
Related
- mdapi-sync-calls-in-async-functions-require-asyncio-to-threa
- simple-salesforce-mdapi-sync-must-wrap-asyncio-to-thread
- simple-salesforce-mdapi-sync-calls-need-asyncio-to-thread
- salesforce-mcp-23-mdapi-calls-missing-asyncio-to-thread
- mdapi-deploy-blocking-requires-asyncio-to-thread
- salesforce-mcp-23-sync-mdapi-calls-in-async-context-law3-vio
- all-mdapi-sync-calls-must-wrap-asyncio-to-thread
- all-simple-salesforce-mdapi-sync-calls-must-use-asyncio-to-t
- sfdc-mdapi-async-wrapping-law3-requirement