whistle-mcp

by 7gugu
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides global installation via npm package manager, allowing users to easily set up the Whistle MCP Server tool through the npm ecosystem.

  • Supports integration with Raycast through MCP plugin installation, enabling users to control Whistle proxy servers via Raycast interface for network debugging and proxy configuration.

Whistle MCP Server

English | 中文

Project Introduction

Whistle MCP Server is a Whistle proxy management tool based on the Model Context Protocol (MCP), allowing AI assistants to directly operate and control local Whistle proxy servers. Through this tool, AI can help users manage rules, groups, values, monitor network requests, replay and modify requests, etc., without requiring manual operation of the Whistle interface. It greatly simplifies the process of network debugging, API testing, and proxy rule management, enabling users to complete complex network proxy configuration tasks through natural language interaction with AI.

Features

  • Rule Management: Create, update, rename, delete, and enable/disable Whistle rules
  • Group Management: Create, rename, delete groups, and associate operations between rules and groups
  • Value Management: Create, update, rename, and delete values, with support for value group management
  • Proxy Control: Enable/disable proxy, HTTP/HTTPS interception, HTTP/2 protocol, etc.
  • Request Interception: View intercepted network request information, with URL filtering support
  • Request Replay: Support for replaying captured requests with custom request parameters
  • Multi-Rule Mode: Support for enabling/disabling multi-rule mode

Installation

Installing via Smithery

To install Whistle MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @7gugu/whistle-mcp --client claude

Manual Installation

You can install Whistle MCP Server globally via npm:

npm install -g whistle-mcp-tool

MCP Configuration

After installation, you can configure Whistle MCP in your MCP JSON configuration file:

{ "mcpServers": { "whistle-mcp": { "command": "whistle-mcp", "args": [ "--host=<whistle server IP address>", "--port=<whistle server port number>" ] } } }

Configuration Details

  • host: Whistle server IP address, defaults to localhost if not configured
  • port: Whistle server port number, defaults to 8899 if not configured

Configuring MCP JSON in AI Clients

MCP Tools Description

Whistle MCP Server provides the following tools, which can be called via the MCP protocol:

Rule Management

Tool NameDescriptionFunction
getRulesGet all rulesList all created rules and their content
createRuleCreate new ruleCreate a new rule with the specified name
updateRuleUpdate rule contentModify the content of a specified rule
renameRuleRename ruleRename a rule to a new name
deleteRuleDelete ruleDelete a rule with the specified name
selectRuleEnable ruleEnable a rule with the specified name
unselectRuleDisable ruleDisable a rule with the specified name
disableAllRulesDisable all rulesDisable all created rules at once

Group Management

Tool NameDescriptionFunction
createGroupCreate groupCreate a new rule group with the specified name
renameGroupRename groupRename a rule group to a new name
deleteGroupDelete groupDelete a rule group with the specified name
moveRuleToGroupMove rule to groupMove a specified rule to a specific group
moveRuleOutOfGroupMove rule out of groupMove a rule out of its group to the top level

Value Management

Tool NameDescriptionFunction
getAllValuesGet all valuesList all created values and value groups
createValueCreate new valueCreate a new value with the specified name
updateValueUpdate value contentModify the content of a specified value
renameValueRename valueRename a value to a new name
deleteValueDelete valueDelete a value with the specified name
createValueGroupCreate value groupCreate a new value group with the specified name
renameValueGroupRename value groupRename a value group to a new name
deleteValueGroupDelete value groupDelete a value group with the specified name
moveValueToGroupMove value to groupMove a specified value to a specific group
moveValueOutOfGroupMove value out of groupMove a value out of its group to the top level

Proxy Control

Tool NameDescriptionFunction
getStatusGet server statusGet the current status information of the Whistle server
toggleProxyEnable/disable proxyToggle the enabled state of the Whistle proxy
toggleHttpsInterceptionEnable/disable HTTPS interceptionToggle the enabled state of HTTPS request interception
toggleHttp2Enable/disable HTTP2Toggle the enabled state of HTTP/2 protocol support
toggleMultiRuleModeEnable/disable multi-rule modeToggle whether to allow multiple rules to be enabled simultaneously

Request Management

Tool NameDescriptionFunction
getInterceptInfoGet interception informationGet network request information intercepted by Whistle, with filtering support
replayRequestReplay requestResend a specified network request with customizable parameters

Contact Information

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Whistle MCP Server is a Whistle proxy management tool based on the Model Context Protocol (MCP) protocol, which enables AI assistants to directly operate and control local Whistle proxy servers. Through this tool, AI can help users manage rules, groups, values, monitor network requests, and replay a

  1. Project Introduction
    1. Features
      1. Installation
        1. Installing via Smithery
        2. Manual Installation
      2. MCP Configuration
        1. Configuration Details
      3. Configuring MCP JSON in AI Clients
        1. MCP Tools Description
          1. Rule Management
          2. Group Management
          3. Value Management
          4. Proxy Control
          5. Request Management
        2. Contact Information
          ID: xtjvndsy4c