Overview
The project currently has no automated tests. Adding a test suite will improve reliability and make it safer to accept contributions.
Proposed Work
- Set up a test framework (e.g., Vitest or Jest) and configure it in
package.json
- Write unit tests for each MCP tool handler:
search_nearby — mock the Google Maps client, assert correct parameter mapping and response shaping
get_place_details — mock the Places API call, assert field extraction
- Write an integration smoke test that starts the MCP server process and verifies it responds to a
tools/list request
- Add a
test script to package.json and run tests in CI
Acceptance Criteria
npm test passes with no manual setup beyond npm install
- Coverage report available via
npm run test:coverage
- Server startup smoke test included
Overview
The project currently has no automated tests. Adding a test suite will improve reliability and make it safer to accept contributions.
Proposed Work
package.jsonsearch_nearby— mock the Google Maps client, assert correct parameter mapping and response shapingget_place_details— mock the Places API call, assert field extractiontools/listrequesttestscript topackage.jsonand run tests in CIAcceptance Criteria
npm testpasses with no manual setup beyondnpm installnpm run test:coverage