Contributing
Development Setup
Section titled “Development Setup”-
Fork and clone the repository:
Terminal window git clone https://github.com/YOUR_USERNAME/android-pilot-mcp.gitcd android-pilot-mcp -
Install dependencies:
Terminal window npm install -
Build the project:
Terminal window npm run build -
Run tests:
Terminal window npm test
Project Scripts
Section titled “Project Scripts”| Script | Purpose |
|---|---|
npm run build | Compile TypeScript and copy templates |
npm run dev | Watch mode for development |
npm test | Run tests with Vitest |
npm run lint | Run ESLint |
npm run format | Format code with Prettier |
npm run typecheck | Type check without emitting |
npm run check | Run typecheck + lint + format check |
Adding a New Tool
Section titled “Adding a New Tool”-
Define the tool in the appropriate file under
src/tools/. Follow existing patterns for parameter schemas using Zod. -
Register the tool in
src/index.tsby adding it to the tool list. -
Add tests in the
tests/directory. All tools should have unit tests. -
Update documentation — add a new MDX page in
docs/src/content/docs/tools/. -
Run the full check suite:
Terminal window npm run check && npm test
Coding Standards
Section titled “Coding Standards”- TypeScript strict mode
- ESLint + Prettier for formatting
- All exports must have JSDoc comments
- Use Zod for input validation
- Prefer
async/awaitover callbacks