Skip to content

Commit 8f695d0

Browse files
alexisraykhelAlexis Raykhel
andauthored
AGI-164-introduce-search-and-geocode-tool (#45)
* Introduce SearchAndGeocodeTool * Update SearchAndGeocodeTool not to use z.tuple * Remove ForwardGeocodeTool and PoiSearchTool; their functionality is combined in the new SearchAndGeocodeTool * Update version and notes about the change * Include SearchAndGeocodeTool blurb in Readme * Fix typo * Use snake case name to follow conventions --------- Co-authored-by: Alexis Raykhel <[email protected]>
1 parent 1a5def5 commit 8f695d0

File tree

10 files changed

+155
-1048
lines changed

10 files changed

+155
-1048
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.5.0
2+
3+
- Introduce new tool: SearchAndGeocodeTool
4+
- Remove former tools: ForwardGeocodeTool, PoiSearchTool; their
5+
capabilities are combined in the new tool
6+
17
## 0.4.1
28

39
- Minor changes to tool descriptions for clarity

README.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,6 @@ Generates static map images using the [Mapbox static image API](https://docs.map
107107
- Overlay options including polylines and polygons
108108
- Auto-fitting to specified coordinates
109109

110-
#### POI search tool
111-
112-
Finds specific points of interest or brand locations by name using the [Mapbox Search Box forward search API](https://docs.mapbox.com/api/search/search-box/#search-request). Features include:
113-
114-
- Search for specific points of interest by proper name or unique brand (e.g., "Amalie Arena", "Starbucks")
115-
- Find all nearby branches of a brand (e.g., "Macy's stores near me")
116-
- Geographic proximity biasing for more relevant results
117-
- Support for multiple languages and countries
118-
119110
#### Category search tool
120111

121112
Performs a category search using the [Mapbox Search Box category search API](https://docs.mapbox.com/api/search/search-box/#category-search). Features include:
@@ -126,16 +117,6 @@ Performs a category search using the [Mapbox Search Box category search API](htt
126117
- Rich metadata for each result
127118
- Support for multiple languages
128119

129-
#### Forward geocoding tool
130-
131-
Performs forward geocoding using the [Mapbox geocoding V6 API](https://docs.mapbox.com/api/search/geocoding/#forward-geocoding-with-search-text-input). Features include:
132-
133-
- Convert addresses or place names to geographic coordinates
134-
- Fuzzy matching for partial or misspelled inputs
135-
- Results filtering by country, region, or bounding box
136-
- Customizable result limits
137-
- Multiple language support
138-
139120
#### Reverse geocoding tool
140121

141122
Performs reverse geocoding using the [Mapbox geocoding V6 API](https://docs.mapbox.com/api/search/geocoding/#reverse-geocoding). Features include:
@@ -175,6 +156,11 @@ Computes areas that are reachable within a specified amount of times from a loca
175156
- Optional departure or arrival time specification
176157
- Color customization for visualization
177158

159+
#### Search and geocode tool
160+
161+
Uses the [Mapbox Search Box Text Search API](https://docs.mapbox.com/api/search/search-box/#search-request) endpoint to power searching for and geocoding POIs, addresses, places, and any other types supported by that API.
162+
This tool consolidates the functionality that was previously provided by the ForwardGeocodeTool and PoiSearchTool (from earlier versions of this MCP server) into a single tool.
163+
178164
# Development
179165

180166
## Inspecting server

TOOL_CONFIGURATION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ The following tools are available in the Mapbox MCP Server:
2828
- `category_search_tool` - Search for POIs by category
2929
- `directions_tool` - Get directions between locations
3030
- `forward_geocode_tool` - Convert addresses to coordinates
31+
- `search_and_geocode_tool` - Search for POIs, brands, chains, geocode cities, towns, addresses
3132
- `isochrone_tool` - Calculate reachable areas from a point
3233
- `matrix_tool` - Calculate travel times between multiple points
3334
- `poi_search_tool` - Search for points of interest

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"dxt_version": "0.1",
33
"name": "@mapbox/mcp-server",
44
"display_name": "Mapbox MCP Server",
5-
"version": "0.4.1",
5+
"version": "0.5.0",
66
"description": "Mapbox MCP server.",
77
"author": {
88
"name": "Mapbox, Inc."

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mapbox/mcp-server",
3-
"version": "0.4.1",
3+
"version": "0.5.0",
44
"description": "Mapbox MCP server.",
55
"main": "./dist/commonjs/index.js",
66
"module": "./dist/esm/index.js",

src/tools/forward-geocode-tool/ForwardGeocodeTool.ts

Lines changed: 0 additions & 264 deletions
This file was deleted.

0 commit comments

Comments
 (0)