Skip to content

Commit 5d8e23c

Browse files
committed
refactor: extract app MIME type shared constant
1 parent 9db93b1 commit 5d8e23c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/mcp/resources/update_environment_ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { resource } from "../resource";
22
import * as path from "path";
33
import * as fs from "fs/promises";
44

5-
export const RESOURCE_MIME_TYPE = "application/vnd.mcp.ext-app+html";
5+
import { RESOURCE_MIME_TYPE } from "../util";
66
const resourceUri = "ui://core/update_environment/mcp-app.html";
77

88
export const update_environment_ui = resource(

src/mcp/util.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,3 +326,5 @@ export function cleanSchema(schema: Record<string, any>): Record<string, any> {
326326
const result = deepClean(schema, true); // Pass true for isRootLevel
327327
return result === null ? {} : result;
328328
}
329+
330+
export const RESOURCE_MIME_TYPE = "application/vnd.mcp.ext-app+html";

0 commit comments

Comments
 (0)