cli-mcp
它能做什么
这项技能展示如何通过命令行管理 MCP 服务器。适合想查看有哪些工具可用、测试工具调用并控制服务器的开发者。
适用场景
- ✓当用户想检查 MCP 服务器是否正在运行的时候。
- ✓当用户想查看有哪些 MCP 工具和权限范围可用的时候。
- ✓当用户想运行工具调用或重启 MCP 服务器的时候。
技能链接
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-mcp/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“MCP 服务器在运行吗?它提供了哪些工具?”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能列出查看状态、重启、启用或禁用服务器、列出每个工具的权限范围,以及用 JSON 参数调用指定工具(可选择流式返回)的命令。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Overview
Inspect the MCP server status, list registered tools and scopes, run tool invocations, and manage MCP audit logs from the CLI.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
mcp
Example:
omniroute mcp
mcp status
Show MCP server status
Flags:
--json
Example:
omniroute mcp status
mcp restart
Restart the MCP server
Example:
omniroute mcp restart
mcp enable
Flags:
--transport <transport>
Example:
omniroute mcp enable
mcp disable
Example:
omniroute mcp disable
mcp call <tool> [argsJson]
Flags:
--args <json>--args-file <path>--stream--scope <s>
Example:
omniroute mcp call <tool> [argsJson]
mcp scopes
Flags:
--tool <name>
Example:
omniroute mcp scopes
常见问题
在应用中使用工具之前,我能先测试吗?
可以。call 命令可以用 JSON 参数运行指定的工具。
scopes 命令显示什么?
它列出每个 MCP 工具的权限范围,方便你了解每个工具被允许做什么。
它涵盖审计日志吗?
涵盖。这项技能包括通过命令行管理 MCP 审计日志。
详情
作者的原始描述
Inspect the MCP server status, list registered tools and scopes, run tool invocations, and manage MCP audit logs from the CLI.
热度
- GitHub 星标
- 84k
- 排名
- #1406
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …