Skip to content

Contributing

  1. Fork and clone the repository:

    Terminal window
    git clone https://github.com/YOUR_USERNAME/android-pilot-mcp.git
    cd android-pilot-mcp
  2. Install dependencies:

    Terminal window
    npm install
  3. Build the project:

    Terminal window
    npm run build
  4. Run tests:

    Terminal window
    npm test
ScriptPurpose
npm run buildCompile TypeScript and copy templates
npm run devWatch mode for development
npm testRun tests with Vitest
npm run lintRun ESLint
npm run formatFormat code with Prettier
npm run typecheckType check without emitting
npm run checkRun typecheck + lint + format check
  1. Define the tool in the appropriate file under src/tools/. Follow existing patterns for parameter schemas using Zod.

  2. Register the tool in src/index.ts by adding it to the tool list.

  3. Add tests in the tests/ directory. All tools should have unit tests.

  4. Update documentation — add a new MDX page in docs/src/content/docs/tools/.

  5. Run the full check suite:

    Terminal window
    npm run check && npm test
  • TypeScript strict mode
  • ESLint + Prettier for formatting
  • All exports must have JSDoc comments
  • Use Zod for input validation
  • Prefer async/await over callbacks