gearsSettings

The Settings page (/settings) lets you configure MCP Bridge runtime behavior.

Code Mode

Code Mode is designed for large APIs with 100+ tools. When enabled:

  • Instead of exposing all individual tool definitions to MCP clients, MCP Bridge exposes 3 meta-tools:

    1. search_tools — Search for tools by keyword. Returns summaries without full schemas.

    2. get_tool_schema — Get the full input schema for a specific tool by name.

    3. execute_code — Run Rhai scripts to orchestrate tool calls in a secure sandbox (30-second timeout).

  • This reduces MCP context window usage by ~98% (from ~50K tokens to ~1K tokens for large APIs).

To toggle Code Mode:

  1. Go to Settings.

  2. Click the toggle switch next to "Code Mode".

  3. The status badge shows Active (green) or Inactive (gray).

The change takes effect immediately for new MCP client connections.

Last updated