You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -116,6 +118,27 @@ The `MAPBOX_ACCESS_TOKEN` environment variable is required. **Each tool requires
116
118
117
119
📖 **[See more examples and interactive demo →](./docs/mapbox-docs-tool-demo.md)**
118
120
121
+
### Reference Tools
122
+
123
+
**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.
124
+
125
+
> **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).
126
+
127
+
**Available References:**
128
+
129
+
-**`resource://mapbox-style-layers`** - Mapbox GL JS style specification reference guide covering all layer types (fill, line, symbol, circle, fill-extrusion) and their properties
130
+
-**`resource://mapbox-streets-v8-fields`** - Complete field definitions for all Mapbox Streets v8 source layers, including enumerated values for each field (useful for building filters)
131
+
-**`resource://mapbox-token-scopes`** - Comprehensive token scope reference explaining what each scope allows and which scopes are needed for different operations
132
+
-**`resource://mapbox-layer-type-mapping`** - Mapping of Mapbox Streets v8 source layers to compatible GL JS layer types, with common usage patterns
133
+
134
+
**Example prompts:**
135
+
136
+
- "What fields are available for the landuse layer?"
137
+
- "Show me the token scopes reference"
138
+
- "What layer type should I use for roads?"
139
+
- "Get the Streets v8 fields reference"
140
+
- "What scopes do I need to display a map?"
141
+
119
142
### Style Management Tools
120
143
121
144
Complete set of tools for managing Mapbox styles via the Styles API:
@@ -374,6 +397,42 @@ An array of four numbers representing the bounding box: `[minX, minY, maxX, maxY
374
397
- "Calculate the bounding box of this GeoJSON file" (then upload a .geojson file)
375
398
- "What's the bounding box for the coordinates in the uploaded parks.geojson file?"
376
399
400
+
## Resources
401
+
402
+
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.
-**Claude Desktop & Most MCP Clients**: Use the `get_reference_tool` to access these references
432
+
-**Future MCP Clients**: May support direct resource access via the MCP resources protocol
433
+
434
+
**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).
0 commit comments