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

mseep_mcp_server_macos_defaults-0.1.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for mseep_mcp_server_macos_defaults-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ee97672bbc2fa29e2411ef8f74bd676bd54d634a12256e3d28792842eb3a89a1
MD5 70b5e970ae579fa26acd2629e6d83c37
BLAKE2b-256 5992a0228bfc5c182ce5d4d2faad59e8be073ac782e30584bcd3b7a53e62d643

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mseep_mcp_server_macos_defaults-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 15a0bf95d56a0cf13ab87de14fc9722872f113f451b4ab31d394404756018089
MD5 90034f278c5b77229febc5a5b2cea96d
BLAKE2b-256 95c792ec474478617603927cfb0236012f95fd064249926d8cae15e89c21cb0b

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