MCP allows you to give Firebender Agent your own tools to answer your queries (e.g. brave web search). You can configure MCP settings in your firebender.json file.

Using MCP in Firebender

Example: MCP Configuration

In $projectRoot/firebender.json:

{
  "mcpServers": {
    "brave-search": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-brave-search"
      ],
      "env": {
        "BRAVE_API_KEY": "YOUR_API_KEY"
      }
    },
    "weather": {
      "command": "npx",
      "args": [
        "-y",
        "@h1deya/mcp-server-weather"
      ]
    }
  }
}

MCP Panel

To access the MCP panel:

  1. Click the options button in the chat window
  2. Select “Plugin Settings”
Plugin Settings menu showing Firebender Settings options
  1. Under “Firebender Settings”, navigate to the “MCP” section
MCP panel showing configured servers and options

In the MCP panel, you can:

  • View all configured MCP servers
  • View MCP errors
  • Enable or disable specific tools
  • Enable or disable entire MCP servers

Troubleshooting Errors

Errors will show up directly in the MCP panel when there are issues with your MCP server configuration. You can also open the MCP log file using the “Open MCP Log” button for more detailed error information.

MCP panel showing an error message

Common Errors

Cannot run program npx (or other commands)

  • This error occurs when the specified command is not installed or not available in your system PATH
  • Make sure the required command is properly installed on your system
  • Verify the command works by testing it in your terminal first

Tips:

  • Before configuring an MCP server, test that the command works in your terminal first
Android Studio terminal showing command execution
  • Ensure all required dependencies for the MCP server are installed
  • Check that the command is accessible from your system PATH