@seleniumbox/sbox-mcp 1.0.0 → 2.0.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/README.md CHANGED
@@ -68,7 +68,7 @@ After you log in via **sbox_open_login**, the session token is stored in memory
68
68
  ## SBOX_API usage
69
69
 
70
70
  - All MCP tools that call the hub use `SBOX_API` (or `SBOX_API_BASE_URL`) to build URLs, e.g. `{SBOX_API}/e34/api/...`.
71
- - The login URL shown to you is `{SBOX_API}/ui/login?mcp_poll_id=...`. Use the same base URL in your browser as the hub (e.g. `http://localhost:4444` for a local hub).
71
+ - The login URL shown to you is `{SBOX_API}/ui/login?poll_id=...`. Use the same base URL in your browser as the hub (e.g. `http://localhost:4444` for a local hub).
72
72
 
73
73
  ## Hub requirements
74
74
 
@@ -22,7 +22,7 @@ async function initiate(_req, res) {
22
22
  return;
23
23
  }
24
24
  const pollId = (0, crypto_1.randomUUID)();
25
- const authUrl = (0, config_1.getPublicLoginPageUrl)() + "?mcp_poll_id=" + encodeURIComponent(pollId);
25
+ const authUrl = (0, config_1.getPublicLoginPageUrl)() + "?poll_id=" + encodeURIComponent(pollId);
26
26
  (0, device_flow_store_1.registerPollSession)(pollId, EXPIRES_IN_SEC);
27
27
  res.status(200).json({
28
28
  auth_url: authUrl,
@@ -45,7 +45,7 @@ function registerAuthTools(server) {
45
45
  return (0, helpers_1.errorContent)("MCP add-on is not configured or not enabled on this SBOX hub. Please enable the MCP add-on to log in via the browser.");
46
46
  }
47
47
  const pollId = (0, crypto_1.randomUUID)();
48
- const authUrl = (0, config_1.getPublicLoginPageUrl)() + "?mcp_poll_id=" + encodeURIComponent(pollId);
48
+ const authUrl = (0, config_1.getPublicLoginPageUrl)() + "?poll_id=" + encodeURIComponent(pollId);
49
49
  (0, device_flow_store_1.registerPollSession)(pollId, DEVICE_FLOW_EXPIRES_IN_SEC);
50
50
  const opened = await (0, open_browser_1.openUrlInBrowser)(authUrl);
51
51
  if (!opened) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seleniumbox/sbox-mcp",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "SBOX MCP – Model Context Protocol server for Selenium Box.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {