Skip to content

Commit d13fdf6

Browse files
chore: merge main into otel-2x branch, resolve conflicts
- Merge CHANGELOG entries from main (tshy/vitest/typescript upgrades) - Regenerate package-lock.json with --legacy-peer-deps to resolve OTel 2.x peer dependency constraints Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2 parents d5a183b + b669f64 commit d13fdf6

24 files changed

Lines changed: 3340 additions & 4280 deletions

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
## Unreleased
22

3+
### Removed
4+
5+
- **`get_latest_mapbox_docs_tool` and `get_reference_tool` removed** — documentation fetching has moved to [mcp-docs-server](https://github.com/mapbox/mcp-docs-server). Use mcp-docs-server alongside this server for Mapbox documentation access. Static reference data (style layers, Streets v8 fields, token scopes, layer type mapping) remains available as MCP Resources.
6+
- Removed `CLIENT_NEEDS_RESOURCE_FALLBACK` environment variable and resource fallback tool pattern
7+
38
### Dependencies
49

510
- **Upgrade OpenTelemetry to 2.x** — upgraded `@opentelemetry/resources` and `@opentelemetry/sdk-trace-base` from `^1.30.1` to `^2.6.1`; upgraded experimental packages (`sdk-node`, `instrumentation`, `exporter-trace-otlp-http`) from `^0.56.0` to `^0.214.0`; upgraded `auto-instrumentations-node` to `^0.72.0` and `semantic-conventions` to `^1.40.0`; migrated `new Resource()` to `resourceFromAttributes()` following the 2.x API change
6-
11+
- **Upgrade `tshy` to `^4.1.1`, `vitest`/`@vitest/coverage-istanbul` to `^4.1.4`, `typescript` to `^6.0.2`** — removed deprecated `baseUrl` from `tsconfig.base.json` (TS6)
712
- **Upgrade `zod` from `^3.25.42` to `^4.3.6`** — migrated all `z.record()` calls to require explicit key schema (`z.string()`), updated test assertions for changed error message format
813

914
## 0.6.0 - 2026-04-01

README.md

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A Model Context Protocol (MCP) server that provides AI assistants with direct access to Mapbox developer APIs. This server enables AI models to interact with Mapbox services, helping developers build Mapbox applications more efficiently.
44

5+
> **Looking for Mapbox documentation access?** Use [mcp-docs-server](https://github.com/mapbox/mcp-docs-server) alongside this server — it provides AI assistants with access to Mapbox documentation, guides, and API references from docs.mapbox.com.
6+
57
https://github.com/user-attachments/assets/8b1b8ef2-9fba-4951-bc9a-beaed4f6aff6
68

79
## Table of Contents
@@ -15,7 +17,6 @@ https://github.com/user-attachments/assets/8b1b8ef2-9fba-4951-bc9a-beaed4f6aff6
1517
- [Hosted MCP Endpoint](#hosted-mcp-endpoint)
1618
- [Getting Your Mapbox Access Token](#getting-your-mapbox-access-token)
1719
- [Tools](#tools)
18-
- [Documentation Tools](#documentation-tools)
1920
- [Reference Tools](#reference-tools)
2021
- [Style Management Tools](#style-management-tools)
2122
- [Token Management Tools](#token-management-tools)
@@ -116,27 +117,9 @@ The `MAPBOX_ACCESS_TOKEN` environment variable is required. **Each tool requires
116117

117118
## Tools
118119

119-
### Documentation Tools
120-
121-
**get_latest_mapbox_docs_tool** - Access the latest official Mapbox documentation directly from the source. This tool fetches comprehensive, up-to-date information about all Mapbox APIs, SDKs, and developer resources from docs.mapbox.com/llms.txt.
122-
123-
**Example prompts:**
124-
125-
- "What are the latest Mapbox APIs available for developers?"
126-
- "Show me all current Mapbox services and SDKs"
127-
- "I need up-to-date Mapbox documentation for my project"
128-
- "What mapping solutions does Mapbox offer for my tech stack?"
129-
- "Give me an overview of Mapbox's navigation and routing capabilities"
130-
- "Compare Mapbox web SDKs versus mobile SDKs"
131-
- "What's new in the Mapbox ecosystem?"
132-
133-
📖 **[See more examples and interactive demo →](./docs/mapbox-docs-tool-demo.md)**
134-
135120
### Reference Tools
136121

137-
**get_reference_tool** - Access static Mapbox reference documentation and schemas. This tool provides essential reference information that helps AI assistants understand Mapbox concepts and build correct styles and tokens.
138-
139-
> **Note:** This tool exists as a workaround for Claude Desktop's current limitation with MCP resources. Claude Desktop can see resources (via `resources/list`) but doesn't automatically call `resources/read` to fetch their content. This tool provides the same reference data through the tool interface, which Claude Desktop does support. Other MCP clients that fully support the resources protocol can access this data directly as MCP Resources (see [Resources](#resources) section below).
122+
Reference data is exposed as MCP Resources (see [Resources](#resources) section). MCP clients that support the resources protocol can access them directly.
140123

141124
**Available References:**
142125

@@ -1053,7 +1036,7 @@ See the [mapbox-style-quality skill](skills/mapbox-style-quality/SKILL.md) for d
10531036

10541037
## Resources
10551038

1056-
This server exposes static reference documentation as MCP Resources. While these are primarily accessed through the `get_reference_tool`, MCP clients that fully support the resources protocol can access them directly.
1039+
This server exposes static reference documentation as MCP Resources. MCP clients that support the resources protocol can access them directly.
10571040

10581041
**Available Resources:**
10591042

@@ -1080,11 +1063,6 @@ This server exposes static reference documentation as MCP Resources. While these
10801063
- Includes common usage patterns and examples
10811064
- Helps avoid incompatible layer type/source layer combinations
10821065

1083-
**Accessing Resources:**
1084-
1085-
- **Claude Desktop & Most MCP Clients**: Use the `get_reference_tool` to access these references
1086-
- **Future MCP Clients**: May support direct resource access via the MCP resources protocol
1087-
10881066
**Note:** Resources provide static reference data that doesn't change frequently, while tools provide dynamic, user-specific data (like listing your styles or tokens) and perform actions (like creating styles or tokens).
10891067

10901068
## Observability & Tracing
@@ -1311,29 +1289,6 @@ node dist/esm/index.js --disable-mcp-ui
13111289

13121290
**Note:** You typically don't need to disable this. All clients receive a usable text URL regardless; interactive previews are a progressive enhancement on top.
13131291

1314-
#### CLIENT_NEEDS_RESOURCE_FALLBACK
1315-
1316-
**Resource Fallback Tools (Opt-In for Non-Compliant Clients)**
1317-
1318-
Resources are a core MCP feature supported by most clients (Claude Desktop, VS Code, MCP Inspector, etc.). However, some clients (like smolagents) don't support resources at all. For these clients, the server can provide "resource fallback tools" that deliver the same content as resources but via tool calls.
1319-
1320-
**Fallback Tools:**
1321-
1322-
- `get_reference_tool` - Access to style layers, Streets v8 fields, token scopes, layer type mapping
1323-
- `get_latest_mapbox_docs_tool` - Access to Mapbox documentation
1324-
1325-
**By default, these tools are NOT included** (assumes your client supports resources). If your client doesn't support resources, enable the fallback tools:
1326-
1327-
```bash
1328-
export CLIENT_NEEDS_RESOURCE_FALLBACK=true
1329-
```
1330-
1331-
**When to set this:**
1332-
1333-
- ✅ Set to `true` if using smolagents or other clients without resource support
1334-
- ❌ Leave unset (default) if using Claude Desktop, VS Code, MCP Inspector, or any resource-capable client
1335-
- ❌ Leave unset if unsure (most clients support resources)
1336-
13371292
## Troubleshooting
13381293

13391294
**Issue:** Tools fail with authentication errors

docs/mapbox-docs-tool-demo.md

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

docs/tracing-verification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This will:
4444

4545
In the MCP inspector:
4646

47-
1. Execute any tool (e.g., `list_styles_tool` or `get_latest_mapbox_docs_tool`)
47+
1. Execute any tool (e.g., `list_styles_tool` or `validate_style_tool`)
4848
2. Try multiple tools to generate various traces:
4949
- Style operations (create, update, retrieve, delete)
5050
- Token management

docs/tracing.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ All developer tools are automatically traced:
300300
- **Style Management**: `list_styles_tool`, `create_style_tool`, `update_style_tool`, `retrieve_style_tool`, `delete_style_tool`
301301
- **Style Building**: `style_builder_tool`, `preview_style_tool`, `style_comparison_tool`
302302
- **Token Management**: `list_tokens_tool`, `create_token_tool`
303-
- **Documentation**: `get_latest_mapbox_docs_tool`, `get_reference_tool`
304303
- **Local Processing**: `geojson_preview_tool`, `coordinate_conversion_tool`, `bounding_box_tool`
305304
- **Tilesets**: `tilequery_tool`
306305

0 commit comments

Comments
 (0)