Setting the file. One moment.
Chapter 10 · Mapbox MCP Devkit Patterns
Subchapter 10.4
references/workflows.mdMarkdown3 KBView on GitHub
Create a style conversationally:
"Create a dark mode Mapbox style with 3D buildings, emphasize parks in green,
and use blue for water. Name it 'app-dark-mode'."The AI will use create_style_tool tool to:
Update existing style:
"Update style mapbox://styles/username/style-id to make roads more prominent
and reduce building opacity to 0.6"Validate style:
"Validate this style JSON: [paste style]"Create scoped token:
"Create a Mapbox token with these scopes:
- styles:read
- fonts:read
- datasets:read
Restrict it to domains: localhost, example.com"List existing tokens:
"Show me all my Mapbox tokens and their scopes"Use case: Generate tokens for different environments (development, staging, production) with appropriate restrictions.
Validate GeoJSON:
"Validate this GeoJSON and show any errors:
{
\"type\": \"FeatureCollection\",
\"features\": [...]
}"Validate expressions:
"Is this a valid Mapbox expression?
['case', ['<', ['get', 'population'], 1000], 'small', 'large']"Coordinate conversion:
"Convert longitude -122.4194, latitude 37.7749 from WGS84 to Web Mercator"Get style spec info:
"What properties are available for fill layers in Mapbox GL JS?"Check token scopes:
"What token scopes do I need to use the Directions API?"Streets v8 fields:
"What fields are available in the 'road' layer of Streets v8?"prod-light-mode not style-123