This commit is contained in:
moosecrap committed 2026-11-22 22:58:15 -08:00
1 parent e6d3d9daa5
commit 585a746ae6
1 file changed
+5 -9
+5 -9
View File
@@ -55,10 +55,9 @@ mcp-firefox-extension/
### 1. Create a Python virtual environment ### 1. Create a Python virtual environment
Since your Python is system-managed, create a venv: Create a venv if needed:
```bash ```bash
cd /home/matt/code/mcp-firefox-extension
python3 -m venv bridge/venv python3 -m venv bridge/venv
source bridge/venv/bin/activate source bridge/venv/bin/activate
pip install -r bridge/requirements.txt pip install -r bridge/requirements.txt
@@ -67,7 +66,7 @@ pip install -r bridge/requirements.txt
### 2. Start the Bridge server ### 2. Start the Bridge server
```bash ```bash
cd /home/matt/code/mcp-firefox-extension/bridge cd bridge
source venv/bin/activate # if not already activated source venv/bin/activate # if not already activated
python main.py python main.py
``` ```
@@ -111,9 +110,10 @@ The session ID is provided in the first SSE event (`event: endpoint`).
| `take_screenshot()` | Captures a PNG screenshot of the viewport | | `take_screenshot()` | Captures a PNG screenshot of the viewport |
| `read_page_text()` | Returns reader-mode text content of the page | | `read_page_text()` | Returns reader-mode text content of the page |
| `list_tabs()` | Lists all open Firefox tabs | | `list_tabs()` | Lists all open Firefox tabs |
| `switch_tab(tab_id)` | Switches to a specific tab by ID | | `switch_tab(tab_id, window_id)` | Switches to a specific tab or window |
| `navigate_to(url)` | Navigates the active tab to a URL | | `navigate_to(url)` | Navigates the active tab to a URL |
| `open_new_tab(url)` | Opens a new tab | | `open_new_tab(url, window_id)` | Opens a new tab in a specific window |
| `open_new_window(url)` | Opens a new Firefox window |
| `get_current_url()` | Returns the current active tab's URL | | `get_current_url()` | Returns the current active tab's URL |
| `get_page_cookies()` | Returns cookies for the current domain | | `get_page_cookies()` | Returns cookies for the current domain |
@@ -141,7 +141,3 @@ All subsequent interaction tools reference elements by this `mcp-id`, so you nev
| "Content script not available in this tab" | Refresh the page or navigate to a different URL. Content scripts are injected on page load. | | "Content script not available in this tab" | Refresh the page or navigate to a different URL. Content scripts are injected on page load. |
| Extension won't load | Make sure you're using Firefox (not Chrome). Manifest V2 is used for better Firefox compatibility. | | Extension won't load | Make sure you're using Firefox (not Chrome). Manifest V2 is used for better Firefox compatibility. |
| `port 8008 already in use` | Change `config.PORT` in `bridge/config.py` to another free port. | | `port 8008 already in use` | Change `config.PORT` in `bridge/config.py` to another free port. |
## License
MIT — "vibe-coded" prototype, use at your own risk.