mcp-devkit-server: Instructions file for Claude Code

CLAUDE.md

mcp-devkit-server CLAUDE.md is an instructions file for Claude Code from mapbox/mcp-devkit-server. It costs 1,641 tokens per session, scanned A, original, MIT.

A project guide for a Node.js and TypeScript server that lets AI agents use Mapbox services for maps, locations, and geographic data.

In plain words
What is it for?
Use it when adding or changing server tools, prompts, map-related workflows, configuration, tests, or Mapbox authentication.
Why use it?
It gives coding agents the project’s structure, design rules, tools, and required setup so they can make informed changes without first piecing everything together.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is mapbox/mcp-devkit-server's own configuration. It tells Claude Code how to work on mcp-devkit-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-devkit-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mapbox/mcp-devkit-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mapbox/mcp-devkit-server/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/mapbox/mcp-devkit-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-devkit-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mapbox/mcp-devkit-server/claude-md/github.svg)](https://agentmods.dev/instructions/mapbox/mcp-devkit-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mapbox/mcp-devkit-server/claude-md"><img src="https://agentmods.dev/badge/instructions/mapbox/mcp-devkit-server/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-devkit-server CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mapbox/mcp-devkit-server/claude-md"><img src="https://agentmods.dev/badge/instructions/mapbox/mcp-devkit-server/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,641 This file is loaded in full into every session.
When invoked 1,641 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01641 $0.01641
Opus 5.5 $0.00656 $0.00656
Sonnet 5.5 $0.00328 $0.00328
Haiku 4.5 $0.00164 $0.00164

Measured 10d ago against content hash c233ce1e7f98, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-devkit-server CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md — Mapbox MCP DevKit Server

Overview

This is an MCP (Model Context Protocol) server providing "geospatial intelligence capabilities through Mapbox APIs" for AI agents, enabling map styling, GeoJSON visualization, token management, and geocoding.

Tech Stack

  • Runtime: Node.js 22+ LTS
  • Language: TypeScript (strict mode)
  • Testing: Vitest
  • Package Manager: npm

Project Structure

The codebase organizes into:

  • src/index.ts - Main entry point with .env loading and server initialization
  • src/config/toolConfig.ts - Configuration parser for tool filtering and MCP-UI toggles
  • src/tools/ - MCP tool implementations with BaseTool abstract class and registry
  • src/prompts/ - MCP prompt implementations with BasePrompt abstract class and registry
  • src/resources/ - Static reference data (style specs, token scopes, Streets v8 fields)
  • src/utils/ - HTTP pipeline, JWT parsing, tracing, and version utilities
  • skills/ - Agent Skills providing domain expertise (cartography, security, style patterns)

Key Architectural Patterns

Tool Architecture: All tools extend BaseTool<InputSchema, OutputSchema> or MapboxApiBasedTool<InputSchema, OutputSchema>. Tools auto-validate inputs and outputs using Zod schemas. Each tool lives in src/tools/tool-name-tool/ with separate *.input.schema.ts, *.output.schema.ts, and *.ts files.

Prompt Architecture: All prompts extend BasePrompt abstract class. Prompts orchestrate multi-step workflows, guiding AI assistants through complex tasks with best practices built-in. Each prompt lives in src/prompts/ with separate files per prompt (e.g., CreateAndPreviewStylePrompt.ts). Prompts use kebab-case naming (e.g., create-and-preview-style).

HTTP Pipeline System: "Never patch global.fetch—use HttpPipeline with dependency injection instead." The HttpPipeline class applies policies (User-Agent, retry logic) via a chain-of-responsibility pattern. See src/utils/httpPipeline.ts:20.

Read the full file on GitHub · 137 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · +9 tokens per session c233ce1e7f98
  2. 2mo ago First seen · 137 lines · 1,632 tokens per session scan A f542f9d7e28e

Subscribe to this mod's changes

mcp-devkit-server CLAUDE.md is an instructions file published in the GitHub repository mapbox/mcp-devkit-server (62 stars, last pushed yesterday), licensed MIT. It adds 1,641 tokens to every session, about $0.0066 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mcp-devkit-server CLAUDE.md compared with instructions from other repositories

mcp-devkit-server CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-devkit-server CLAUDE.mdmapbox/mcp-devkit-serverInstructions file62yesterdayMITA1,641Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode