Skip to content

Commit 5b9ca54

Browse files
committed
dxt patching
1 parent 72eba28 commit 5b9ca54

5 files changed

Lines changed: 38 additions & 13 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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,24 @@ If you want to use a local version (need to clone and build from this repo):
9494
}
9595
```
9696

97+
## DXT Installation (Alternative)
98+
99+
As an alternative to manual configuration, Claude Desktop users can install this MCP server using a pre-built DXT package:
100+
101+
**⚠️ Important: Make sure you have the latest version of Claude Desktop installed. DXT support requires recent versions of Claude Desktop to function properly.**
102+
103+
**[📦 Download DXT Package](https://github.com/mapbox/mcp-devkit-server/releases/latest/download/mcp-devkit-server.dxt)**
104+
105+
### Installation Steps
106+
107+
1. **Update Claude Desktop** - [Download the latest version](https://claude.ai/download) if you haven't recently
108+
2. Download the `.dxt` file from the link above
109+
3. Open the file with Claude Desktop
110+
4. Follow the installation prompts
111+
5. Provide your Mapbox access token when prompted
112+
113+
This method automatically handles the configuration and setup, making it easier for users who prefer a one-click installation experience.
114+
97115
## Usage Examples
98116

99117
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)