Skip to content

examples: Haystack agent on a cloud phone (MCPToolset) - #67

Merged
Musti7even merged 1 commit into
mainfrom
growth-2026-11-25
Nov 25, 2026
Merged

Musti7even merged 1 commit into
mainfrom
growth-2026-11-25

Conversation

@Musti7even

Copy link
Copy Markdown
Collaborator

Adds examples/integrations/haystack/agent.py: a Haystack Agent drives a Mobilebox phone through mcp-haystack's MCPToolset (Streamable HTTP, Bearer key). Same pattern as the other integrations: the script creates the phone over REST, the agent only gets observe, act, screenshot, install_app, and the phone is deleted in finally.

Notes from the run:

  • mcp-haystack 2.2.0 connects lazily; eager_connect=True makes the tool list available before Agent warms up.
  • Tested 25 Nov 2026 against prod with haystack-ai 3.5.0 + mcp-haystack 2.2.0. No OpenAI key on the test machine, so a scripted chat generator stood in for OpenAIChatGenerator; the Agent, ToolInvoker and MCP calls were real: create → open_app Settings → scroll_to + tap Display → brightness row on screen → delete, 9.0 s, no phone left running.

Also lists Haystack (and OpenHands) in the README examples table. This is the reference the Haystack integrations proposal will link (deepset-ai/haystack-integrations asked for a proposal issue first, #723).

🤖 Generated with Claude Code

Same pattern as the other integrations: your code creates the phone over
REST and deletes it in finally; the Agent gets observe/act/screenshot/
install_app through mcp-haystack's MCPToolset. Ran on 25 Nov against prod
with haystack-ai 3.5.0 and mcp-haystack 2.2.0 (scripted chat generator in
place of OpenAI): Settings > Display reached, brightness row read, phone
deleted, 9.0 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Musti7even
Musti7even merged commit 2cbb634 into main Nov 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant