@browsa/mcp 0.7.0 → 0.8.0

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.
package/manifest.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "manifest_version": "0.2",
3
+ "name": "browsa",
4
+ "display_name": "Browsa",
5
+ "version": "0.8.0",
6
+ "description": "Cloud browsers for AI agents, and captcha solving for a browser of your own.",
7
+ "long_description": "Browsa gives a model a real cloud browser (Phantom): it reads the page as compact text, acts with real input, types saved secrets it never sees, hands over to a person when a check needs one, and replays what it did with no model calls. For agents that drive their own browser, the captcha tools find the captcha in a page's HTML locally and return a solution with the step to apply it in that browser.",
8
+ "author": {
9
+ "name": "Browsa",
10
+ "email": "support@browsa.io",
11
+ "url": "https://browsa.io"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/browsa-io/browsa"
16
+ },
17
+ "homepage": "https://browsa.io",
18
+ "documentation": "https://browsa.io/guides/mcp-server",
19
+ "support": "https://github.com/browsa-io/browsa/issues",
20
+ "license": "MIT",
21
+ "keywords": ["browser", "browser-automation", "ai-agents", "captcha", "cloud-browser"],
22
+ "server": {
23
+ "type": "node",
24
+ "entry_point": "dist/server.js",
25
+ "mcp_config": {
26
+ "command": "node",
27
+ "args": ["${__dirname}/dist/server.js"],
28
+ "env": {
29
+ "BROWSA_API_KEY": "${user_config.api_key}",
30
+ "BROWSA_MCP_TOOLS": "${user_config.tools}",
31
+ "BROWSA_CAPTCHA_MAX_CREDITS": "${user_config.captcha_max_credits}"
32
+ }
33
+ }
34
+ },
35
+ "tools": [
36
+ { "name": "open", "description": "Open a cloud browser and go to a URL." },
37
+ { "name": "observe", "description": "The page as compact text, one line per element." },
38
+ { "name": "act", "description": "One action with real input: click, type, press, scroll and more." },
39
+ { "name": "read", "description": "The full content of one container: text, a table or links." },
40
+ { "name": "screenshot", "description": "A JPEG of the viewport, the page or one element." },
41
+ { "name": "secrets", "description": "Names of saved secrets; values are never shown." },
42
+ { "name": "handoff", "description": "A single-use live link for a person to take over." },
43
+ { "name": "flow", "description": "Record steps once, replay them with no model." },
44
+ { "name": "close", "description": "Close the browser." },
45
+ { "name": "detect_captcha", "description": "Optional group captcha_page: find the captchas in a page's HTML, locally." },
46
+ { "name": "solve_captcha_on_page", "description": "Optional group captcha_page: solve a token captcha for a browser of your own." },
47
+ { "name": "captcha_allowance", "description": "Optional group captcha_page: local captcha limits and spend." }
48
+ ],
49
+ "prompts": [
50
+ { "name": "solve_captcha_on_my_page", "description": "Detect, solve, apply and verify the captcha on a page in your own browser.", "arguments": ["url"], "text": "Solve the captcha on ${arguments.url} with detect_captcha and solve_captcha_on_page, apply the answer in my browser and verify." },
51
+ { "name": "what_captcha_is_this", "description": "Which captcha a page has, and whether Browsa's captcha API takes it.", "arguments": ["url"], "text": "Tell me which captcha is on ${arguments.url} with detect_captcha. Solve nothing." },
52
+ { "name": "pass_check_in_browsa_browser", "description": "Open a page in a Browsa browser and get past its check.", "arguments": ["url"], "text": "Open ${arguments.url} in a Browsa browser; if a check appears, act solve_captcha, then handoff if it stays." }
53
+ ],
54
+ "user_config": {
55
+ "api_key": {
56
+ "type": "string",
57
+ "title": "Browsa API key",
58
+ "description": "From https://app.browsa.io/dashboard/keys. detect_captcha works without it.",
59
+ "sensitive": true,
60
+ "required": false
61
+ },
62
+ "tools": {
63
+ "type": "string",
64
+ "title": "Tool groups",
65
+ "description": "Optional. Groups to add to the nine browser tools, e.g. captcha_page or tasks,robots. captcha_page,-core lists only the captcha tools for your own browser.",
66
+ "required": false,
67
+ "default": ""
68
+ },
69
+ "captcha_max_credits": {
70
+ "type": "string",
71
+ "title": "Captcha spend cap (credits)",
72
+ "description": "Optional. The most credits one session may spend on captcha solves, e.g. 5.",
73
+ "required": false,
74
+ "default": ""
75
+ }
76
+ },
77
+ "compatibility": {
78
+ "platforms": ["darwin", "win32", "linux"],
79
+ "runtimes": { "node": ">=18.0.0" }
80
+ }
81
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@browsa/mcp",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "mcpName": "io.browsa/browsa",
5
- "description": "MCP server for Browsa: real cloud browsers (Phantom) for Claude, Cursor, VS Code and any MCP client: compact page views, real input, secrets by reference, hand-off and no-model replays",
5
+ "description": "MCP server for Browsa: real cloud browsers (Phantom) for Claude, Cursor, VS Code and any MCP client, and captcha solving for a browser of your own",
6
6
  "license": "MIT",
7
7
  "author": "Browsa <support@browsa.io>",
8
8
  "homepage": "https://browsa.io",
@@ -32,13 +32,18 @@
32
32
  "files": [
33
33
  "dist",
34
34
  "README.md",
35
- "LICENSE"
35
+ "SECURITY.md",
36
+ "LICENSE",
37
+ "manifest.json"
36
38
  ],
37
39
  "scripts": {
38
40
  "build": "tsup src/server.ts --format esm --target node18 --clean --shims",
39
- "test": "node --test test/*.test.mjs",
41
+ "test": "npm run build:test --silent && node --test test/*.test.mjs",
40
42
  "prepublishOnly": "npm run build && npm test",
41
- "start": "node dist/server.js"
43
+ "start": "node dist/server.js",
44
+ "build:test": "tsup src/captcha/detect.ts src/captcha/apply.ts src/captcha/guards.ts src/captcha/tools.ts src/retry.ts src/redact.ts src/prompts.ts --format esm --target node18 --out-dir test/dist --clean --silent",
45
+ "tokens": "node scripts/tool-tokens.mjs",
46
+ "bundle": "node scripts/build-mcpb.mjs"
42
47
  },
43
48
  "dependencies": {
44
49
  "@modelcontextprotocol/sdk": "^1.32.2",
@@ -46,6 +51,7 @@
46
51
  },
47
52
  "devDependencies": {
48
53
  "@types/node": "^20",
54
+ "linkedom": "^0.18.15",
49
55
  "tsup": "^8",
50
56
  "typescript": "^5"
51
57
  },