feat: add batch geocode CLI + MCP tool, tests for new tools#50
Merged
Conversation
- New tool: maps_static_map returns PNG map as MCP image content - Supports markers, paths, 4 map types (roadmap/satellite/terrain/hybrid) - Auto-fit zoom when markers/path provided without explicit zoom - URL length validation (16,384 char limit) - All 9 files synced per Tool Change Checklist (14 → 15 tools) - Added Visualization category to SKILL.md Tool Map - Added chaining patterns: search→map, directions→map Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Batch Geocode: - New `batch-geocode` CLI subcommand: reads addresses from file, geocodes in parallel - Configurable concurrency (default 20, max 50) - Supports stdin input (`-i -`) and file output (`-o results.json`) MCP Prompt Templates: - 3 geo prompts: travel-planner, neighborhood-scout, route-optimizer - Registered via McpServer.registerPrompt() — auto-discovers prompts capability - Each prompt returns structured messages teaching AI how to chain geo tools - Available as `/` commands in Claude Desktop and compatible clients Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…s it Prompts primitive is only supported by Claude Desktop, not Cursor/VS Code/most clients. The existing SKILL.md Scenario Recipes already serve the same purpose. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Air quality: MCP tool call + exec mode (Tokyo AQI) - Static map: MCP tool call (image content type, PNG, base64) + exec mode - Batch geocode: CLI subcommand with temp file (2 addresses) - Total: 118 assertions (was ~100) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… one call
- New tool: maps_batch_geocode with addresses[] param (max 50)
- Parallel geocoding with per-address error handling
- Returns { total, succeeded, failed, results[] }
- Full test coverage: MCP tool call + exec mode + registration
- All 9 files synced per Tool Change Checklist (15 → 16 tools)
- 125 smoke test assertions, 0 failures
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5ad5681 to
5394031
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
batch-geocode -i addresses.txt -o results.json— geocode hundreds of addresses from file, configurable concurrency (default 20)maps_batch_geocode— geocode up to 50 addresses in one AI conversation callTest evidence
Test plan
npm run buildpassesnpx tsx tests/smoke.test.ts— 125 passed, 0 failedbatch-geocode -i fileworks from CLImaps_batch_geocodetool returns results via MCP🤖 Generated with Claude Code