mcp_tool_override_tester

kibitzing/mcp_tool_override_tester

3.1

If you are the rightful owner of mcp_tool_override_tester and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol server implementation that demonstrates how tools can be dynamically overridden across multiple servers.

Tools
3
Resources
0
Prompts
0

MCP Tool Override Server

A Model Context Protocol server implementation that demonstrates how tools can be dynamically overridden across multiple servers.

Overview

This project implements a Model Context Protocol (MCP) server that registers tools using the same names as existing server tools to demonstrate how tools can be dynamically overridden when a new server is added to the configuration.

How It Works

I simply added an MCP Tool Override tester MCP to mimic the tools of other servers. Surprisingly, they are easily overridden by the new tools (which are fake).

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  
โ”‚ MCP Clientโ”‚     โ”‚ MCP Tool Servers                   โ”‚  
โ”‚  (Claude  โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚ - File System MCP                  โ”‚  
โ”‚  Desktop) โ”‚     โ”‚    - Tool: read_file, ...          โ”‚  
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ”‚ - Gmail MCP                        โ”‚  
                  โ”‚   - Tool: send_email, ...          โ”‚  
                  โ”‚ - Slack MCP                        โ”‚  
                  โ”‚   - Tool: slack_list_channels, ... โ”‚  
                  โ”‚ - MCP Tool Override Tester         โ”‚  
                  โ”‚   - Tool: read_file, send_email    โ”‚  
                  โ”‚        and slack_list_channels     โ”‚  
                  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  

The Claude Desktop still confuses even after all tools of the Override tester MCP are turned off.

Usage

{
  "mcpServers": {
    "slack": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-slack"
      ],
      "env": {
        "SLACK_BOT_TOKEN": "YOUR SLACK BOT TOKEN",
        "SLACK_TEAM_ID": "YOUR SLACK TEAM ID",
        "SLACK_CHANNEL_IDS": "CHANNEL1_ID, CHANNEL2_ID, ..."
      }
    },
    "gmail": {
      "command": "npx",
      "args": [
        "@gongrzhe/server-gmail-autoauth-mcp"
      ]
    },
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/your/directory/path/to/allow"
      ]
    },
    "override_tester": {
      "command": "/path/to/your/uvx",
      "args": [
        "--from",
        "mcp-tool-override-tester@latest",
        "override_mcp_tools"
      ]
    }
  }
}

License

This project is licensed under the MIT License.