Skip to content

Commit 4b443dc

Browse files
chore(release): bump to 0.5.1 — security dep upgrades
- Upgrade @mcp-ui/server ^5.13.1 → ^6.1.0 (security advisory); update tests for mimeType change (text/uri-list → text/html;profile=mcp-app) - Upgrade @modelcontextprotocol/sdk ^1.26.0 → ^1.27.1 (security advisory); regenerated output-validation patch for new version Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 60edd79 commit 4b443dc

10 files changed

Lines changed: 184 additions & 88 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## Unreleased
22

3+
## 0.5.1 - 2026-03-04
4+
5+
### Dependencies
6+
7+
- Upgrade `@mcp-ui/server` from `^5.13.1` to `^6.1.0` (security advisory); update tests for mimeType change (`text/uri-list``text/html;profile=mcp-app`)
8+
- Upgrade `@modelcontextprotocol/sdk` from `^1.26.0` to `^1.27.1` (security advisory); regenerated output-validation patch for new version
9+
310
## 0.5.0 - 2026-02-24
411

512
### Features Added

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"dxt_version": "0.1",
33
"name": "@mapbox/mcp-devkit-server",
44
"display_name": "Mapbox MCP DevKit Server",
5-
"version": "0.5.0",
5+
"version": "0.5.1",
66
"description": "Mapbox MCP devkit server",
77
"author": {
88
"name": "Mapbox, Inc."

package-lock.json

Lines changed: 133 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mapbox/mcp-devkit-server",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "Mapbox MCP devkit server",
55
"mcpName": "io.github.mapbox/mcp-devkit-server",
66
"main": "./dist/commonjs/index.js",
@@ -49,9 +49,9 @@
4949
"mcp"
5050
],
5151
"dependencies": {
52-
"@mcp-ui/server": "^5.13.1",
52+
"@mcp-ui/server": "^6.1.0",
5353
"@modelcontextprotocol/ext-apps": "^1.0.1",
54-
"@modelcontextprotocol/sdk": "^1.26.0",
54+
"@modelcontextprotocol/sdk": "^1.27.1",
5555
"@opentelemetry/api": "^1.9.0",
5656
"@opentelemetry/auto-instrumentations-node": "^0.56.0",
5757
"@opentelemetry/exporter-trace-otlp-http": "^0.56.0",
@@ -78,13 +78,13 @@
7878
"globals": "^16.3.0",
7979
"husky": "^9.0.0",
8080
"lint-staged": "^16.1.0",
81+
"patch-package": "^8.0.1",
8182
"plop": "^4.0.1",
8283
"prettier": "^3.0.0",
8384
"tshy": "^3.0.2",
8485
"typescript": "^5.8.3",
8586
"typescript-eslint": "^8.42.0",
86-
"vitest": "^3.2.4",
87-
"patch-package": "^8.0.1"
87+
"vitest": "^3.2.4"
8888
},
8989
"prettier": {
9090
"singleQuote": true,

patches/@modelcontextprotocol+sdk+1.26.0.patch

Lines changed: 0 additions & 66 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
diff --git a/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js b/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
2+
index 23639ce..7b8a325 100644
3+
--- a/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
4+
+++ b/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
5+
@@ -194,15 +194,20 @@ export class McpServer {
6+
return;
7+
}
8+
if (!result.structuredContent) {
9+
- throw new McpError(ErrorCode.InvalidParams, `Output validation error: Tool ${toolName} has an output schema but no structured content was provided`);
10+
+ // Log warning but don't throw - allow tools to omit structured content
11+
+ console.warn(`[MCP SDK Patch] Output validation warning: Tool ${toolName} has an output schema but no structured content was provided`);
12+
}
13+
- // if the tool has an output schema, validate structured content
14+
- const outputObj = normalizeObjectSchema(tool.outputSchema);
15+
- const parseResult = await safeParseAsync(outputObj, result.structuredContent);
16+
- if (!parseResult.success) {
17+
- const error = 'error' in parseResult ? parseResult.error : 'Unknown error';
18+
- const errorMessage = getParseErrorMessage(error);
19+
- throw new McpError(ErrorCode.InvalidParams, `Output validation error: Invalid structured content for tool ${toolName}: ${errorMessage}`);
20+
+ else {
21+
+ // if the tool has an output schema, validate structured content
22+
+ const outputObj = normalizeObjectSchema(tool.outputSchema);
23+
+ const parseResult = await safeParseAsync(outputObj, result.structuredContent);
24+
+ if (!parseResult.success) {
25+
+ const error = 'error' in parseResult ? parseResult.error : 'Unknown error';
26+
+ const errorMessage = getParseErrorMessage(error);
27+
+ // Log warning but don't throw - allow schema mismatches
28+
+ console.warn(`[MCP SDK Patch] Output validation warning: Invalid structured content for tool ${toolName}: ${errorMessage}`);
29+
+ // Keep the structuredContent despite validation failure
30+
+ }
31+
}
32+
}
33+
/**

server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"url": "https://github.com/mapbox/mcp-devkit-server",
77
"source": "github"
88
},
9-
"version": "0.5.0",
9+
"version": "0.5.1",
1010
"packages": [
1111
{
1212
"registryType": "npm",
1313
"registryBaseUrl": "https://registry.npmjs.org",
1414
"runtimeHint": "npx",
15-
"version": "0.5.0",
15+
"version": "0.5.1",
1616
"identifier": "@mapbox/mcp-devkit-server",
1717
"transport": {
1818
"type": "stdio"

test/tools/geojson-preview-tool/GeojsonPreviewTool.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('GeojsonPreviewTool', () => {
4949
type: 'resource',
5050
resource: {
5151
uri: expect.stringMatching(/^ui:\/\/mapbox\/geojson-preview\//),
52-
mimeType: 'text/uri-list',
52+
mimeType: 'text/html;profile=mcp-app',
5353
text: expect.stringMatching(/^https:\/\//)
5454
}
5555
});

test/tools/preview-style-tool/PreviewStyleTool.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ describe('PreviewStyleTool', () => {
164164
type: 'resource',
165165
resource: {
166166
uri: expect.stringMatching(/^ui:\/\/mapbox\/preview-style\//),
167-
mimeType: 'text/uri-list',
167+
mimeType: 'text/html;profile=mcp-app',
168168
text: expect.stringContaining(
169169
'https://api.mapbox.com/styles/v1/test-user/test-style.html?access_token=pk.'
170170
)

test/tools/style-comparison-tool/StyleComparisonTool.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('StyleComparisonTool', () => {
4242
uri: expect.stringMatching(
4343
/^ui:\/\/mapbox\/style-comparison\/mapbox\/streets-v12\/mapbox\/outdoors-v12$/
4444
),
45-
mimeType: 'text/uri-list',
45+
mimeType: 'text/html;profile=mcp-app',
4646
text: expect.stringContaining(
4747
'https://agent.mapbox.com/tools/style-compare'
4848
)

0 commit comments

Comments
 (0)