Settings
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:
search_tools— Search for tools by keyword. Returns summaries without full schemas.get_tool_schema— Get the full input schema for a specific tool by name.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:
Go to Settings.
Click the toggle switch next to "Code Mode".
The status badge shows Active (green) or Inactive (gray).
The change takes effect immediately for new MCP client connections.
Last updated