Skip to content

Conversation

@ntindle
Copy link

@ntindle ntindle commented Aug 14, 2025

Summary

  • Added a new Desktop Extension example for controlling Microsoft Edge browser on macOS
  • Based on the existing Chrome AppleScript example, adapted for Edge
  • All 10 MCP tools fully tested and working

What's New

New example extension in examples/edge-applescript/ that provides MCP tools for Microsoft Edge automation through AppleScript.

Features

  • 🌐 Open URLs in new or current tabs
  • 📑 Tab Management: List, switch, close, and reload tabs
  • 🔄 Navigation: Browser history back/forward
  • 💻 JavaScript Execution: Run JS code with result capture
  • 📝 Content Retrieval: Get page text content
  • ℹ️ Tab Information: Get current tab details

Implementation Details

  • Platform: macOS only (uses AppleScript)
  • Based on: Chrome AppleScript example structure
  • Runtime: Node.js with MCP SDK
  • All functions tested: Including fixes for JavaScript execution and tab switching

Testing

All 10 tools have been thoroughly tested:
✅ get_current_tab
✅ list_tabs
✅ open_url
✅ reload_tab
✅ go_back / go_forward
✅ close_tab
✅ get_page_content
✅ switch_to_tab (fixed tab indexing issue)
✅ execute_javascript (fixed result capture)

Notes

  • Requires Microsoft Edge to be installed on macOS
  • User needs to enable "Allow JavaScript from Apple Events" in Edge Developer menu
  • Extension follows the same structure and patterns as other examples in the repository

🤖 Generated with Claude Code

ntindle and others added 2 commits August 14, 2025 15:00
Add a new Desktop Extension example that provides MCP tools for controlling
Microsoft Edge browser on macOS through AppleScript API.

Features:
- Open URLs in new or current tabs
- Get current tab information
- List all open tabs
- Close, switch, and reload tabs
- Navigate browser history (back/forward)
- Execute JavaScript in tabs with result capture
- Retrieve page text content

This extension demonstrates cross-browser MCP capabilities, extending the
existing Chrome example to support Microsoft Edge. All functions have been
tested and work correctly on macOS with Edge.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Update the examples documentation to include the new Microsoft Edge
AppleScript example in the table of available examples.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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