local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Enables reading and writing macOS defaults (system and application settings) through tools for listing domains, finding settings, and reading/writing configuration values.
mcp-server-macos-defaults MCP 服务器
用于读取/写入 macOS 默认设置 (设置) 的 MCP 服务器
成分
工具
list-domains
:- 相当于运行
defaults domains
- 相当于运行
find
:- 相当于运行
defaults find <word>
- 相当于运行
defaults-read
:- 相当于运行
defaults read <domain> <key>
- 如果没有提供
key
,则读取整个域
- 相当于运行
defaults-write
:- 相当于运行
defaults write <domain> <key> <value>
- 相当于运行
快速入门
安装
克劳德桌面
在 MacOS 上: ~/Library/Application\ Support/Claude/claude_desktop_config.json
在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
发展
构建和发布
准备分发包:
- 同步依赖项并更新锁文件:
Copy
- 构建软件包分发版:
Copy
这将在dist/
目录中创建源和轮子分布。
- 发布到 PyPI:
Copy
注意:您需要通过环境变量或命令标志设置 PyPI 凭据:
- 令牌:
--token
或UV_PUBLISH_TOKEN
- 或用户名/密码:
--username
/UV_PUBLISH_USERNAME
和--password
/UV_PUBLISH_PASSWORD
调试
由于 MCP 服务器通过 stdio 运行,调试起来可能比较困难。为了获得最佳调试体验,我们强烈建议使用MCP Inspector 。
您可以使用以下命令通过npm
启动 MCP Inspector:
Copy
启动后,检查器将显示一个 URL,您可以在浏览器中访问该 URL 以开始调试。