cosmotop
by bjia56·★ 67·综合分 46
多平台系统监控工具,通过MCP服务器模式提供系统指标访问。
概述
Cosmotop是基于Cosmopolitan Libc构建的btop++分支,设计为可在多平台上运行的单一可执行文件。它提供全面的系统监控功能,包括CPU、内存、磁盘、网络、GPU、NPU和容器指标。当使用--mcp标志启动时,它作为MCP服务器运行,通过模型上下文协议暴露系统信息工具,同时禁用图形界面。该实现使用STDIO传输,支持协议版本2024-11-05,适合与AI助手和自动化工作流集成。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当你需要通过 MCP 进行跨平台系统监控,并且重视可在 Linux、Windows、macOS 和 BSD 系统上运行的单一可执行文件分发模型时,选择 cosmotop。
什么时候不要选它
如果你需要超出其提供工具范围的深度专业监控指标,或者需要 MCP 服务器访问的身份验证(尚未实现),则避免使用 cosmotop。
此 server 暴露的工具
从 README 抽取出 9 个工具get_process_infoGet information about running processes
get_cpu_infoGet CPU information and usage statistics
get_memory_infoGet system memory information and usage statistics
get_network_infoGet network interface statistics and usage
get_disk_infoGet disk usage and I/O statistics
get_gpu_infoGet GPU information and usage statistics
get_npu_infoGet NPU information and usage statistics
get_container_infoGet container information and usage statistics
get_system_infoGet general system information
可对比工具
安装
安装
直接下载
从[GitHub releases](https://github.com/bjia56/cosmotop/releases/latest)下载预构建的二进制文件并直接运行。
Homebrew
brew tap bjia56/tap
brew install cosmotopDocker
docker run -it --rm --net=host --pid=host ghcr.io/bjia56/cosmotop:latestMCP服务器设置
与Claude Desktop一起使用时,添加到Claude Desktop配置:
{
"mcpServers": {
"cosmotop": {
"command": "cosmotop的路径",
"args": ["--mcp"]
}
}
}从源码构建
按照README中的说明使用CMake和Cosmopolitan Libc进行构建。
FAQ
- Cosmotop在MCP模式下暴露哪些工具?
- Cosmotop暴露多种工具:get_process_info、get_cpu_info、get_memory_info、get_network_info、get_disk_info、get_gpu_info、get_npu_info、get_container_info和get_system_info。GPU和NPU工具仅在检测到相应硬件时可用。
- Cosmotop支持哪些平台?
- Cosmotop支持Linux(x86_64、i386、aarch64等)、Windows 10+、MacOS 13+和各种BSD发行版。核心平台(Linux x86_64/aarch64、MacOS、Windows)是自包含的,而其他平台需要curl、wget或python3来获取插件组件。
cosmotop 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。