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

iflow_mcp_mcp_server_macos_defaults-0.1.2.tar.gz (10.4 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 iflow_mcp_mcp_server_macos_defaults-0.1.2.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_mcp_server_macos_defaults-0.1.2.tar.gz
Algorithm Hash digest
SHA256 71ff1f88ea83d8bd1b8756e057f54447d59d48fc4d1cdca4504a4ae2302524c2
MD5 2f6e1b86b398ee88c371bafb6058e823
BLAKE2b-256 4f2e21faec5184b7fc77d15d9c13adfa2b5feb617a4d62d7d7c3718028ce17c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iflow_mcp_mcp_server_macos_defaults-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8af2c5dd590ac23c33b177afc05203a518ae930517ad7799a47d5cbc4ce47aee
MD5 1a516784c29756b3ed5c3d38ae60305e
BLAKE2b-256 c87bb05a0a45f13f32d937980345a0529030d6328410aa1e093f43011e9511f4

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