evaluateCursorBrowserMcpDispatch (tools/cursor-browser-mcp-dispatch-policy.ts)

agent-vibes · apps/protocol-bridge/src/protocol/cursor/tools/cursor-browser-mcp-dispatch-policy.ts · typescript · MIT
ai, tag:knn-classified

* Cursor IDE browser MCP admission policy. Cursor owns the browser process and enforces this same wire boundary: the navigation tool accepts web URLs, while local files belong to file-reading tools. The bridge evaluates that boundary before emitting an Exec request so parent and

// Source: https://github.com/funny-vibes/agent-vibes | License: MIT | Copyright 2025-2026 recronin
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Cursor IDE browser MCP admission policy.
 *
 * Cursor owns the browser process and enforces this same wire boundary: the
 * navigation tool accepts web URLs, while local files belong to file-reading
 * tools. The bridge evaluates that boundary before emitting an Exec request so
 * parent and frozen-child dispatches have identical behavior and a rejected
 * call becomes an ordinary model-visible tool error rather than a client-side
 * exception.
 */

export const CURSOR_IDE_BROWSER_MCP_SERVER_NAME = "cursor-ide-browser"

const CONTEXT_FREE_BROWSER_TOOLS = new Set([
  "browser_tabs",
  "browser_lock",
  "browser_profile_st

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key