mcpbrowser 0.3.7 → 0.3.8
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# MCPBrowser (MCP Browser)
|
|
2
2
|
|
|
3
3
|
[](https://marketplace.visualstudio.com/items?itemName=cherchyk.mcpbrowser)
|
|
4
4
|
[](https://www.npmjs.com/package/mcpbrowser)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcpbrowser",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"mcpName": "io.github.cherchyk/mcpbrowser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "MCP browser server - fetch web pages using real Chrome/Edge browser. Handles authentication, SSO, CAPTCHAs, and anti-bot protection. Browser automation for AI assistants.",
|
|
@@ -86,7 +86,7 @@ export class ClickElementSuccessResponse extends MCPResponse {
|
|
|
86
86
|
*/
|
|
87
87
|
export const CLICK_ELEMENT_TOOL = {
|
|
88
88
|
name: "click_element",
|
|
89
|
-
title: "
|
|
89
|
+
title: "Click Element",
|
|
90
90
|
description: "**BROWSER INTERACTION** - Clicks elements on browser-loaded pages. Use this for navigation (clicking links/buttons), form submission, and any user interaction that requires clicking.\n\nWorks with any clickable element including buttons, links, or elements with onclick handlers. Can target by CSS selector or text content. Waits for page stability and returns updated HTML by default.\n\n**PREREQUISITE**: Page MUST be loaded with fetch_webpage first. This tool operates on an already-loaded page in the browser.",
|
|
91
91
|
inputSchema: {
|
|
92
92
|
type: "object",
|
package/src/actions/close-tab.js
CHANGED
|
@@ -57,7 +57,7 @@ export class CloseTabSuccessResponse extends MCPResponse {
|
|
|
57
57
|
*/
|
|
58
58
|
export const CLOSE_TAB_TOOL = {
|
|
59
59
|
name: "close_tab",
|
|
60
|
-
title: "
|
|
60
|
+
title: "Close Tab",
|
|
61
61
|
description: "**BROWSER MANAGEMENT** - Closes the browser tab for the given URL's hostname. This removes the page from the tab pool and forces a fresh session on the next visit to that hostname. Useful for memory management or when you need to clear session state. Note: Uses exact hostname match (www.example.com and example.com are treated as different tabs).",
|
|
62
62
|
inputSchema: {
|
|
63
63
|
type: "object",
|
|
@@ -60,7 +60,7 @@ export class FetchPageSuccessResponse extends MCPResponse {
|
|
|
60
60
|
*/
|
|
61
61
|
export const FETCH_WEBPAGE_TOOL = {
|
|
62
62
|
name: "fetch_webpage",
|
|
63
|
-
title: "
|
|
63
|
+
title: "Fetch Web Page",
|
|
64
64
|
description: "Fetches web pages using Chrome/Edge browser with full JavaScript rendering and authentication support. **REQUIRED for corporate/enterprise sites, any page requiring login/SSO, anti-bot/CAPTCHA pages, and JavaScript-heavy applications.** Use this as the DEFAULT for all webpage fetching - it handles simple HTML pages too. Opens browser for user authentication when needed. Never use generic HTTP fetch for pages that might require authentication.",
|
|
65
65
|
inputSchema: {
|
|
66
66
|
type: "object",
|
|
@@ -58,7 +58,7 @@ export class GetCurrentHtmlSuccessResponse extends MCPResponse {
|
|
|
58
58
|
*/
|
|
59
59
|
export const GET_CURRENT_HTML_TOOL = {
|
|
60
60
|
name: "get_current_html",
|
|
61
|
-
title: "
|
|
61
|
+
title: "Get Current HTML",
|
|
62
62
|
description: "**BROWSER STATE EXTRACTION** - Retrieves current HTML from an already-loaded page WITHOUT navigating/reloading. Use this to check page state after interactions (click, type) or to re-examine the current page. Much faster than fetch_webpage since it only extracts HTML from the current page state.\n\n**PREREQUISITE**: Page MUST be loaded with fetch_webpage first. This tool reads from an already-loaded page in the browser.",
|
|
63
63
|
inputSchema: {
|
|
64
64
|
type: "object",
|
package/src/actions/type-text.js
CHANGED
|
@@ -64,7 +64,7 @@ export class TypeTextSuccessResponse extends MCPResponse {
|
|
|
64
64
|
*/
|
|
65
65
|
export const TYPE_TEXT_TOOL = {
|
|
66
66
|
name: "type_text",
|
|
67
|
-
title: "
|
|
67
|
+
title: "Type Text",
|
|
68
68
|
description: "**BROWSER INTERACTION** - Types text into input fields on browser-loaded pages. Use this for filling forms, entering search queries, or any text input on the page.\n\nWorks with input fields, textareas, and other editable elements.\n\n**PREREQUISITE**: Page MUST be loaded with fetch_webpage first. This tool operates on an already-loaded page in the browser.",
|
|
69
69
|
inputSchema: {
|
|
70
70
|
type: "object",
|
package/src/mcp-browser.js
CHANGED
|
@@ -41,7 +41,7 @@ async function main() {
|
|
|
41
41
|
const __dirname = dirname(__filename);
|
|
42
42
|
const packageJson = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf-8'));
|
|
43
43
|
|
|
44
|
-
const server = new Server({ name: "
|
|
44
|
+
const server = new Server({ name: "MCP Browser", version: packageJson.version }, { capabilities: { tools: {} } });
|
|
45
45
|
|
|
46
46
|
// Assemble tools from action imports
|
|
47
47
|
const tools = [
|