Problem
MCP servers configured in the user's OpenHands SaaS workspace settings work correctly in regular SaaS conversations but do not work in automation-triggered conversations.
Observed Behavior
- Regular conversations: MCP tools are available and functional
- Automation conversations: The automation script calls
workspace.get_mcp_config() but returns empty/no servers, so MCP tools are not available
Expected Behavior
Automation-triggered conversations should have access to the same MCP servers configured in the user's workspace settings.
Reproduction
- Configure an MCP server in OpenHands SaaS workspace settings
- Verify it works in a regular conversation
- Create an automation that attempts to use MCP tools
- Observe that MCP tools are not available in the automation
Environment
- Automation service uses
sdk_main.py template which calls workspace.get_mcp_config()
- The SDK method fetches from
/api/v1/users/me endpoint
Problem
MCP servers configured in the user's OpenHands SaaS workspace settings work correctly in regular SaaS conversations but do not work in automation-triggered conversations.
Observed Behavior
workspace.get_mcp_config()but returns empty/no servers, so MCP tools are not availableExpected Behavior
Automation-triggered conversations should have access to the same MCP servers configured in the user's workspace settings.
Reproduction
Environment
sdk_main.pytemplate which callsworkspace.get_mcp_config()/api/v1/users/meendpoint