Skip to main content
Glama
Magic Lane MCP DevKit Server

Magic Lane MCP DevKit Server

Official
by magiclane
README.md
# Magic Lane MCP DevKit Server

## Introduction

The **Magic Lane MCP DevKit Server** is a Model Context Protocol (MCP) server for developers who build apps with the Magic Lane SDK and APIs: it lets their AI assistant (Claude, Grok Build, VS Code, Android Studio or any other MCP client) manage the resources of their own Magic Lane developer account.

An account holds three kinds of resources, and the server has a toolset for each: Studio map styles, portal projects with their API keys, and offline maps. Credentials are set in the server configuration, never in the chat.

**[Magic Lane Studio styles:](#magic-lane-studio-styles)** assistant can look at the account's map styles, change them and check them before they are saved:

- **`list_styles`** - list the account's styles, newest first.
- **`list_templates`** - list the shared templates a new style can start from.
- **`get_style`** - read a style or template, with its JSON and version.
- **`download_style`** - download a style as JSON or as the `.style` file the SDK loads.
- **`create_style`** - create a style from a template, a document or a file.
- **`update_style`** - save new content; refused if the style changed in Studio meanwhile.
- **`edit_style_details`** - change name, description, tags and purposes.
- **`validate_style`** - check a style against the style schema, offline.
- **`get_style_reference`** - read the style format documentation.

**[Projects and API keys:](#projects-and-api-keys)** assistant can set up the projects an app belongs to and the API keys it ships with:

- **`list_projects`** / **`get_project`** - list projects, or read one with its settings.
- **`create_project`** / **`update_project`** - create a project, or change its settings.
- **`list_api_keys`** / **`get_api_key`** - list a project's keys, or read one; masked unless asked.
- **`create_api_key`** / **`rename_api_key`** - create a key (optionally saved to a file), or rename one.

**[Offline maps:](#offline-maps)** assistant can find and fetch the map data an app uses without a network connection:

- **`list_offline_map_versions`** - list the map versions an SDK can read.
- **`list_offline_maps`** - browse the maps of a version, by continent, country or text.
- **`download_offline_map`** - download a map file, resumable and checksum-verified (local server only).

**Transport Options:** the server supports both **stdio** (for MCP-native clients like Claude Desktop) and **Streamable HTTP** (for web applications and custom integrations).

![Magic Lane MCP DevKit Server Demo](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/docs/examples/demo.gif?raw=true)

## Getting Started

### Prerequisites

1. **Node.js 22.12+** installed ([Download here](https://nodejs.org/))
2. **npm** (comes with Node.js)
3. A Magic Lane **secret key** (`mlsk_...`) for the styles, projects and API key tools (see [API Key Setup](#api-key-setup)). A server that offers only the offline maps tools runs without it.
4. For the offline maps tools only: an application's **API token and its secret** for the Offline Maps API. To get them, contact Magic Lane through [Contact us](https://www.magiclane.com/web/contact). They are separate from the secret key, which is used for the portal only.
5. An **MCP-compatible AI client**, such as:
   - [Claude Desktop](https://claude.ai/download)
   - [Grok Build](https://grok.com/product/build), formerly Cursor
   - **Visual Studio Code** with [GitHub Copilot](https://github.com/features/copilot)
   - [Android Studio](https://developer.android.com/studio) with Gemini
   - [Claude Code](https://claude.com/product/claude-code), or any other client that speaks MCP

**Verify Prerequisites:**

```bash
# Check Node.js version (should be 22.12 or newer)
node --version

# Check npm version
npm --version
```

### API Key Setup

The server needs different credentials for each toolset:

| Toolsets             | Credentials                                                                                 | Where to get them      |
| -------------------- | ------------------------------------------------------------------------------------------- | ---------------------- |
| `styles`, `projects` | Secret key: `MAGICLANE_SECRET_KEY`                                                          | The developer portal   |
| `offline_maps`       | API token and its secret: `MAGICLANE_OFFLINE_MAPS_API_KEY`, `MAGICLANE_OFFLINE_MAPS_SECRET` | Magic Lane, on request |

**Secret key (styles, projects and API keys).** To create a secret key, follow our [step-by-step guide](https://developer.magiclane.com/docs/guides/get-started#create-a-secret-key). The detailed steps are:

1. Create a free account at [developer.magiclane.com/api/register](https://developer.magiclane.com/api/register).
2. Sign in and open the [Projects dashboard](https://developer.magiclane.com/api/dashboard).
3. Under **CLI & Access**, create a secret key. It starts with `mlsk_`.
4. Give it the levels for the tools you use: **Studio** for the style tools, **Projects** and **API keys** for the project tools. **Read** is enough to list and read; **Read & write** is needed to create and change.

**API token and secret (offline maps).** The [Offline Maps API](https://developer.magiclane.com/docs/cloud-rest-api/guides/maps-3dscene/offline-maps-api/) needs an application's API token and its secret. To get them, [Contact Magic Lane](https://www.magiclane.com/web/contact). Without them the server runs without the offline maps tools.

### Quick Start

For immediate testing, use npx to run the server without installation:

```bash
# Set your keys as environment variable
# Secret key for style and project tools
export MAGICLANE_SECRET_KEY="your_secret_key"

# Offline maps tools: the application's API token and its secret
export MAGICLANE_OFFLINE_MAPS_API_KEY="your_token"
export MAGICLANE_OFFLINE_MAPS_SECRET="your_secret"

# Run the server directly
npx -y -p @magiclane/mcp-devkit-server magiclane-devkit-mcp
```

### Installation

In Claude Desktop, as an extension: download `magiclane-mcp-devkit-<version>.mcpb` from the [latest release](https://github.com/magiclane/magiclane-mcp-devkit-server/releases/latest), drag it into **Settings → Extensions** and fill in the keys it asks for. The [Claude Desktop Setup Guide](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/docs/claude-desktop-setup.md#the-extension) describes its settings.

From npm:

```bash
npx -y -p @magiclane/mcp-devkit-server magiclane-devkit-mcp
```

From source:

```bash
# Clone or navigate to the Magic Lane Devkit MCP Server directory
cd path/to/magiclane-mcp-devkit-server

# Install dependencies
npm install

# Build the TypeScript project
npm run build

# Verify the build was successful
ls dist/  # Should show devkit-server.esm.js and devkit-server-http.esm.js
```

The package has two commands. `magiclane-devkit-mcp` is the local (stdio) server that an MCP client starts by itself. `magiclane-devkit-mcp-http` is the Streamable HTTP server, which you start and clients connect to:

```bash
# Set the keys in your shell first, as in Quick Start
npx -y -p @magiclane/mcp-devkit-server magiclane-devkit-mcp-http
# The server listens on http://127.0.0.1:3000/mcp
```

For complete HTTP server documentation including endpoints, access keys, limits and client integration, see the [HTTP Server Setup Guide](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/docs/http-server-setup.md).

### Environment Variables

| Variable                         | Required                | Default | Purpose                                                                           |
| -------------------------------- | ----------------------- | ------- | --------------------------------------------------------------------------------- |
| `MAGICLANE_SECRET_KEY`           | for styles and projects | -       | Secret key (`mlsk_...`) for the developer portal.                                 |
| `MAGICLANE_OFFLINE_MAPS_API_KEY` | for offline maps        | -       | An application's API token for the Offline Maps API.                              |
| `MAGICLANE_OFFLINE_MAPS_SECRET`  | for offline maps        | -       | That application's secret. Set it together with `MAGICLANE_OFFLINE_MAPS_API_KEY`. |
| `MAGICLANE_TOOLSETS`             | no                      | `all`   | Tool groups to offer: `styles`, `projects`, `offline_maps`.                       |
| `MAGICLANE_FILES_DIR`            | no                      | -       | The only folder the file tools may use. Unset: any path.                          |
| `HTTP_TIMEOUT_SECONDS`           | no                      | `30`    | Timeout for one outgoing request, in seconds; at most 50 is used.                 |
| `VERBOSE`                        | no                      | `false` | Print info and debug logs to stderr.                                              |

Keys are read from the environment only, never from a tool call. When an MCP client starts the server, set the variables in the client's configuration: the server never reads a `.env` file. For local development, copy `.env.example` to `.env`; the npm scripts and the tests read it. A key that does not look like a Magic Lane key, or has a space or a line break in it, stops the server at startup.

A relative path in a tool call is taken from `MAGICLANE_FILES_DIR`, which the Claude Desktop extension sets to your Documents folder unless you choose another. Without it, a relative path is taken from the folder the client started the server in, so name the whole path.

A `MAGICLANE_TOOLSETS` of only commas or spaces counts as unset, and so means the default. An `HTTP_TIMEOUT_SECONDS` above 50 is not refused: 50 is used, so that a tool call still answers in time, and the startup log (with `VERBOSE=true`) shows the value in use.

### Configuration

Configure your MCP client to start the Magic Lane MCP DevKit Server. Follow the setup guide for your client:

- **[Claude Desktop Setup Guide](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/docs/claude-desktop-setup.md)** - the extension, npm, a local build or Docker
- **[Grok Build Setup Guide](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/docs/grok-build-setup.md)** - setup for Grok Build, formerly Cursor
- **[VS Code Setup Guide](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/docs/vscode-setup.md)** - Visual Studio Code with GitHub Copilot in agent mode
- **[Android Studio Setup Guide](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/docs/android-studio-setup.md)** - Gemini in Android Studio, through the HTTP server
- **[Other Clients Setup Guide](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/docs/other-clients-setup.md)** - Claude Code, and what any other MCP client needs
- **[HTTP Server Setup Guide](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/docs/http-server-setup.md)** - the Streamable HTTP server for remote and web clients

Each guide includes where the client keeps its configuration, the server entry to add and how to check that the tools are available.

### Docker

No image is published for this release: build the DevKit image from this repository, then run the server in a container:

```bash
# Build the Docker image
docker build -t magiclane-mcp-devkit .

# Run the stdio server (-i keeps stdin open for the MCP client). -e NAME with no value takes
# the value from your shell: set the variable there first. A value written on the command
# line can be read by other users of the computer while the container runs.
docker run -i --rm -e MAGICLANE_SECRET_KEY magiclane-mcp-devkit

# Add the offline maps tools: pass the application's API token and its secret too
docker run -i --rm \
  -e MAGICLANE_SECRET_KEY \
  -e MAGICLANE_OFFLINE_MAPS_API_KEY \
  -e MAGICLANE_OFFLINE_MAPS_SECRET \
  magiclane-mcp-devkit

# Offline maps only: no secret key needed
docker run -i --rm \
  -e MAGICLANE_TOOLSETS=offline_maps \
  -e MAGICLANE_OFFLINE_MAPS_API_KEY \
  -e MAGICLANE_OFFLINE_MAPS_SECRET \
  magiclane-mcp-devkit

# Or pass the variables from an env file
docker run -i --rm --env-file .env magiclane-mcp-devkit

# Keep the files the tools save (style files, API key files, offline maps): mount a folder
# and make it the one folder the file tools use. Create the folder first, so that it is yours.
mkdir -p devkit-files
docker run -i --rm \
  -e MAGICLANE_SECRET_KEY \
  -e MAGICLANE_FILES_DIR=/data \
  -v "$PWD/devkit-files:/data" \
  magiclane-mcp-devkit
```

Without a mounted folder, a tool cannot save to a relative path: the container's working folder, `/app`, belongs to root, so the save is refused. A file saved to an absolute path elsewhere in the container, such as under `/tmp` or `/home/node`, is gone when the container is removed (`--rm`). With the mount above, a relative path in a tool call lands in `devkit-files` on your computer, and the tools can use no other folder. The server runs as the unprivileged `node` user (uid 1000), which must be able to write to the folder: on Linux, a folder that Docker creates by itself belongs to root.

## Available Tools

The tools are grouped by category. Each category below starts with a summary table. Under it, a collapsed section holds one entry per tool with its parameters and example prompts; click it to open.

- [Magic Lane Studio styles](#magic-lane-studio-styles) (9 tools)
- [Projects and API keys](#projects-and-api-keys) (8 tools)
- [Offline maps](#offline-maps) (3 tools)

Every tool also declares an output schema and returns its result as structured content next to the JSON text. How failures are reported is the same for all of them; see [Common Error Messages](#common-error-messages).

> [!IMPORTANT]
> Text in tool results can be written by other people: style, template, project and API key names, descriptions and tags, and the reference pages. Such a text can be made to look like an instruction.
>
> - The server tells the model to treat it as data, and removes control, bidirectional and invisible characters from it.
> - A style's own JSON is passed on unchanged, so the server tells the model that everything inside a style is data too.
> - Keep your client asking before it runs a write tool (the tools marked `readOnlyHint: false`), above all `create_api_key` with `revealToken`, `update_project` and the style writes. Then no such text can make a change or send a key out unseen.

## Magic Lane Studio styles

- **Toolset:** `styles` (9 tools, plus the [style resources](#style-resources))
- **API:** Styles Access API, on the developer portal
- **Credentials:** `MAGICLANE_SECRET_KEY`. `Studio: Read` is enough for the read tools; `create_style`, `update_style` and `edit_style_details` need `Studio: Read & write`, and answer `insufficient_scope` without it.
- **Not possible here:** publishing, reverting and deleting styles are done in Studio.

| Tool                  | What it does                                                    | Changes the style |
| --------------------- | --------------------------------------------------------------- | ----------------- |
| `list_styles`         | Lists your styles, newest first                                 | no                |
| `list_templates`      | Lists the shared templates a new style can start from           | no                |
| `get_style`           | Reads one style or template, with its JSON and version          | no                |
| `download_style`      | Downloads a style as JSON or as the `.style` file the SDK loads | no                |
| `create_style`        | Creates a style from a template, a document or a file           | yes               |
| `update_style`        | Replaces the whole content of a style                           | yes               |
| `edit_style_details`  | Changes name, description, tags and purposes                    | yes               |
| `validate_style`      | Checks a style document against the style schema, offline       | no                |
| `get_style_reference` | Reads the style format documentation                            | no                |

**The usual way to change a style:**

1. `get_style` to read the JSON and note its `version`.
2. Edit the JSON, then `validate_style` to check it.
3. `update_style` with that `version` as `baseVersion`.

**Versions protect your work.** Every style has a `version` that changes on each save, here or in Studio. The write tools require it as `baseVersion`. If the style was saved in the meantime, the write is refused with a `conflict`, nothing changes, and the tool returns the current version so the agent can read again.

**Working with files (local server only).** A style is 170–190 KB of JSON. Instead of passing it through the conversation, the agent can keep it in a file:

1. `get_style` with `includeData: false` notes the style's `version`.
2. `download_style` with a `path` writes the style to a file.
3. The agent edits only the lines it needs.
4. `validate_style` with that `path` checks it.
5. `update_style` with that `path` and the `version` from step 1 as `baseVersion` saves it.

Read the version before the download, not after the edit: if the style is saved in Studio after step 1, step 5 is refused with a `conflict`, so that save is not overwritten. A version read after the edit would already include it.

- Prefer absolute paths; a relative one is taken from the folder `MAGICLANE_FILES_DIR` names when it is set, otherwise from the server's working directory.
- A path whose first folder is `~` or `~user` (`~/styles/night.json`, `~\styles\…`, `~root/…`), or that is `~` alone, is refused on every system: the server does not read `~` as a home folder. Give an absolute path, or one relative to the `MAGICLANE_FILES_DIR` folder (or the working directory). A file name that only starts with `~` (`~backup.json`) is fine, and a folder really named `~` is reached as `./~/…`.
- With `MAGICLANE_FILES_DIR` set, a path that leaves that folder, by `..` or through a link, is refused, and so is a path through a link to something that is not there, for reads and writes. Just before a write is accepted (for `download_offline_map`, after the catalog has been read), where it leads is checked once more, so a link that now leads out of the folder is refused. A link that another program changes after that check is not guarded against.
- A network path (on Windows, `\\server\share\night.json`) is refused without being opened. The one exception is a path inside `MAGICLANE_FILES_DIR` when you set that folder to a network share yourself, such as a Documents folder kept on a file server.
- No answer about a file carries its content: broken JSON is reported by line and column only.
- A style file (`validate_style`, and `create_style` or `update_style` with a `path`) is read through one open file, and reading stops just past 40 MiB, the most a style can have, whatever size the system reports for the file (0 for the files under `/proc` on Linux). A pipe or a device is refused without being read.
- `download_style` writes style files only: the path must end in `.json` or `.style`, and may not be a file other programs run commands from, such as `package.json`, `tasks.json`, Jupyter's `kernel.json` or `cdk.json`, nor the info file of a map download (`<map>.part.json`). It also refuses any folder or file that starts with a dot, such as `.vscode` or `.mcp.json`, and any name that holds a character that shows as nothing: inside the folder `MAGICLANE_FILES_DIR` names when it is set, otherwise inside the folder the server was started in, and anywhere in a path that leads elsewhere. Nor does it write into the folders where programs keep their settings without a dot: `~/Library` on macOS, `%APPDATA%`, `%LOCALAPPDATA%` and `%PROGRAMDATA%` on Windows, and the XDG config, data and state folders when they are set. A `MAGICLANE_FILES_DIR` inside one of them is allowed, and so is the temporary folder.
- The HTTP server has no `path` on any tool, because there a path would name a file on the server. `download_style` returns the download in the result instead.

<details>
<summary><strong>Style tools: parameters and example prompts (9 tools, click to expand)</strong></summary>

### `list_styles`

Lists your styles, newest first. Returns summaries only (id, name, description, resolution, tags, purposes, `updated`, `published`, `version`), never the style JSON.

| Parameter      | Type                        | Required | Default | Description                                           |
| -------------- | --------------------------- | -------- | ------- | ----------------------------------------------------- |
| `resolution`   | `"high_res"` \| `"low_res"` | no       | -       | Only styles with this resolution.                     |
| `nameContains` | string                      | no       | -       | Only styles whose name contains this text (any case). |
| `limit`        | integer 1–500               | no       | `50`    | Most styles returned.                                 |

Example prompts:

- "List my Studio styles."
- "Do I have a style with 'night' in its name?"
- "Which of my styles have never been published?"

### `list_templates`

Lists the shared, read-only templates as rows of `group`, `variation`, `id` and `description`. A row's `id` is what `create_style` takes as `templateId`.

No parameters.

Example prompts:

- "Which templates can I start a new style from?"
- "What variations does the Basic 1 template have?"

### `get_style`

Reads one style or template: its details, its current `version` and, by default, the full style JSON as `data`.

- The `version` is what the write tools need as `baseVersion`.
- With `data` comes `dataFormat`, a short note on the traps of the format (see [Style resources](#style-resources)).

| Parameter     | Type    | Required | Default | Description                                                        |
| ------------- | ------- | -------- | ------- | ------------------------------------------------------------------ |
| `id`          | UUID    | yes      | -       | Style id from `list_styles`, or template id from `list_templates`. |
| `includeData` | boolean | no       | `true`  | `false` returns only the details and `version`.                    |

Example prompts:

- "Open my style Night mode and tell me which sections it has."
- "Show me how the water layers are defined in my Night mode style."

### `download_style`

Downloads a style as the style JSON, or as the `.style` file the Magic Lane SDK loads.

- The download is the last saved content, published or not.
- Without `path`, JSON is returned in the result; a `.style` file only when it is 2 MiB or smaller, base64-encoded.
- A `path` must end in `.json` for the JSON and in `.style` for the `.style` file.
- An existing file is never replaced without `overwrite`: the call is refused before anything is downloaded.
- When the portal cannot build the `.style` file, the result carries what it reported, which says what to fix.

| Parameter   | Type                  | Required | Default  | Description                                                 |
| ----------- | --------------------- | -------- | -------- | ----------------------------------------------------------- |
| `id`        | UUID                  | yes      | -        | Style or template id.                                       |
| `format`    | `"json"` \| `"proto"` | no       | `"json"` | `json`: the style JSON. `proto`: the `.style` file.         |
| `path`      | string                | no       | -        | File to write to. Local server only.                        |
| `overwrite` | boolean               | no       | `false`  | Replace the file at `path` if it exists. Local server only. |

Example prompts:

- "Download the .style file of my Night mode style to styles/night.style."
- "Download my Night mode style as a .style file and tell me whether the portal reports any errors."

### `create_style`

Creates a style from exactly one of: a template (`templateId`), a full document (`data`) or a style JSON file (`path`).

- Calling it twice creates two styles.
- Description, tags and purposes are applied with a second write, because the portal ignores them on create.
- After a timeout the tool does not retry. It reads the style list before the request, and afterwards takes a style as the new one only if it has the name, was not in that first list and is not published. Its description, tags and purposes are then left for `edit_style_details`, and the result says to check the style before writing to it.

| Parameter     | Type                             | Required     | Default | Description                                                                                                                  |
| ------------- | -------------------------------- | ------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `name`        | string, 1–100 chars              | yes          | -       | No line breaks or tabs.                                                                                                      |
| `templateId`  | UUID                             | one of three | -       | Template id from `list_templates`. A style id is not accepted.                                                               |
| `data`        | object                           | one of three | -       | Full style document, with `sources_list`, `map_schemes_section` and `icons_section`.                                         |
| `path`        | string                           | one of three | -       | A style JSON file with the same three sections. Local server only.                                                           |
| `description` | string, ≤ 1000 chars             | no           | -       | Description.                                                                                                                 |
| `tags`        | string[] (≤ 20, 1–16 chars each) | no           | -       | No commas; duplicates removed.                                                                                               |
| `purposes`    | enum[]                           | no           | -       | Any of `browse`, `navigation-car`, `navigation-truck`, `navigation-bike`, `navigation-pedestrian`, `satellite`, `elevation`. |

Example prompts:

- "Create a style called Night mode from the Basic 1 Modern template."
- "Duplicate my Night mode style as Night mode v2."

### `update_style`

Replaces the whole content of one of your styles. Send the complete document and the `version` you read.

- Name, description, tags and purposes are not touched; use `edit_style_details` for those.
- If the style was saved since you read it, the write is refused with a `conflict` and nothing changes.
- A save only saves. Publishing is done in Studio.

| Parameter         | Type    | Required   | Default | Description                                                          |
| ----------------- | ------- | ---------- | ------- | -------------------------------------------------------------------- |
| `id`              | UUID    | yes        | -       | Style id. Templates cannot be written.                               |
| `baseVersion`     | string  | yes        | -       | The `version` you last read, unchanged.                              |
| `data`            | object  | one of two | -       | The complete new document. Partial documents are not merged.         |
| `path`            | string  | one of two | -       | A style JSON file with the complete new document. Local server only. |
| `validateOffline` | boolean | no         | `true`  | Check the document against the style schema before sending.          |

Example prompts:

- "Make the water in my Night mode style darker and save it."
- "Download my Night mode style to a file, make the parks lighter in the file, and save it from the file."

### `edit_style_details`

Changes the name, description, tags and purposes of one of your styles. The style content is not touched.

- Only the fields you send change. Send at least one of the four.

| Parameter     | Type                             | Required     | Default | Description                                                |
| ------------- | -------------------------------- | ------------ | ------- | ---------------------------------------------------------- |
| `id`          | UUID                             | yes          | -       | Style id. Templates cannot be edited.                      |
| `baseVersion` | string                           | yes          | -       | The `version` you last read, unchanged.                    |
| `name`        | string, 1–100 chars              | at least one | -       | No line breaks or tabs.                                    |
| `description` | string, ≤ 1000 chars             | at least one | -       | `""` clears it.                                            |
| `tags`        | string[] (≤ 20, 1–16 chars each) | at least one | -       | Replaces the whole list; `[]` clears it.                   |
| `purposes`    | enum[]                           | at least one | -       | Replaces the whole list; same values as in `create_style`. |

Example prompts:

- "Rename my style Night mode to Night mode v2."
- "Tag my Night mode style with night, dark and city."

### `validate_style`

Checks a style document against the published style schema, without calling the portal, and lists every problem with its JSON path. Give exactly one source.

- The portal reports only the first problem; this tool reports all of them.
- `warnings` lists what to fix before saving. It holds the rules the schema cannot express, and filters with an empty condition list (which Studio shows as "Filter unreadable"). The rules checked:
  - layer ids go down from each layer to the next and end at 1;
  - every `group_id` and `parent_id` names a group, and no group sits inside itself;
  - every `custom_icon` names an image of the style, and image ids are unique;
  - `minzoom` is not above `maxzoom`;
  - a layer on the `satelliteExternal` source has it declared in `sources_list`.
- Each warning has the path, id and name of what it is about, a `message`, and one of three: a `fix` (a JSON Patch that does not change the map), `askUser: true` when every fix would change the map, or neither, when the `message` names the change to make.
- At most 20 warnings are listed; `warningsTruncated` counts the rest. `create_style` and `update_style` list them too after a save.
- Some shared templates have warnings, so a style made from one starts with them.
- Not checked: that `background` is the last layer, that image or font data is a real file, and image sizes. `checksNotInSchema` lists every rule the schema cannot express, checked here or not.
- Paint that Studio does not offer for a layer's type is a note (`notes`), not a problem: several shared templates have it, and Studio hides it.
- A very large document (more than 50,000 values, five times a Studio style) gets only its first problem, with a note. A font or an image counts as one value.

| Parameter     | Type          | Required     | Default | Description                                       |
| ------------- | ------------- | ------------ | ------- | ------------------------------------------------- |
| `data`        | object        | one of three | -       | The style JSON to check.                          |
| `path`        | string        | one of three | -       | A `.json` style file to check. Local server only. |
| `id`          | UUID          | one of three | -       | A style or template to fetch and check.           |
| `maxProblems` | integer 1–500 | no           | `50`    | Most problems listed; the rest are counted.       |

Example prompts:

- "Validate the style file styles/night.json and list what is wrong."
- "Check my Night mode style against the style schema."

### `get_style_reference`

Reads the style format documentation as Markdown. Without arguments it returns the short style editing essentials.

- The essentials are built into the server; the other pages come from developer.magiclane.com.
- A long page (the layer types reference) comes back as its introduction and list of headings, unless `section` is given.

| Parameter | Type                                                                                               | Required | Default              | Description                                                    |
| --------- | -------------------------------------------------------------------------------------------------- | -------- | -------------------- | -------------------------------------------------------------- |
| `page`    | `"style-essentials"` \| `"style-file-format"` \| `"map-data-sources"` \| `"layer-types-reference"` | no       | `"style-essentials"` | The page to read.                                              |
| `section` | string                                                                                             | no       | -                    | Only the sections whose heading contains this text (any case). |

Example prompts:

- "How are colours stored in a style file?"
- "Which paint properties does a symbol layer take?"

</details>

### Style resources

The same documentation is also offered as MCP resources, for clients that read them:

| URI                                      | What it holds                                                                                                                    |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `magiclane://docs/style-essentials`      | The style editing essentials, built in (about 7 KB).                                                                             |
| `magiclane://docs/style-file-format`     | The [style file format](https://developer.magiclane.com/docs/guides/map-studio/reference/style-file-format/) page (about 34 KB). |
| `magiclane://docs/map-data-sources`      | Which data a layer draws by `type` and `sourcedata_id`, and the POI categories (about 26 KB).                                    |
| `magiclane://docs/layer-types-reference` | Every layer type and the paint properties it takes (about 166 KB).                                                               |
| `magiclane://schemas/engine-style`       | The style JSON Schema that `validate_style` applies.                                                                             |
| `magiclane://studio/templates`           | The template list (same data as `list_templates`).                                                                               |

- **The essentials** are written for agents and need no network: file layout, drawing order, the data numbers of common layers, colours, text codes, icons and fonts, Studio's shared colours and the checks before saving.
- **The three full pages** are read from the website (`https://developer.magiclane.com/docs/guides/map-studio/reference/<page>.md`) when a client reads the resource or calls `get_style_reference`, cleaned of the site's page header, and kept in memory for an hour, so documentation edits reach agents without a new release. No secret key is sent. If a later download fails, the copy already in memory is served; if there is none, the read fails with the page's URL.
- **The format's traps are also said inline**, in the server instructions and in `get_style`'s `dataFormat`, because not every client reads resources:
  - colours are ABGR integers;
  - the first layer draws on top, and the background layer carries the sea colour;
  - a layer's data is its `type` plus `sourcedata_id`;
  - POI icons come from `metaCategoryID`;
  - fonts must be real TTF or OTF files;
  - Studio keeps its shared colours in a top-level `metadata` section.

## Projects and API keys

- **Toolset:** `projects` (8 tools)
- **API:** External API v1, on the developer portal
- **Credentials:** `MAGICLANE_SECRET_KEY`, with the level each tool needs (see the table). A missing level answers `insufficient_scope` and names the level to add.
- **Not possible here:** deleting or disabling projects and API keys, and reading the offline maps key, are done in the portal.

| Tool             | What it does                       | Secret key level         |
| ---------------- | ---------------------------------- | ------------------------ |
| `list_projects`  | Lists your projects                | `Projects: Read`         |
| `get_project`    | Reads one project                  | `Projects: Read`         |
| `create_project` | Creates a project                  | `Projects: Read & write` |
| `update_project` | Changes a project's settings       | `Projects: Read & write` |
| `list_api_keys`  | Lists a project's API keys, masked | `API keys: Read`         |
| `get_api_key`    | Reads one API key                  | `API keys: Read`         |
| `create_api_key` | Creates an API key in a project    | `API keys: Read & write` |
| `rename_api_key` | Renames an API key                 | `API keys: Read & write` |

**API keys are secrets.** The tools keep them out of the conversation unless you ask:

- By default a key is shown masked: `…` plus its last 4 characters.
- `revealToken: true` (local server only) puts the full key in the result. Use it only when you ask to see the key. The HTTP server never shows the full key: see it in the developer portal.
- `tokenPath` (local server only) writes the full key to a file instead, readable only by you where the system supports it.
- An existing file is replaced only with `overwrite: true`. A network path, a folder or a read-only file is refused. So is a path that starts with `~/` or `~user/`, a path through a link to something that is not there (for example a drive that is not mounted), a path the system will not look at (a name too long, a loop of links, a NUL byte), and on Windows a name longer than 255 characters or one holding `< > " | ? *` or a control character. In each case the call stops before a key is read or created.
- A new project has no API key; create one with `create_api_key`. A project can have at most 2 API keys.

<details>
<summary><strong>Project and API key tools: parameters and example prompts (8 tools, click to expand)</strong></summary>

### `list_projects`

Lists the visible projects of your account with their origins and settings. Disabled and hidden projects are not listed.

No parameters.

Example prompts:

- "List my Magic Lane projects."
- "Do I already have a project called Fleet tracker?"

### `get_project`

Reads one project: name, description, origins, `allowEmptyOrigin` and `hasOfflineMapsKey`.

| Parameter   | Type | Required | Default | Description                                           |
| ----------- | ---- | -------- | ------- | ----------------------------------------------------- |
| `projectId` | UUID | yes      | -       | Project id, from `list_projects` or `create_project`. |

Example prompts:

- "Show the settings of my Fleet tracker project."
- "Which origins can use the keys of project 6f1c…?"

### `create_project`

Creates a project. No API key is created with it.

- The offline maps key is write-only: results show only `hasOfflineMapsKey`.
- After a timeout the tool does not retry. It looks the project up by name before reporting a failure.

| Parameter          | Type                 | Required | Default | Description                                                       |
| ------------------ | -------------------- | -------- | ------- | ----------------------------------------------------------------- |
| `name`             | string, 6–64 chars   | yes      | -       | Unique in the account; no line breaks or tabs.                    |
| `description`      | string, ≤ 1000 chars | no       | -       | Free text.                                                        |
| `origins`          | string[] (≤ 100)     | no       | `[]`    | `http(s)://host[:port]`, or a wildcard such as `*.example.com`.   |
| `allowEmptyOrigin` | boolean              | no       | `true`  | Allow requests without an `Origin` header (native apps, servers). |
| `offlineMapsKey`   | string               | no       | -       | Letters, digits and `-._~`. Only for accounts with offline maps.  |

Example prompts:

- "Create a project called Fleet tracker for our delivery web app on https://fleet.example.com."
- "Create a project Mobile app demo that only accepts requests without an Origin."

### `update_project`

Changes a project. Only the fields you send change.

| Parameter          | Type                 | Required     | Default | Description                                |
| ------------------ | -------------------- | ------------ | ------- | ------------------------------------------ |
| `projectId`        | UUID                 | yes          | -       | Project id.                                |
| `name`             | string, 6–64 chars   | at least one | -       | Unique in the account.                     |
| `description`      | string, ≤ 1000 chars | at least one | -       | `""` clears it.                            |
| `origins`          | string[] (≤ 100)     | at least one | -       | Replaces the whole list; `[]` clears it.   |
| `allowEmptyOrigin` | boolean              | at least one | -       | Allow requests without an `Origin` header. |
| `offlineMapsKey`   | string               | at least one | -       | Replaces the offline maps key.             |

Example prompts:

- "Add https://app.example.com to the origins of my Fleet tracker project."
- "Stop accepting requests without an Origin on my Fleet tracker project."

### `list_api_keys`

Lists the API keys of a project, masked, with their expiry. Active and disabled keys are listed separately.

| Parameter   | Type | Required | Default | Description |
| ----------- | ---- | -------- | ------- | ----------- |
| `projectId` | UUID | yes      | -       | Project id. |

Example prompts:

- "Which API keys does my Fleet tracker project have?"
- "Are any keys of project 6f1c… expired or about to expire?"

### `get_api_key`

Reads one API key, masked unless you ask otherwise.

| Parameter     | Type    | Required | Default | Description                                                      |
| ------------- | ------- | -------- | ------- | ---------------------------------------------------------------- |
| `projectId`   | UUID    | yes      | -       | Project id.                                                      |
| `keyId`       | string  | yes      | -       | Key id from `list_api_keys` (the `id`, not the key itself).      |
| `revealToken` | boolean | no       | `false` | Put the full key in the result. Local server only.               |
| `tokenPath`   | string  | no       | -       | Write the full key to this file instead. Local server only.      |
| `overwrite`   | boolean | no       | `false` | Replace the file at `tokenPath` if it exists. Local server only. |

Example prompts:

- "Save the Production key of my Fleet tracker project to keys/fleet.txt."
- "When does the key Web staging expire?"

### `create_api_key`

Creates an API key in a project.

- The new key can be read again later with `get_api_key`.
- A project can have at most 2 API keys. With two there, the create is refused with `api_key_not_created`: free a place in the developer portal first, or put the new key in another project.
- After a timeout the tool does not retry. It looks the key up by name before reporting a failure.

| Parameter     | Type               | Required | Default        | Description                                                      |
| ------------- | ------------------ | -------- | -------------- | ---------------------------------------------------------------- |
| `projectId`   | UUID               | yes      | -              | Project id.                                                      |
| `name`        | string, 6–64 chars | yes      | -              | Unique in the project.                                           |
| `expiresAt`   | ISO 8601 date      | no       | 6 months ahead | `2027-05-01` or `2027-05-01T12:00:00Z`; at most 10 years ahead.  |
| `revealToken` | boolean            | no       | `false`        | Put the full key in the result. Local server only.               |
| `tokenPath`   | string             | no       | -              | Write the full key to this file instead. Local server only.      |
| `overwrite`   | boolean            | no       | `false`        | Replace the file at `tokenPath` if it exists. Local server only. |

Example prompts:

- "Create a key Production for my Fleet tracker project, valid until the end of 2027, and save it to keys/fleet-production.txt."
- "Create a key Web staging in project 6f1c… that expires in three months and show it to me."

### `rename_api_key`

Renames an API key. The key itself and its expiry do not change.

| Parameter   | Type               | Required | Default | Description            |
| ----------- | ------------------ | -------- | ------- | ---------------------- |
| `projectId` | UUID               | yes      | -       | Project id.            |
| `keyId`     | string             | yes      | -       | Key id.                |
| `name`      | string, 6–64 chars | yes      | -       | Unique in the project. |

Example prompts:

- "Rename the key Web staging of my Fleet tracker project to Web testing."

</details>

## Offline maps

- **Toolset:** `offline_maps` (3 tools; `download_offline_map` on the local server only)
- **API:** [Offline Maps API](https://developer.magiclane.com/docs/cloud-rest-api/guides/maps-3dscene/offline-maps-api/), at `https://api.magiclane.net/api/v1`
- **Credentials:** `MAGICLANE_OFFLINE_MAPS_API_KEY` (an application's API token) and `MAGICLANE_OFFLINE_MAPS_SECRET` (its secret), which Magic Lane support gives you ([Contact us](https://www.magiclane.com/web/contact)). They are sent only in the `Authorization` header, never in a URL and never as tool inputs. The secret key (`MAGICLANE_SECRET_KEY`) is not used and is never sent to this API.
- **Errors:** a missing token or secret answers `config`, a wrong one `key_invalid`.
- **Without them:** the three tools are not offered.

| Tool                        | What it does                               | Writes a file |
| --------------------------- | ------------------------------------------ | ------------- |
| `list_offline_map_versions` | Lists the map versions an SDK can read     | no            |
| `list_offline_maps`         | Lists the downloadable maps of one version | no            |
| `download_offline_map`      | Downloads one map file to disk             | yes           |

**The usual way to get maps:**

1. `list_offline_map_versions` to pick a version.
2. `list_offline_maps` with a filter to find the maps.
3. `download_offline_map` for the basemap, then for each map.

**Rules to keep in mind:**

- Pass the map **capability** of the SDK the maps are for. The default, `latest`, may list versions an older SDK cannot read.
- Every map on a device must have the **same map version** as its basemap. When upgrading, download the new basemap first, then every regional map again.
- All maps on a device must come from the **same catalog**. An account with a custom catalog gets it automatically; `standardCatalog: true` asks for the standard Magic Lane catalog.

<details>
<summary><strong>Offline maps tools: parameters and example prompts (3 tools, click to expand)</strong></summary>

### `list_offline_map_versions`

Lists the offline map versions an SDK of the given capability can read, newest first, and names the latest.

| Parameter         | Type                  | Required | Default    | Description                                                   |
| ----------------- | --------------------- | -------- | ---------- | ------------------------------------------------------------- |
| `capability`      | integer or `"latest"` | no       | `"latest"` | Map capability of the SDK.                                    |
| `standardCatalog` | boolean               | no       | `false`    | Use the standard catalog instead of the account's custom one. |

Example prompts:

- "Which offline map versions can an SDK with capability 15 use?"

### `list_offline_maps`

Lists the downloadable maps of one version: the world basemap and the per-country and per-state files, with content id, continent, country, state, file path and size.

- The catalog has hundreds of maps, so filter it.
- The result always counts the maps per continent, whatever the filter and limit.
- A catalog is kept in memory and used for up to 10 minutes; at most 20 catalogs are kept at once.

| Parameter          | Type                          | Required | Default    | Description                                                   |
| ------------------ | ----------------------------- | -------- | ---------- | ------------------------------------------------------------- |
| `capability`       | integer or `"latest"`         | no       | `"latest"` | Map capability of the SDK.                                    |
| `mapVersion`       | `"major.minor"` or `"latest"` | no       | `"latest"` | Map version, for example `"7.546"`.                           |
| `continent`        | string                        | no       | -          | Only this continent (any case).                               |
| `country`          | string                        | no       | -          | ISO code (`NLD`) or name (any case).                          |
| `state`            | string                        | no       | -          | Only this state or region.                                    |
| `query`            | string                        | no       | -          | Text in the country, state, continent or file name.           |
| `limit`            | integer 1–500                 | no       | `50`       | Most maps returned.                                           |
| `includeChecksums` | boolean                       | no       | `false`    | Add crc32, md5 and sha256 to each map.                        |
| `standardCatalog`  | boolean                       | no       | `false`    | Use the standard catalog instead of the account's custom one. |

Example prompts:

- "List the offline maps of Europe in the latest map version, with their sizes."
- "Which map files does Australia have?"

### `download_offline_map`

Downloads one map file to disk. Local server only. Choose the map with exactly one of `file`, `contentId` and `country`.

- Maps are large: the basemap is about 190 MB, a country up to several GB. They are never returned in the result.
- The download is written as `<path>.part` first, with a small `<path>.part.json` beside it that says which map file it holds. If the download is cancelled, stalls (no data for 60 s) or breaks, both are kept, and the same call resumes it. When the connection breaks, the answer says how many MB are kept and that calling again with the same arguments resumes.
- Only the same map file of the same version is resumed. A `.part` of another map or version is started again from the beginning.
- A `.part` or `.part.json` file that this tool did not write is never touched: the call is refused until you remove the file or give another path.
- One call at a time downloads to a path: a second call for the same path is refused while the first is running. Other paths download at the same time.
- When complete, the file is checked against the catalog's size and sha256 (or md5), then put in place. A file that fails the check is deleted. When the catalog gives neither checksum, only the size is checked and the result says so; the catalog's crc32 is not checked.
- An existing file is never replaced without `overwrite`, also when it appears while the map is downloading.
- On Windows a network or device path (`\\server\share\…`) is refused, unless it is inside a `MAGICLANE_FILES_DIR` that is itself on a network share.
- A path to an existing folder, or one that ends in `/`, saves the map in that folder under the catalog's file name; a folder that is not there yet is created. Only Windows takes `\` as a folder separator: on Linux and macOS a path that ends in a backslash is refused.
- Clients that ask for progress get progress notifications.

| Parameter         | Type                          | Required       | Default    | Description                                                   |
| ----------------- | ----------------------------- | -------------- | ---------- | ------------------------------------------------------------- |
| `mapVersion`      | `"major.minor"` or `"latest"` | yes            | -          | The version the device uses.                                  |
| `file`            | string                        | one of three   | -          | The map's `path` from `list_offline_maps`, or `"basemap"`.    |
| `contentId`       | integer                       | one of three   | -          | The map's `contentId` from `list_offline_maps`.               |
| `country`         | string                        | one of three   | -          | ISO code or name.                                             |
| `state`           | string                        | with `country` | -          | State or region, for a country split into states.             |
| `path`            | string                        | yes            | -          | File to write, or a folder to keep the catalog's file name.   |
| `overwrite`       | boolean                       | no             | `false`    | Replace an existing file.                                     |
| `capability`      | integer or `"latest"`         | no             | `"latest"` | Map capability of the SDK.                                    |
| `standardCatalog` | boolean                       | no             | `false`    | Use the standard catalog instead of the account's custom one. |

Example prompts:

- "Download the world basemap and the Netherlands map of version 7.546 to maps/."
- "Download New South Wales for capability 15, map version 7.546, into ./maps/."

</details>

---

## Troubleshooting

### Common Issues

#### Server Won't Start

```bash
# Check that the Node.js version is 22.12 or newer
node --version

# Check that the secret key is set and starts with mlsk_
# This prints neither the key nor any part of it: a terminal keeps what it shows
case "$MAGICLANE_SECRET_KEY" in mlsk_*) echo "set, a secret key" ;; "") echo "not set" ;; *) echo "set, but not a secret key" ;; esac

# Check for build errors (when running from source)
npm run build
```

The server also stops at startup, with a message that names the problem, when:

- `MAGICLANE_SECRET_KEY` does not start with `mlsk_`, or is missing while `MAGICLANE_TOOLSETS` names `styles` or `projects`, or while the offline maps token and secret are not set either
- `MAGICLANE_TOOLSETS` has a name it does not know. The message quotes a name of up to 24 letters, digits, `_`, `.` or `-`, and toolset names joined by something other than a comma (such as `styles;projects`). Any other name, a secret key pasted there by mistake among them, is given only by its length
- only one of `MAGICLANE_OFFLINE_MAPS_API_KEY` and `MAGICLANE_OFFLINE_MAPS_SECRET` is set, or `MAGICLANE_TOOLSETS` names `offline_maps` without them
- `MAGICLANE_FILES_DIR` names no folder that exists

#### Key Issues

- Ensure your secret key is valid and active in the [Magic Lane Dashboard](https://developer.magiclane.com/api/dashboard), under **CLI & Access**
- Verify the environment variable is correctly set: `MAGICLANE_SECRET_KEY=mlsk_your_key`
- Check for extra spaces or quotes in the key
- For the offline maps tools, set both `MAGICLANE_OFFLINE_MAPS_API_KEY` (the application's API token) and `MAGICLANE_OFFLINE_MAPS_SECRET` (its secret)
- The portal counts requests with a missing, invalid or revoked key and, past its limit, answers them with `too_many_failed_attempts` for a while. A valid key is never refused by that limit, so fix the key rather than wait

#### Missing Tools

- A toolset left out of `MAGICLANE_TOOLSETS` is not offered at all
- The offline maps tools are offered only when their token and secret are set
- `download_offline_map` and the `path` / `tokenPath` inputs exist on the local (stdio) server only

#### Connection Problems

- Verify your MCP client configuration matches the server path
- Ensure the server is running before connecting the client
- Check firewall settings if using remote connections
- Set `VERBOSE=true` to see a line for every tool call and its result in the client's MCP log

#### Rate Limiting

- The portal allows 120 reads and 30 writes per minute per account, across all its keys
- The server paces itself below those limits and waits out a short `429` once; a longer wait comes back as an error with `retry_after_seconds`

### Common Error Messages

Every tool error is JSON with `error` (a sentence that says what went wrong), `status_code` and `code`, and where it helps `details`, `retry_after_seconds`, `request_id` and `current_version`.

- **Unauthorized (401, `key_invalid` / `key_expired`)**: Invalid or expired secret key. Check your configuration.
- **Forbidden (403, `insufficient_scope`)**: The secret key lacks the level the tool needs; the message names the level to add.
- **Not found (404, `style_not_found` / `project_not_found` / `api_key_not_found`)**: The id does not exist in your account. List the items again.
- **Conflict (409, `conflict`)**: The style was saved since you read it. Read it again and retry with the new `version`.
- **Too many requests (429, `rate_limited`)**: Rate limit exceeded. Wait the time given in `retry_after_seconds`.
- **Bad request (400, `validation` / `invalid_parameter`)**: Invalid parameters. Check your input format.
- **`api_key_not_created`**: The key service refused the create or failed. The usual reason is that the project already has 2 API keys, the most a project can have: list them with `list_api_keys`, and free a place in the developer portal or use another project. With fewer keys the key service failed: try again later.
- **Offline maps (`config` / `key_invalid`)**: The API token or its secret is missing or was rejected. Check `MAGICLANE_OFFLINE_MAPS_API_KEY` and `MAGICLANE_OFFLINE_MAPS_SECRET`.
- **Offline maps (`integrity` / `cancelled`)**: A downloaded map did not match its catalog checksum and was deleted, or the download was cancelled and its `.part` file was kept for resuming.
- **`network` / `timeout`**: The service could not be reached or did not answer in time. A read can be tried again later. A create or a save may have been carried out all the same: the tool then looks for the item or reads the style back, and its answer says what it found. Follow that answer, and after a create list the items (`list_styles`, `list_projects`, `list_api_keys`) before creating again.
- **`non_json`**: The answer was not JSON. With a 5xx status the service is down or being updated: try a read again later, and treat a create or a save as above, since it may have been carried out. With a 4xx status a web server or proxy in front of the portal refused the request, and trying again unchanged will not help. A 429 or a 408 from such a server is reported as `rate_limited` or `timeout` instead.
- **`result_mismatch`**: The call completed, but its result does not match the tool's output schema; the result is in `details.result`. For a tool that changes something, the change was made: do not repeat it.

## Development

To build, test or change the server, clone the repository:

```bash
npm install
npm run build
npm test            # the unit tests need no key and no network
npm run check       # types, lint, format, spelling and tests with coverage
npm run inspect:dev # the MCP Inspector against the server from source
```

[CONTRIBUTING.md](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/CONTRIBUTING.md) has the commands, the tests and how to propose a change. Report a security problem as [SECURITY.md](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/SECURITY.md) says, not in an issue.

## Privacy Policy

Magic Lane is committed to protecting your privacy and handling your data responsibly. For complete privacy information, [See our Full Privacy Policy.](https://www.magiclane.com/web/terms-and-conditions#privacy)

### Data Collection

- **Your account data**: This server works on resources of your own Magic Lane account. The styles, projects and API keys you read, create or change through it are sent to and stored by the Magic Lane developer portal, as they are when you use the portal or Studio yourself.
- **Secret key**: Your secret key is sent with every portal request, solely for authentication. It is read from the environment, is never a tool input and is never written to the server's logs.
- **Offline maps credentials**: The API token and its secret are sent only to the Offline Maps API, in the `Authorization` header.
- **Documentation requests**: The style reference pages are read from the public developer website without any key.

### How Data Is Used

- Requests are made only when a tool is called, to carry out that call.
- The server keeps no database. It holds the style reference pages for an hour and up to 20 offline maps catalogs, each used for at most ten minutes, in memory only.
- API keys are masked in results unless you ask to see one.

### Data Storage & Retention

- The server writes a file to your computer only when you give a tool a path: a downloaded style, an API key or an offline map.
- With `VERBOSE=true` the server logs each tool call with summarized arguments to its standard error output; secret inputs are masked and request bodies are not logged.
- What the developer portal and the Offline Maps API retain is described in the privacy policy linked above.

### Third-Party Data

- The server contacts Magic Lane services only: the developer portal, the developer website and the Offline Maps API.
- Your AI client and its model provider see the tool inputs and results that pass through the conversation, under their own terms.

For detailed information, review our [Terms of Service](https://www.magiclane.com/web/terms-and-conditions) and [Privacy Policy](https://www.magiclane.com/web/terms-and-conditions#privacy).

---

## Support

- **Documentation**: [developer.magiclane.com/docs](https://developer.magiclane.com/docs)
- **API Dashboard**: [developer.magiclane.com/api/dashboard](https://developer.magiclane.com/api/dashboard)
- **GitHub Issues**: [github.com/magiclane/magiclane-mcp-devkit-server/issues](https://github.com/magiclane/magiclane-mcp-devkit-server/issues)
- **Developer Portal Support**: [Contact Magic Lane](https://www.magiclane.com/web/contact)

## License

Copyright 2026 Magic Lane International B.V. Licensed under the [Apache License, Version 2.0](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/LICENSE). [`REUSE.toml`](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/REUSE.toml) gives the license of every file, third-party content included, such as the Cursor interface in a screenshot. The Magic Lane name, logo and icon are trademarks of Magic Lane International B.V. and are not licensed under Apache-2.0; see [`LICENSES/LicenseRef-MagicLane-Trademark.txt`](https://github.com/magiclane/magiclane-mcp-devkit-server/blob/HEAD/LICENSES/LicenseRef-MagicLane-Trademark.txt).

TDQS

A4.4/5.0

Scored across 17 tools

Disambiguation4/5

Most tools target a clearly distinct resource+action (list/get/create/update per resource). The only mild overlaps are get_style vs download_style (both fetch style content, differing only in output medium) and update_style vs edit_style_details, but the descriptions clearly delimit content vs metadata, so an agent can choose correctly.

Naming Consistency5/5

Every tool follows a consistent verb_noun snake_case pattern grouped by resource (style, project, api_key), e.g. list_styles, create_project, rename_api_key. The only variation (edit_style_details) is still readable and predictable within the convention.

Tool Count4/5

17 tools sits at the upper end but is justified: it cleanly spans three related domains (styles, projects, API keys) with proportionate operations each. No redundant tools inflate the count; slightly heavy but well-scoped.

Completeness4/5

Read/list/create/update coverage exists for styles, projects, templates, and API keys, with the documented omissions (delete, disable, publish, preview) explicitly delegated to the developer portal, so agents are not left guessing. These are real but clearly-signposted gaps that agents can work around.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues