Skip to main content

MCP server for reading/writing macOS defaults (settings)

Project description

mcp-server-macos-defaults MCP server

MCP server for reading/writing macOS defaults (settings)

Components

Tools

  • list-domains:
    • equivalent to running defaults domains
  • find:
    • equivalent to running defaults find <word>
  • defaults-read:
    • equivalent to running defaults read <domain> <key>
    • if key is not provided, the entire domain is read
  • defaults-write:
    • equivalent to running defaults write <domain> <key> <value>

Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development/Unpublished Servers Configuration ``` "mcpServers": { "mcp-server-macos-defaults": { "command": "uv", "args": [ "--directory", "/path/to/mcp-server-macos-defaults", "run", "mcp-server-macos-defaults" ] } } ```
Published Servers Configuration ``` "mcpServers": { "mcp-server-macos-defaults": { "command": "uvx", "args": [ "mcp-server-macos-defaults" ] } } ```

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-server-macos-defaults run mcp-server-macos-defaults

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_macos_defaults-0.1.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_macos_defaults-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_macos_defaults-0.1.2.tar.gz.

File metadata

File hashes

Hashes for mcp_server_macos_defaults-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a43b0854fa52db4db9099dbac71bf4e7d90190fa7f807331bc972df5e3cb98ad
MD5 9e932ed600075f5e5e59ed4bfe8b4a92
BLAKE2b-256 f83d56e1edd13bd94b23e2c7596fd7f524fc582e8b07e38775f38af5bd6069a0

See more details on using hashes here.

File details

Details for the file mcp_server_macos_defaults-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_macos_defaults-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5cbcfd082e4306f5538af160ead02173d0b8e6240e9c9577ea7fbfb671c738e
MD5 1bc2840fe277bd345493217f5615e830
BLAKE2b-256 3a6f9cbb4f26bf8cfc03d8e5a17dbe85e53dbe85e369dd650c3abccbf9d7d498

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page