mihomo_party
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MIHOMO_SECRET | No | Override the external-controller secret; otherwise it is read automatically from the frontend configuration. | |
| MIHOMO_PARTY_DIR | No | Override the auto-detected frontend data directory (e.g. mihomo-party, Clash Verge Rev, Clash Meta data dir). | |
| MIHOMO_CONTROLLER | No | Override the mihomo core REST API control address in host:port form (default 127.0.0.1:9090). |
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
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_profilesB | 列出当前代理组及每个组可选节点(运行配置)。 |
| get_active_configA | 读取当前运行配置摘要(前端、mode、控制器地址)。 |
| list_rulesA | 列出当前运行配置的全部 rules(按命中优先级顺序)。 |
| add_rulesA | 向 override 文件的 +rules: 段最前面插入规则(先于通用后缀规则生效),自动去重。rules 为 clash 规则字符串数组。override_file 可选,默认第一个可用 override。 |
| reload_configA | 让核心重载运行配置(mihomo-party 支持;clash-verge 请改用 switch_profile/UI)。 |
| switch_profileC | 切换当前活动订阅/profile(按名称)。 |
| select_proxyB | 切换某代理组当前选中节点(如切到直连/DIRECT)。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Most tools are distinct, but list_profiles actually lists proxy groups and their nodes, while switch_profile switches subscription profiles, so the word 'profile' has two different meanings. select_proxy is also closely related to the node information returned by list_profiles, which may cause some misselection.
All tool names use a consistent snake_case verb_noun pattern: list_profiles, get_active_config, list_rules, add_rules, reload_config, switch_profile, select_proxy. There are no mixed conventions or vague standalone verbs.
Seven tools is well-scoped for a Mihomo/Clash configuration management server. Each tool covers a distinct operational area: inspection, rule addition, reload, profile switching, and proxy selection.
Core workflows like listing rules, adding rules, reloading, switching profiles, and selecting proxies are covered, but rule management is incomplete: there is no delete_rules or update_rules operation. There is also no tool to list override files even though add_rules accepts an optional override_file parameter.