{"at":"2026-11-23T01:15:04.807Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:15:05.631Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:15:05.832Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:15:06.657Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"maplibre-mcp has what you would otherwise build yourself to work on MapLibre maps.\n\ninspect_tile shows the source layers, fields and values that real tiles hold. describe_style_spec has every layer type and property of the current style spec, and lists the layer types when asked for layers. debug_layers says why a layer draws nothing at a place.\n\npreview_style gives the user a link to a live map of a style, so there is no viewer page to write and no web server to start. render_page draws a page of your own, with the plugins, controls and code that a style cannot hold. render_style can place the camera in space over 3D terrain, from cameraPosition and lookAt. describe_gl_js_api has the API of the installed MapLibre GL JS. MapLibre GL JS 6 has no maplibre-gl.js for a script tag. A page loads it in a module script with `import * as maplibregl from 'https://unpkg.com/maplibre-gl@6.19.0/dist/maplibre-gl.mjs'`, and maplibre-gl.css from the same folder.\n\nsearch_ecosystem finds the plugins and services that add what MapLibre itself lacks, like contour lines, drawing, routing and geocoding. find_basemaps lists basemap styles, tiles and elevation data, and says which need an API key.\n\nA style that validates is not finished. Render it with render_style and look at the image as its user will. Is what they asked for the first thing the eye lands on? Can every label be read, and does it stand clear of the other labels and of what it names? Do lines crowd into clutter anywhere? Do the land, the relief and the lines differ enough in color and weight? Render more than one view before you call it done, such as the place that was asked for, a wider area and a closer one, because these problems often show only at another zoom. Fix what you see and render again. A first render is rarely the best the style can be.","protocolVersion":"2025-11-25","serverInfo":{"name":"maplibre-mcp","title":"MapLibre","version":"0.9.2"}}}}
{"at":"2026-11-23T01:15:06.657Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:15:06.657Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:15:06.665Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Checks a MapLibre style against the MapLibre Style Specification and lists every problem, each with the path to the property it is about. Run it after editing a style. Pass the style as an object, a URL or a file path.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"path":{"description":"Path to a style JSON file, relative to the directory the server runs in.","type":"string"},"style":{"additionalProperties":{},"description":"The style as a JSON object.","propertyNames":{"type":"string"},"type":"object"},"url":{"description":"URL of a style JSON document.","format":"uri","type":"string"}},"type":"object"},"name":"validate_style","outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"problems":{"items":{"additionalProperties":false,"properties":{"message":{"type":"string"},"severity":{"enum":["error","warning"],"type":"string"}},"required":["severity","message"],"type":"object"},"type":"array"}},"required":["problems"],"type":"object"},"title":"Validate style"},{"annotations":{"readOnlyHint":true},"description":"Looks up a name in the MapLibre Style Specification: a layer type (like \"fill\"), a layer or root property (like \"fill-extrusion-height\" or \"sky\"), a source type (like \"geojson\") or an expression operator (like \"interpolate\"). Returns its documentation, type, default, allowed values, expression support and which MapLibre GL JS and MapLibre Native versions support it. Check here before using a property you are not sure exists in MapLibre, since Mapbox GL JS has properties that MapLibre does not.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"name":{"description":"The name to look up.","type":"string"}},"required":["name"],"type":"object"},"name":"describe_style_spec","title":"Describe style spec"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Reads the metadata of every source in a MapLibre style (TileJSON, PMTiles headers and GeoJSON data) and lists the source layers and fields each one provides. Then checks that every layer uses a source, source layer and fields that exist. Use it before writing layers against data you do not know. inspect_tile shows the values the fields take, and debug_layers says what each layer draws at a place. Pass the style as an object, a URL or a file path.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"path":{"description":"Path to a style JSON file, relative to the directory the server runs in.","type":"string"},"style":{"additionalProperties":{},"description":"The style as a JSON object.","propertyNames":{"type":"string"},"type":"object"},"url":{"description":"URL of a style JSON document.","format":"uri","type":"string"}},"type":"object"},"name":"describe_sources","title":"Describe sources"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Reads the vector tile of a source at a place and zoom, and lists each source layer with its number of features, their geometry types, the values of each field and a few example features. It also gives the zoom range of the source and the source layers its metadata lists that the tile lacks. Use it to learn the values data really has, like the classes of roads, before writing filters and expressions. The source is either the id of a source in the style you pass, or the URL of a vector source: a TileJSON URL like a Martin source, a PMTiles archive, or a tile URL with {z}, {x} and {y}. Reads MVT and MLT tiles.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"center":{"description":"[longitude, latitude] of the place to read. Defaults to the center of the style or the source.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"examples":{"description":"How many example features to show for each source layer. Defaults to 3.","maximum":20,"minimum":0,"type":"integer"},"layer":{"description":"Only list this source layer.","type":"string"},"path":{"description":"Path to a style JSON file, relative to the directory the server runs in.","type":"string"},"source":{"description":"The id of a source in the style, or the URL of a vector source. Defaults to the only vector source of the style.","type":"string"},"style":{"additionalProperties":{},"description":"The style as a JSON object.","propertyNames":{"type":"string"},"type":"object"},"url":{"description":"URL of a style JSON document.","format":"uri","type":"string"},"zoom":{"description":"Zoom level of the tile. Defaults to the zoom of the style, or the highest zoom of the source.","maximum":24,"minimum":0,"type":"number"}},"type":"object"},"name":"inspect_tile","title":"Inspect tile"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Says for each layer of a style whether it draws anything at a place and zoom, and when it draws nothing, why: it is hidden or outside its zoom range, the tile lacks its source layer, its filter matches no feature (listed with the values the tile has), a fill layer gets no polygons, its opacity, width or size is 0 or its color transparent, or icons are missing from the sprite. It also notes text that GL JS draws with local fonts and MapLibre Native leaves out, because the style has no glyphs URL or the glyph server lacks its font stack. It reads the vector tiles and GeoJSON data at the place. Use it when a layer draws nothing. Pass the style as an object, a URL or a file path.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"center":{"description":"[longitude, latitude] of the place. Defaults to the center of the style.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"layers":{"description":"Only check these layers, by id. Defaults to every layer.","items":{"type":"string"},"type":"array"},"path":{"description":"Path to a style JSON file, relative to the directory the server runs in.","type":"string"},"style":{"additionalProperties":{},"description":"The style as a JSON object.","propertyNames":{"type":"string"},"type":"object"},"url":{"description":"URL of a style JSON document.","format":"uri","type":"string"},"zoom":{"description":"Zoom level. Defaults to the zoom of the style.","maximum":24,"minimum":0,"type":"number"}},"type":"object"},"name":"debug_layers","title":"Debug layers"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Looks up a class, method, option, event or function of MapLibre GL JS, like \"Map\", \"Map#flyTo\", \"MapOptions.maxPitch\", \"click\" or \"addProtocol\", in the type definitions that GL JS ships. Returns its signature, documentation, parameters, default and examples, and for a class or an options type, its members. Answers for the GL JS version this server renders with, or for another version, like the one a project uses. Check here before using a method or option you are not sure exists in MapLibre, since Mapbox GL JS has some that MapLibre GL JS does not.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"name":{"description":"The name to look up, like \"Map#flyTo\", \"flyTo\" or \"MapOptions\".","type":"string"},"version":{"description":"A GL JS version or range, like \"5.6.0\" or \"5\", whose type definitions are fetched from jsDelivr. Defaults to the version this server renders with.","type":"string"}},"required":["name"],"type":"object"},"name":"describe_gl_js_api","title":"Describe GL JS API"},{"_meta":{"ui":{"resourceUri":"ui://maplibre/show-map.html"},"ui/resourceUri":"ui://maplibre/show-map.html"},"annotations":{"readOnlyHint":true},"description":"Shows the user an interactive MapLibre map in the chat, with GeoJSON layers and markers on an OpenFreeMap basemap. The user sees the map and you do not; to look at a map yourself, use render_style. Without center and zoom, the map fits the layers and markers. Needs a client that supports MCP Apps.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"basemap":{"default":"liberty","description":"The OpenFreeMap style to draw on.","enum":["liberty","bright","positron","dark","fiord"],"type":"string"},"bearing":{"type":"number"},"center":{"description":"[longitude, latitude] of the map center.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"layers":{"default":[],"items":{"properties":{"data":{"additionalProperties":{},"description":"A GeoJSON FeatureCollection, Feature or geometry.","propertyNames":{"type":"string"},"type":"object"},"layout":{"additionalProperties":{},"description":"Layout properties for the layer type.","propertyNames":{"type":"string"},"type":"object"},"paint":{"additionalProperties":{},"description":"Paint properties for the layer type, like {\"fill-color\": \"#d33\"}.","propertyNames":{"type":"string"},"type":"object"},"type":{"enum":["fill","line","circle","symbol","fill-extrusion","heatmap"],"type":"string"}},"required":["type","data"],"type":"object"},"type":"array"},"markers":{"default":[],"items":{"properties":{"color":{"type":"string"},"label":{"description":"Shown in a popup when the user clicks the marker.","type":"string"},"position":{"description":"[longitude, latitude]","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"}},"required":["position"],"type":"object"},"type":"array"},"pitch":{"maximum":85,"minimum":0,"type":"number"},"zoom":{"maximum":22,"minimum":0,"type":"number"}},"type":"object"},"name":"show_map","title":"Show map"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Loads a web page with a MapLibre map in a headless browser and returns a screenshot of it, so you can see a map together with the plugins, controls and code of its page, which render_style leaves out since a style cannot hold them. Also reports the errors and warnings of the page, the requests that failed and the camera of the map. Pass an HTML file, which is served together with the files in its folder, or the URL of a page. A page that keeps its map in window.map is drawn once that map has loaded everything, and script can then use the map, for example to move the camera before the screenshot.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"height":{"default":600,"maximum":2048,"minimum":64,"type":"integer"},"path":{"description":"Path to an HTML file, relative to the directory the server runs in. The page can load the files next to it.","type":"string"},"script":{"description":"JavaScript to run in the page before the screenshot, like map.jumpTo({center: [7.66, 45.98], zoom: 12}). What it evaluates to is returned.","type":"string"},"url":{"description":"URL of a page, for example on a development server.","format":"uri","type":"string"},"width":{"default":800,"maximum":2048,"minimum":64,"type":"integer"}},"type":"object"},"name":"render_page","title":"Render page"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Gives the user a link to an interactive map of a style, served by this server on their machine, so there is no viewer page to write, no web server to start and no browser to open for them. Given a file, the map follows it and redraws when the file changes. Given the style as an object, the map shows a changed style when you pass it together with the link, as link. Pass the style as an object, a URL or a file path.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"link":{"description":"A link that this tool gave before for a style passed as an object. The map there then shows this style, and a page that has it open redraws.","type":"string"},"path":{"description":"Path to a style JSON file, relative to the directory the server runs in.","type":"string"},"style":{"additionalProperties":{},"description":"The style as a JSON object.","propertyNames":{"type":"string"},"type":"object"},"url":{"description":"URL of a style JSON document.","format":"uri","type":"string"}},"type":"object"},"name":"preview_style","title":"Preview style"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Searches Make with MapLibre (makewithmaplibre.com), a curated directory of what works with MapLibre: SDKs and framework bindings, GL JS plugins, routing and navigation, geocoding, styling and tiling tools, AI tools (MCP servers and agent skills), hosted APIs, the products built with MapLibre, and consultancies. Use it to pick an SDK for a platform or framework, find a plugin or a service, find a platform or data source to build on, or see which products use a library. Each result has its links and a page with more. Follow up with find_basemaps for style URLs to render.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"kind":{"description":"Only entries of this kind. ai is MCP servers and agent skills for MapLibre. plugin includes the routing and geocoding controls for MapLibre GL JS. routing, geocoding, styling and tiling include the hosted services of that kind, and service lists all of them.","enum":["sdk","plugin","routing","geocoding","styling","tiling","ai","service","product","consultant"],"type":"string"},"limit":{"default":10,"description":"The most results to return.","maximum":50,"minimum":1,"type":"integer"},"platform":{"description":"Only entries that run on this platform. Hosted services and consultancies have no platform and are kept.","enum":["Web","iOS","Android","Desktop","Server"],"type":"string"},"query":{"description":"Words that each result has to contain, like \"react\", \"draw\" or \"routing\". Leave it out to list the most prominent entries.","type":"string"}},"type":"object"},"name":"search_ecosystem","title":"Search the MapLibre ecosystem"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Lists the basemaps in Make with MapLibre (makewithmaplibre.com): ready-made MapLibre styles from OpenFreeMap, Protomaps, MapTiler, Stadia Maps, VersaTiles and others, with their style URLs and whether they need an API key, plus raster and elevation tiles. Pass a style URL as url to render_style or compare_styles to see it, or start a style from it.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"free":{"description":"true for only the basemaps that need no API key, false for only those that do.","type":"boolean"},"query":{"description":"Words that each basemap has to contain, in its name, provider or description, like \"dark\", \"satellite\" or \"openfreemap\".","type":"string"}},"type":"object"},"name":"find_basemaps","title":"Find basemaps"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Renders a MapLibre style to a PNG image, so you can see what the style looks like, for example after changing it. Also reports what the renderer noticed, such as style errors, failed requests, and fonts and icons that are missing. Pass the style as an object, a URL or a file path. Without center, zoom or bounds, the camera stored in the style is used. For a view over 3D terrain, cameraPosition and lookAt place the camera in space, and the result gives the center, zoom, bearing and pitch of that view to store in the style.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"bearing":{"description":"The compass direction at the top of the map, in degrees.","type":"number"},"bounds":{"description":"[west, south, east, north] to fit the map to, instead of center and zoom.","items":{"type":"number"},"maxItems":4,"minItems":4,"type":"array"},"cameraPosition":{"description":"[longitude, latitude, altitude in metres] of the camera, to place it in space instead of with center, zoom, bearing and pitch. Needs lookAt.","items":{"type":"number"},"maxItems":3,"minItems":3,"type":"array"},"center":{"description":"[longitude, latitude] of the map center.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"height":{"default":600,"maximum":2048,"minimum":64,"type":"integer"},"lookAt":{"description":"[longitude, latitude] of the point on the ground that the camera at cameraPosition looks at, like a summit or a village.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"path":{"description":"Path to a style JSON file, relative to the directory the server runs in.","type":"string"},"pitch":{"description":"Tilt in degrees from looking straight down.","maximum":85,"minimum":0,"type":"number"},"renderer":{"default":"gl-js","description":"The MapLibre renderer to draw with.","enum":["gl-js"],"type":"string"},"style":{"additionalProperties":{},"description":"The style as a JSON object.","propertyNames":{"type":"string"},"type":"object"},"url":{"description":"URL of a style JSON document.","format":"uri","type":"string"},"width":{"default":800,"maximum":2048,"minimum":64,"type":"integer"},"zoom":{"maximum":24,"minimum":0,"type":"number"}},"type":"object"},"name":"render_style","title":"Render style"},{"annotations":{"openWorldHint":true,"readOnlyHint":true},"description":"Renders two versions of a MapLibre style at the same camera, and returns one image with the style before, the style after, and their differences in red. Use it after changing a style, to check that the change did what you meant and nothing else, at a few places and zoom levels. Pass each style as an object, a URL or a file path.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"after":{"description":"The style after the change.","properties":{"path":{"description":"Path to a style JSON file, relative to the directory the server runs in.","type":"string"},"style":{"additionalProperties":{},"description":"The style as a JSON object.","propertyNames":{"type":"string"},"type":"object"},"url":{"description":"URL of a style JSON document.","format":"uri","type":"string"}},"type":"object"},"bearing":{"description":"The compass direction at the top of the map, in degrees.","type":"number"},"before":{"description":"The style before the change.","properties":{"path":{"description":"Path to a style JSON file, relative to the directory the server runs in.","type":"string"},"style":{"additionalProperties":{},"description":"The style as a JSON object.","propertyNames":{"type":"string"},"type":"object"},"url":{"description":"URL of a style JSON document.","format":"uri","type":"string"}},"type":"object"},"bounds":{"description":"[west, south, east, north] to fit the map to, instead of center and zoom.","items":{"type":"number"},"maxItems":4,"minItems":4,"type":"array"},"center":{"description":"[longitude, latitude] of the map center.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"height":{"default":384,"maximum":1024,"minimum":64,"type":"integer"},"pitch":{"description":"Tilt in degrees from looking straight down.","maximum":85,"minimum":0,"type":"number"},"renderer":{"default":"gl-js","description":"The MapLibre renderer to draw both with.","enum":["gl-js"],"type":"string"},"width":{"default":512,"description":"Width of each of the three images.","maximum":1024,"minimum":64,"type":"integer"},"zoom":{"maximum":24,"minimum":0,"type":"number"}},"required":["before","after"],"type":"object"},"name":"compare_styles","title":"Compare styles"}]}}}
