返回市场
macOS服务器

macOS服务器

作者:mcp-get64 星标更新:2024-12-05

项目介绍

@mcp-get-community/server-macos

一个提供macOS特定系统信息和操作的Model Context Protocol服务器。

功能

  • 系统信息检索(CPU、内存、磁盘、网络)
  • 原生macOS通知

安装

npx @michaellatman/mcp-get@latest install @mcp-get-community/server-macos

配置

在配置中添加以下内容:

{
  "mcpServers": {
    "@mcp-get-community/server-macos": {
      "runtime": "node",
      "command": "npx",
      "args": [
        "-y",
        "@mcp-get-community/server-macos"
      ]
    }
  }
}

工具

systemInfo

从macOS检索系统信息。

参数:

  • category(必需):'cpu'、'memory'、'disk'、'network' 或 'all' 中的一个

示例:

{
  "name": "systemInfo",
  "arguments": {
    "category": "cpu"
  }
}

sendNotification

发送原生macOS通知。

参数:

  • title(必需):通知的标题
  • message(必需):通知的内容
  • sound(可选):是否播放声音(默认:true)

示例:

{
  "name": "sendNotification",
  "arguments": {
    "title": "Hello",
    "message": "这是一条测试通知",
    "sound": true
  }
}

开发

  1. 安装依赖项:
npm install
  1. 构建项目:
npm run build
  1. 在开发模式下运行:
npm run dev

许可证

MIT </中文翻译>