From c426d18a4f477e0431f8f59e7eb082480b0c24f9 Mon Sep 17 00:00:00 2001 From: openhands Date: Mon, 4 May 2026 21:06:42 +0000 Subject: [PATCH] test: install SDK from PR #3054 branch for MCP config fix testing This temporarily patches setup.sh to install the SDK from the fix/mcp-config-format-passthrough branch instead of PyPI. Testing SDK PR: https://github.com/OpenHands/software-agent-sdk/pull/3054 Related issue: https://github.com/OpenHands/automation/issues/93 The fix adds expose_secrets=true to get_mcp_config() and properly handles the mcpServers format returned by the API. Co-authored-by: openhands --- automation/presets/plugin/setup.sh | 25 +++++++++++++++++-------- automation/presets/prompt/setup.sh | 25 +++++++++++++++++-------- 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/automation/presets/plugin/setup.sh b/automation/presets/plugin/setup.sh index 26f497f..36c4f67 100644 --- a/automation/presets/plugin/setup.sh +++ b/automation/presets/plugin/setup.sh @@ -1,17 +1,26 @@ #!/bin/bash -# Install the OpenHands SDK from PyPI. +# Install the OpenHands SDK from PR branch for testing. +# +# TESTING: SDK PR #3054 - MCP config fix +# https://github.com/OpenHands/software-agent-sdk/pull/3054 +# +# This installs from the fix/mcp-config-format-passthrough branch +# to test the MCP config changes before PyPI release. # # Note: Repository cloning is handled by the SDK's # OpenHandsCloudWorkspace.clone_repos() method inside main.py. set -e -SDK_VERSION="1.19.1" +SDK_BRANCH="fix/mcp-config-format-passthrough" +SDK_REPO="https://github.com/OpenHands/software-agent-sdk.git" + +echo "[setup] Installing OpenHands SDK from PR branch: $SDK_BRANCH" +echo "[setup] This is a TEST build for SDK PR #3054" -echo "[setup] Installing OpenHands SDK (version: $SDK_VERSION)" -# Package order doesn't matter - pip resolves all dependencies together +# Install all three packages from the PR branch pip install -q --no-cache-dir \ - "openhands-sdk==${SDK_VERSION}" \ - "openhands-tools==${SDK_VERSION}" \ - "openhands-workspace==${SDK_VERSION}" + "openhands-sdk @ git+${SDK_REPO}@${SDK_BRANCH}#subdirectory=openhands-sdk" \ + "openhands-tools @ git+${SDK_REPO}@${SDK_BRANCH}#subdirectory=openhands-tools" \ + "openhands-workspace @ git+${SDK_REPO}@${SDK_BRANCH}#subdirectory=openhands-workspace" -echo "[setup] Done" +echo "[setup] Done - SDK installed from branch: $SDK_BRANCH" diff --git a/automation/presets/prompt/setup.sh b/automation/presets/prompt/setup.sh index 26f497f..36c4f67 100644 --- a/automation/presets/prompt/setup.sh +++ b/automation/presets/prompt/setup.sh @@ -1,17 +1,26 @@ #!/bin/bash -# Install the OpenHands SDK from PyPI. +# Install the OpenHands SDK from PR branch for testing. +# +# TESTING: SDK PR #3054 - MCP config fix +# https://github.com/OpenHands/software-agent-sdk/pull/3054 +# +# This installs from the fix/mcp-config-format-passthrough branch +# to test the MCP config changes before PyPI release. # # Note: Repository cloning is handled by the SDK's # OpenHandsCloudWorkspace.clone_repos() method inside main.py. set -e -SDK_VERSION="1.19.1" +SDK_BRANCH="fix/mcp-config-format-passthrough" +SDK_REPO="https://github.com/OpenHands/software-agent-sdk.git" + +echo "[setup] Installing OpenHands SDK from PR branch: $SDK_BRANCH" +echo "[setup] This is a TEST build for SDK PR #3054" -echo "[setup] Installing OpenHands SDK (version: $SDK_VERSION)" -# Package order doesn't matter - pip resolves all dependencies together +# Install all three packages from the PR branch pip install -q --no-cache-dir \ - "openhands-sdk==${SDK_VERSION}" \ - "openhands-tools==${SDK_VERSION}" \ - "openhands-workspace==${SDK_VERSION}" + "openhands-sdk @ git+${SDK_REPO}@${SDK_BRANCH}#subdirectory=openhands-sdk" \ + "openhands-tools @ git+${SDK_REPO}@${SDK_BRANCH}#subdirectory=openhands-tools" \ + "openhands-workspace @ git+${SDK_REPO}@${SDK_BRANCH}#subdirectory=openhands-workspace" -echo "[setup] Done" +echo "[setup] Done - SDK installed from branch: $SDK_BRANCH"