Repository navigation
examples: Haystack agent on a cloud phone (MCPToolset) - #67
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
examples/integrations/haystack/agent.py: a HaystackAgentdrives a Mobilebox phone throughmcp-haystack'sMCPToolset(Streamable HTTP, Bearer key). Same pattern as the other integrations: the script creates the phone over REST, the agent only getsobserve,act,screenshot,install_app, and the phone is deleted infinally.Notes from the run:
mcp-haystack2.2.0 connects lazily;eager_connect=Truemakes the tool list available beforeAgentwarms up.OpenAIChatGenerator; the Agent, ToolInvoker and MCP calls were real: create →open_appSettings →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