Skip to content

feat: MCP stdio server for browser_* tools - #24

Draft
shehrii9 wants to merge 1 commit into
mainfrom
cursor/mcp-server-ec5e
Draft

shehrii9 wants to merge 1 commit into
mainfrom
cursor/mcp-server-ec5e

Conversation

@shehrii9

Copy link
Copy Markdown
Owner

Summary

Roadmap item #4 — BER as an MCP server: thin stdio wrapper over the existing daemon and ToolBridge.

  • npm run mcp / ber mcp — MCP server (stdio) exposing all AGENT_TOOLS (browser_attach, browser_execute, …)
  • Forwards tool calls to BER_URL (default http://127.0.0.1:8787); daemon must be running (npm run daemon)
  • Dependency: @modelcontextprotocol/sdk
  • Docs: examples/integrations/mcp.md (Cursor .cursor/mcp.json examples)

Usage

npm run daemon    # terminal 1
npm run mcp       # terminal 2 / MCP client spawns this

Testing

  • npm test (includes tests/mcp.test.ts schema + server smoke)
  • npm run typecheck
Open in Web Open in Cursor 

Add @modelcontextprotocol/sdk server that forwards AGENT_TOOLS to the
existing ToolBridge/daemon. Entrypoints: npm run mcp, ber mcp, dist/mcp/stdio.js.

Includes schema conversion tests and examples/integrations/mcp.md for Cursor.

Co-authored-by: Shaharyar Ahmad <shehrii9@users.noreply.github.com>
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.

2 participants