monkeybot-browser-mcp 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,62 @@
1
+ # Internal (not shipped in OSS)
2
+ internal/
3
+
4
+ # Environment
5
+ .env
6
+ .env.*
7
+ !.env.example
8
+
9
+ # Local scaffolded harness config (defaults ship in monkeybot-cli scaffold_defaults/)
10
+ /monkeybot_config/
11
+
12
+ # Live eval run artifacts (only evals/baselines/ is versioned)
13
+ /evals/runs/
14
+
15
+ # Python
16
+ __pycache__/
17
+ *.py[cod]
18
+ *.pyo
19
+ *.pyd
20
+ .Python
21
+ *.egg-info/
22
+ dist/
23
+ build/
24
+ .eggs/
25
+ *.egg
26
+
27
+ # uv
28
+ .venv/
29
+ .uv/
30
+
31
+ # Data (SQLite DB + memory files — never commit)
32
+ data/
33
+
34
+ # Testing & coverage
35
+ .pytest_cache/
36
+ .coverage
37
+ htmlcov/
38
+ .mypy_cache/
39
+ .ruff_cache/
40
+ .deepeval/
41
+
42
+ # macOS
43
+ .DS_Store
44
+
45
+ # IDEs
46
+ .idea/
47
+ .vscode/
48
+ *.swp
49
+ *.swo
50
+
51
+ # Docker
52
+ docker/data/
53
+
54
+ # Planning Documents
55
+ .prt/
56
+ .monkeymode/
57
+
58
+ # Reference clones (read-only)
59
+ code/
60
+
61
+ # Local venv for evals dependency experiments
62
+ .evals-venv/
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: monkeybot-browser-mcp
3
+ Version: 0.2.0
4
+ Summary: monkeybot MCP server wrapping browser-harness for real-browser control and site playbooks.
5
+ Requires-Python: >=3.11
6
+ Requires-Dist: browser-harness>=0.1.3
7
+ Requires-Dist: mcp>=1.0.0
@@ -0,0 +1,22 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "monkeybot-browser-mcp"
7
+ version = "0.2.0"
8
+ description = "monkeybot MCP server wrapping browser-harness for real-browser control and site playbooks."
9
+ requires-python = ">=3.11"
10
+ dependencies = [
11
+ "mcp>=1.0.0",
12
+ "browser-harness>=0.1.3",
13
+ ]
14
+
15
+ [project.scripts]
16
+ browser-mcp = "browser_mcp.server:main"
17
+
18
+ [dependency-groups]
19
+ dev = ["pytest>=8.0.0"]
20
+
21
+ [tool.hatch.build.targets.wheel]
22
+ packages = ["src/browser_mcp"]
@@ -0,0 +1,3 @@
1
+ """Browser MCP — stdio MCP server wrapping browser-harness for monkeybot."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,32 @@
1
+ # Third-party notice
2
+
3
+ `dom_tree.js` in this directory is vendored from [alibaba/page-agent](https://github.com/alibaba/page-agent) (`packages/page-controller/src/dom/dom_tree/index.js`), which itself is ported from [browser-use/browser-use](https://github.com/browser-use/browser-use). Both are MIT licensed.
4
+
5
+ Modification: the ESM `export default (...) => {...}` was converted to a plain `window.__bmcpBuildDomTree = function (...) {...}` assignment so the script can run as a raw CDP-injected snippet (no bundler/module loader on the target page). No other logic was changed.
6
+
7
+ `pa_driver.js` is original glue code written for browser-mcp, following the same tree-flattening approach as page-agent's `packages/page-controller/src/dom/index.ts` and `actions.ts` (also MIT licensed) but reimplemented to act via CDP-driven coordinates from the Python side rather than in-page synthetic event dispatch.
8
+
9
+ ```
10
+ MIT License
11
+
12
+ Copyright (c) 2026 SimonLuvRamen
13
+ Copyright (c) 2026 Alibaba Group Holding Limited
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ of this software and associated documentation files (the "Software"), to deal
17
+ in the Software without restriction, including without limitation the rights
18
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ copies of the Software, and to permit persons to whom the Software is
20
+ furnished to do so, subject to the following conditions:
21
+
22
+ The above copyright notice and this permission notice shall be included in all
23
+ copies or substantial portions of the Software.
24
+
25
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ SOFTWARE.
32
+ ```