Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Add explicit mcp dependencies

f-trycuac2f01fcdaff2
diff --git a/.github/workflows/publish-mcp-server.yml b/.github/workflows/publish-mcp-server.yml
index 05e5145691..7d255019d2 100644
--- a/.github/workflows/publish-mcp-server.yml
+++ b/.github/workflows/publish-mcp-server.yml
@@ -122,12 +122,20 @@ jobs:
# Update dependencies in pyproject.toml
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS version of sed needs an empty string for -i
- # Update cua-agent with all extras
- sed -i '' "s/\"cua-agent\[all\]>=.*,<.*\"/\"cua-agent[all]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
+ # Update each cua-agent extra dependency
+ sed -i '' "s/\"cua-agent\[openai\]>=.*,<.*\"/\"cua-agent[openai]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
+ sed -i '' "s/\"cua-agent\[anthropic\]>=.*,<.*\"/\"cua-agent[anthropic]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
+ sed -i '' "s/\"cua-agent\[omni\]>=.*,<.*\"/\"cua-agent[omni]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
+ sed -i '' "s/\"cua-agent\[som\]>=.*,<.*\"/\"cua-agent[som]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
+ sed -i '' "s/\"cua-agent\[ui\]>=.*,<.*\"/\"cua-agent[ui]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
sed -i '' "s/\"cua-computer>=.*,<.*\"/\"cua-computer>=$LATEST_COMPUTER,<$NEXT_COMPUTER_MAJOR.0.0\"/" pyproject.toml
else
# Linux version
- sed -i "s/\"cua-agent\[all\]>=.*,<.*\"/\"cua-agent[all]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
+ sed -i "s/\"cua-agent\[openai\]>=.*,<.*\"/\"cua-agent[openai]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
+ sed -i "s/\"cua-agent\[anthropic\]>=.*,<.*\"/\"cua-agent[anthropic]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
+ sed -i "s/\"cua-agent\[omni\]>=.*,<.*\"/\"cua-agent[omni]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
+ sed -i "s/\"cua-agent\[som\]>=.*,<.*\"/\"cua-agent[som]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
+ sed -i "s/\"cua-agent\[ui\]>=.*,<.*\"/\"cua-agent[ui]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml
sed -i "s/\"cua-computer>=.*,<.*\"/\"cua-computer>=$LATEST_COMPUTER,<$NEXT_COMPUTER_MAJOR.0.0\"/" pyproject.toml
fi