Skip to content

feat: add Mapbox Tiling Service (MTS) tools #115

Description

@mattpodwysocki

Summary

Add MTS tools so agents can take raw data (GeoJSON, CSV, etc.) all the way through to a published tileset that can be referenced in a style layer — entirely within the devkit.

Why DevKit

MTS is a data-pipeline / developer workflow operation, not a runtime geospatial computation. It belongs alongside the existing style and token management tools rather than in the mainline geo-computation MCP server.

Proposed Tools

Tool MTS / Uploads API endpoint Description
upload_tileset_source_tool POST /tilesets/v1/sources/{username}/{id} Upload a GeoJSON or CSV file as a tileset source
create_tileset_tool POST /tilesets/v1/{tileset_id} Create a tileset with a recipe
publish_tileset_tool POST /tilesets/v1/{tileset_id}/publish Kick off the tiling job
get_tileset_status_tool GET /tilesets/v1/{tileset_id}/jobs/{job_id} Poll job status (queued / processing / success / failed)
list_tilesets_tool GET /tilesets/v1/{username} List tilesets for the authenticated user

Agent Workflow This Enables

1. upload_tileset_source_tool  — POST GeoJSON/CSV → get source_id
2. create_tileset_tool         — define tileset + recipe referencing source_id
3. publish_tileset_tool        — kick off tiling job → get job_id
4. get_tileset_status_tool     — poll until status === "success"
5. update_style_tool (exists)  — add a layer referencing the new tileset

This gives an agent a complete "I have data, build me a map" loop without leaving the devkit.

Token Scopes Required

  • tilesets:write — create, update, publish tilesets
  • tilesets:read — list, status
  • tilesets:list — list tilesets

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions