hammerspoon-mcp
Control macOS through Hammerspoon: windows, apps, and API search. Injection-safe by design.
Documentation & Preview
{ "mcpServers": { "mcp-hammerspoon-mcp-79d7b246778afe4c7428": { "command": "npx", "args": [ "-y", "--package", "@vukvukovich/hammerspoon-mcp@0.4.0", "hammerspoon-mcp" ], "env": { "HS_MCP_TOOLS": "${ENV_HS_MCP_TOOLS}", "HS_MCP_TRANSPORT": "${ENV_HS_MCP_TRANSPORT}", "HS_MCP_HS_PATH": "${ENV_HS_MCP_HS_PATH}", "HS_MCP_DOCS_PATH": "${ENV_HS_MCP_DOCS_PATH}", "HS_MCP_LOG_LEVEL": "${ENV_HS_MCP_LOG_LEVEL}" } } }, "setup": { "fields": [ { "id": "ENV_HS_MCP_TOOLS", "label": "HS_MCP_TOOLS", "description": "Which tools to expose. \"safe\" (default) exposes inspection, window management, and system tools only. \"all\" additionally exposes hs_eval, hs_applescript, and hs_ui_press, which run arbitrary Lua and AppleScript and press UI elements - anything the user can do.", "required": false, "secret": false, "default": "safe" }, { "id": "ENV_HS_MCP_TRANSPORT", "label": "HS_MCP_TRANSPORT", "description": "How Lua reaches Hammerspoon. \"socket\" (default) keeps one persistent Unix domain socket, self-installed on first call, with automatic fallback to spawning; \"spawn\" runs one hs process per call.", "required": false, "secret": false, "default": "socket" }, { "id": "ENV_HS_MCP_HS_PATH", "label": "HS_MCP_HS_PATH", "description": "Explicit path to the Hammerspoon hs command line tool. Only needed when Hammerspoon is installed somewhere unusual.", "required": false, "secret": false, "default": "" }, { "id": "ENV_HS_MCP_DOCS_PATH", "label": "HS_MCP_DOCS_PATH", "description": "Explicit path to Hammerspoon's bundled docs.json, used by hs_api_search.", "required": false, "secret": false, "default": "" }, { "id": "ENV_HS_MCP_LOG_LEVEL", "label": "HS_MCP_LOG_LEVEL", "description": "Log verbosity on stderr: debug, info (default), warn, or error.", "required": false, "secret": false, "default": "info" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.vukvukovich/hammerspoon-mcp", "registryVersion": "0.4.0", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.vukvukovich%2Fhammerspoon-mcp/versions/0.4.0", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "@vukvukovich/hammerspoon-mcp", "version": "0.4.0", "integrity": "sha512-hy+H0PPdtgHmClI0z+BNfn09ooFY1bNjV7RDIryXWk6MsLUbzJozO55lsJoEnIRaRZQhvBuOqX3YD9pdKSeWTw==", "registryNameMatched": "io.github.vukvukovich/hammerspoon-mcp", "checkedAt": "2026-11-04T17:40:25.498Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }