Skip to content

Commit ef10091

Browse files
authored
Merge pull request #5 from mapbox/dxt-patch
DXT package patch
2 parents 72eba28 + 9e9ed1e commit ef10091

5 files changed

Lines changed: 47 additions & 16 deletions

File tree

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ npx @anthropic-ai/dxt pack
3232

3333
This will generate `mcp-devkit-server.dxt` using the configuration in `manifest.json`.
3434

35-
### Installing the DXT Package
36-
37-
Users can install the DXT package by:
38-
39-
1. Opening the `.dxt` file with a compatible application (e.g., Claude Desktop)
40-
2. Following the installation prompts
41-
3. Providing their Mapbox access token when prompted
42-
4335
The DXT package includes:
4436

4537
- Pre-built server code (`dist/index.js`)

docs/claude-desktop-integration.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,33 @@ See the [Token Requirements](#token-requirements) section below for detailed sco
3636

3737
### Configure Claude Desktop
3838

39+
## Option 1: DXT Package Installation (Recommended)
40+
41+
The easiest way to install this MCP server is using the pre-built DXT package:
42+
43+
**⚠️ Important: Make sure you have the latest version of Claude Desktop installed. DXT support requires recent versions of Claude Desktop to function properly.**
44+
45+
**[📦 Download DXT Package](https://github.com/mapbox/mcp-devkit-server/releases/latest/download/mcp-devkit-server.dxt)**
46+
47+
### Installation Steps
48+
49+
1. **Update Claude Desktop** - [Download the latest version](https://claude.ai/download) if you haven't recently
50+
2. Download the `.dxt` file from the link above
51+
3. Open the file with Claude Desktop
52+
4. Follow the installation prompts
53+
5. Provide your Mapbox access token when prompted
54+
55+
This method automatically handles the configuration and setup, providing a one-click installation experience.
56+
57+
## Option 2: Manual Configuration
58+
59+
For users who prefer manual configuration or need custom setups, you can configure the server directly:
60+
3961
1. Open Claude Desktop settings
4062
2. Navigate to the Model Context Protocol section
4163
3. Modify `claude_desktop_config.json` to add the new server:
4264

43-
#### Option 1: NPM Package (Recommended)
65+
### NPM Package
4466

4567
```json
4668
{
@@ -56,7 +78,7 @@ See the [Token Requirements](#token-requirements) section below for detailed sco
5678
}
5779
```
5880

59-
#### Option 2: Docker Runtime
81+
### Docker Runtime
6082

6183
```json
6284
{
@@ -76,7 +98,7 @@ See the [Token Requirements](#token-requirements) section below for detailed sco
7698
}
7799
```
78100

79-
#### Option 3: Local Development
101+
### Local Development
80102

81103
If you want to use a local version (need to clone and build from this repo):
82104

@@ -94,6 +116,8 @@ If you want to use a local version (need to clone and build from this repo):
94116
}
95117
```
96118

119+
**⚠️ Important: Make sure you have the latest version of Claude Desktop installed. DXT support requires recent versions of Claude Desktop to function properly.**
120+
97121
## Usage Examples
98122

99123
Once configured, you can use natural language to interact with Mapbox development tools:

manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"dxt_version": "0.1",
33
"name": "@mapbox/mcp-devkit-server",
4-
"display_name": "Mapbox MCP Server",
5-
"version": "0.2.1",
4+
"display_name": "Mapbox MCP DevKit Server",
5+
"version": "0.2.3",
66
"description": "Mapbox MCP devkit server",
77
"author": {
88
"name": "Mapbox, Inc."
@@ -16,7 +16,7 @@
1616
"${__dirname}/dist/index.js"
1717
],
1818
"env": {
19-
"MAPBOX_ACCESS_TOKEN" : "${user_config.MAPBOX_ACCESS_TOKEN}"
19+
"MAPBOX_ACCESS_TOKEN": "${user_config.MAPBOX_ACCESS_TOKEN}"
2020
}
2121
}
2222
},

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mapbox/mcp-devkit-server",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "Mapbox MCP devkit server",
55
"main": "dist/index.js",
66
"module": "dist/index-esm.js",
@@ -17,10 +17,11 @@
1717
"format:fix": "prettier --write \"./src/**/*.{ts,tsx,js,json,md}\"",
1818
"prepare": "husky && node .husky/setup-hooks.js",
1919
"test": "jest",
20-
"build": "npm run prepare && npm run build:esm && npm run build:cjs && npm run generate-version && node scripts/build-helpers.cjs copy-json && node scripts/add-shebang.cjs",
20+
"build": "npm run prepare && npm run sync-manifest-version && npm run build:esm && npm run build:cjs && npm run generate-version && node scripts/build-helpers.cjs copy-json && node scripts/add-shebang.cjs",
2121
"build:esm": "node scripts/build-helpers.cjs esm-package && tsc -p tsconfig.json",
2222
"build:cjs": "node scripts/build-helpers.cjs cjs-package && tsc -p tsconfig.json",
2323
"generate-version": "node scripts/build-helpers.cjs generate-version",
24+
"sync-manifest-version": "node scripts/build-helpers.cjs sync-manifest-version",
2425
"dev": "tsc -p tsconfig.json --watch"
2526
},
2627
"lint-staged": {

scripts/build-helpers.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ function generateVersion() {
4242
fs.writeFileSync('dist/version.json', JSON.stringify(versionInfo, null, 2));
4343
}
4444

45+
// Sync version from package.json to manifest.json
46+
function syncManifestVersion() {
47+
const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf8'));
48+
const manifestJson = JSON.parse(fs.readFileSync('manifest.json', 'utf8'));
49+
50+
manifestJson.version = packageJson.version;
51+
52+
fs.writeFileSync('manifest.json', JSON.stringify(manifestJson, null, 2) + '\n');
53+
console.log(`Synced version ${packageJson.version} from package.json to manifest.json`);
54+
}
55+
4556
// Copy JSON files to dist
4657
function copyJsonFiles() {
4758
const srcDir = 'src';
@@ -79,6 +90,9 @@ switch (command) {
7990
case 'generate-version':
8091
generateVersion();
8192
break;
93+
case 'sync-manifest-version':
94+
syncManifestVersion();
95+
break;
8296
case 'copy-json':
8397
copyJsonFiles();
8498
break;

0 commit comments

Comments
 (0)