7W

7gugu/whistle-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

45 stars 10 forks Качество 83 Тренд 14MIT

7gugu/whistle-mcp является кандидатом на сервер MCP, импортированным из https://github.com/7gugu/whistle-mcp.

Обзор

7gugu/whistle-mcp является кандидатом на сервер MCP, импортированным из https://github.com/7gugu/whistle-mcp.

Обзор (машинный перевод)

Английский | 中

##Введение проекта

Whistle MCP Server - это инструмент управления прокси-серверами Whistle, основанный на протоколе Model Context Protocol (MCP), позволяющий помощникам ИИ напрямую управлять локальными прокси-серверами Whistle. С помощью этого инструмента ИИ может помочь пользователям управлять правилами, группами, значениями, отслеживать сетевые запросы, воспроизводить и изменять запросы и т. д., не требуя ручной работы интерфейса Whistle. Это значительно упрощает процесс отладки сети, тестирования API и управления правилами прокси, позволяя пользователям выполнять сложные задачи конфигурации прокси сети посредством взаимодействия с ИИ на естественном языке.

Особенности

**Управление **: Создание, обновление, переименование, удаление и включение / отключение правил Whistle Управление группой: Создавать, переименовывать, удалять группы и ассоциировать операции между правилами и группами Управление качеством: Создавать, обновлять, переименовывать и удалять значения с поддержкой управления группами ценностей. Прокси-контроль: включение/отключение прокси, перехват HTTP/HTTPS, протокол HTTP/2 и т.д. Request Interception: просмотр перехваченной информации сетевого запроса с поддержкой фильтрации URL

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

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

Requirements

Node.js 18.20.0 or newer is required (see engines in package.json). Older versions are not supported.

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

Build from source

From the repository root:

npm install
npm run build

The build output entry is dist/index.js (the same file used by the whistle-mcp CLI after a global install). You can also point MCP config at it with node and the path to dist/index.js.

MCP Configuration

Transport (stdio vs HTTP)

By default the server uses stdio (suitable for local MCP clients such as Cursor).

To expose Streamable HTTP and SSE on the same process (for remote or HTTP-capable clients), use --transport http-stream. FastMCP then listens on --mcp-host / --mcp-port and serves:

  • Streamable HTTP: http://: (default path /mcp)
  • SSE: http://:/sse

Aliases for http-stream: sse, streamable-http (same mode; both URLs are available).

Flag / env Meaning
--transport / -t, FASTMCP_TRANSPORT stdio (default) or http-stream
--mcp-port, FASTMCP_PORT MCP HTTP port (default 8085 when using HTTP transport)
--mcp-host, FASTMCP_HOST Bind address (default 0.0.0.0)
Открыть полный README на GitHub

Установка

npx -y @smithery/cli install @7gugu/whistle-mcp --client claude
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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