Skip to main content
Glama
wlor0623

mihomo-mcp

by wlor0623

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MIHOMO_HTTPNo设置后改走 HTTP 外部控制,如 http://127.0.0.1:9097(需在客户端里开启「外部控制」)
MIHOMO_PIPENomihomo 命名管道。Verge Rev 2.x 用这个默认值;其他发行版(裸 mihomo、Nyanpasu)改管道名即可\\.\pipe\verge-mihomo
MIHOMO_SECRETNoHTTP 外部控制的 secret,管道模式通常不需要

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_versionB

查看 mihomo 内核版本和当前连接通道(命名管道/HTTP)

list_proxiesA

列出所有代理组(含每组当前选中节点和全部候选节点名)与节点延迟概览

switch_proxyB

切换某个代理组的当前选中节点

delay_testA

测延迟:传 name 测单个节点,传 group 测整组并给出最快的几个

get_connectionsB

查看当前全部连接的流量统计与明细(按下载量排序),可传 closeId 关闭指定连接

get_configsA

查看内核运行配置:运行模式、TUN、混合端口、局域网共享等

set_modeB

切换内核运行模式: rule=规则分流 / global=全局代理 / direct=全部直连

set_tunB

开关 TUN 虚拟网卡模式。注意:Verge 重载订阅后可能恢复其界面里的设置

toggle_system_proxyA

开关 Windows 系统代理(改注册表并通知应用生效)。enable 不传则翻转当前状态

get_rulesC

查看内核规则表,支持关键词过滤

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 10 tools

Disambiguation4/5

Most tools target a distinct resource and action (e.g., get_connections vs get_rules vs get_configs), but delay_test and list_proxies both surface latency information, and the three toggle/set tools (set_mode, set_tun, toggle_system_proxy) touch related proxy settings. Descriptions help differentiate them, so confusion is minor.

Naming Consistency4/5

Predominantly consistent verb_noun snake_case pattern (get_connections, set_mode, list_proxies, switch_proxy). The only deviation is delay_test, which follows noun_verb order instead of test_delay or get_delay.

Tool Count5/5

10 tools is a well-scoped set for a mihomo core controller, covering status, configuration, proxy management, and connection details without redundancy. Each tool earns its place.

Completeness4/5

Core operational workflows are covered: viewing configs, mode/TUN/system proxy toggles, proxy listing/switching, latency testing, rules, connections, and version. Minor gaps exist, such as setters for other config fields revealed by get_configs (e.g., mixed port, LAN sharing) and no subscription reload or rule editing.

Maintenance

ActivityMaintained
ResponsivenessNo issues