# Clone the repository
git clone https://github.com/frouaix/MCPAppleScript.git
cd MCPAppleScript
# Install dependencies
pnpm install
# Build everything
pnpm buildpackages/mcp-server/— TypeScript MCP server (Node.js)src/adapters/— Per-app resource adapterssrc/templates/— AppleScript template builders (one per app)src/exec/— osascript executorsrc/http.ts— Streamable HTTP transport
docs/— Architecture and design documentation
# Unit tests only (fast, no macOS APIs needed)
pnpm test:unit
# Integration tests (requires macOS + TCC permissions)
pnpm test:integration
# All tests
pnpm test- Strict TypeScript (
strict: true) - Prettier for formatting
- ESLint for linting
- Use
node:testfor testing (no external test frameworks)
- Create a branch from
main - Make your changes
- Run
pnpm build && pnpm testto verify - Open a pull request
- Create
packages/mcp-server/src/adapters/{app}.tsimplementingResourceAdapter - Register in
adapters/index.tsandserver.ts - Create
packages/mcp-server/src/templates/{app}.tswithexport function build() - Add to the
buildersmap intemplates/index.ts - Add policy configuration for the target app
- Write unit tests and integration tests
- Update README.md with the new app
By contributing, you agree that your contributions will be licensed under the MIT License.