feat: MCP Streamable HTTP server with full CLI command parity#12
Open
dkisser wants to merge 39 commits into
Open
feat: MCP Streamable HTTP server with full CLI command parity#12dkisser wants to merge 39 commits into
dkisser wants to merge 39 commits into
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
Add tab_list MCP tool to list all tabs in the selected browser. Co-Authored-By: Claude <noreply@anthropic.com>
Add MCP tool to navigate back in browser history. Co-Authored-By: Claude <noreply@anthropic.com>
Add MCP tool to navigate forward in browser history. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Add MCP tool to refresh the current page. Co-Authored-By: Claude <noreply@anthropic.com>
Add tab_new MCP tool to open a new tab in the selected browser. Co-Authored-By: Claude <noreply@anthropic.com>
Add MCP tool to hover over an element by CSS selector.
Add MCP tool to scroll the page or an element.
Add tab_close MCP tool to close a tab by ID in the selected browser. Co-Authored-By: Claude <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.
Summary
Adds a Model Context Protocol (MCP) server using Streamable HTTP to Browser Bridge, letting MCP-compatible agents (Claude Desktop, Cursor, etc.) control browsers through the same WebSocket protocol used by the CLI.
The MCP server runs inside the existing
apps/websocketBun process, binding to127.0.0.1:3003/mcpby default. All CLI browser-control commands are now exposed as MCP tools.What's included
MCP bootstrap (
apps/websocket/src/mcp/)httpStreamtransport@browser-bridge/websocket/clientMCP tools (21 total)
list_browsers,set_browsernavigate,go_back,go_forward,refreshtab_list,tab_new,tab_close,tab_switchclick,type,select,scroll,hoverget_text,get_html,screenshot,pageinfowait_element,wait_navigationDocumentation
docs/mcp-setup.mdwith config snippets for Claude Desktop and Cursordocs/superpowers/plans/Testing
bun run test— 116 tests passbun run type-check— cleanbunx @biomejs/biome check --write .— clean127.0.0.1:3003/mcp)Test plan / TODO
@modelcontextprotocol/sdkclientregisterXToolcallbacksNotes
127.0.0.1.BRIDGE_MCP_HOSTNAME).executecallback wrappers).🤖 Generated with Claude Code