Skip to content

Commit 1ab3861

Browse files
committed
rename
1 parent eedf28d commit 1ab3861

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

src/spec.types.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -550,36 +550,36 @@ export interface McpUiToolMeta {
550550
}
551551

552552
/**
553-
* Method string constants for MCP UI protocol messages.
553+
* Method string constants for MCP Apps protocol messages.
554554
*
555555
* These constants provide a type-safe way to check message methods without
556556
* accessing internal Zod schema properties. External libraries should use
557557
* these constants instead of accessing `schema.shape.method._def.values[0]`.
558558
*
559559
* @example
560560
* ```typescript
561-
* import { MCP_UI_SANDBOX_PROXY_READY_METHOD } from '@modelcontextprotocol/ext-apps';
561+
* import { SANDBOX_PROXY_READY_METHOD } from '@modelcontextprotocol/ext-apps';
562562
*
563-
* if (event.data.method === MCP_UI_SANDBOX_PROXY_READY_METHOD) {
563+
* if (event.data.method === SANDBOX_PROXY_READY_METHOD) {
564564
* // Handle sandbox proxy ready notification
565565
* }
566566
* ```
567567
*/
568-
export const MCP_UI_OPEN_LINK_METHOD = "ui/open-link";
569-
export const MCP_UI_MESSAGE_METHOD = "ui/message";
570-
export const MCP_UI_SANDBOX_PROXY_READY_METHOD =
568+
export const OPEN_LINK_METHOD = "ui/open-link";
569+
export const MESSAGE_METHOD = "ui/message";
570+
export const SANDBOX_PROXY_READY_METHOD =
571571
"ui/notifications/sandbox-proxy-ready";
572-
export const MCP_UI_SANDBOX_RESOURCE_READY_METHOD =
572+
export const SANDBOX_RESOURCE_READY_METHOD =
573573
"ui/notifications/sandbox-resource-ready";
574-
export const MCP_UI_SIZE_CHANGED_METHOD = "ui/notifications/size-changed";
575-
export const MCP_UI_TOOL_INPUT_METHOD = "ui/notifications/tool-input";
576-
export const MCP_UI_TOOL_INPUT_PARTIAL_METHOD =
574+
export const SIZE_CHANGED_METHOD = "ui/notifications/size-changed";
575+
export const TOOL_INPUT_METHOD = "ui/notifications/tool-input";
576+
export const TOOL_INPUT_PARTIAL_METHOD =
577577
"ui/notifications/tool-input-partial";
578-
export const MCP_UI_TOOL_RESULT_METHOD = "ui/notifications/tool-result";
579-
export const MCP_UI_TOOL_CANCELLED_METHOD = "ui/notifications/tool-cancelled";
580-
export const MCP_UI_HOST_CONTEXT_CHANGED_METHOD =
578+
export const TOOL_RESULT_METHOD = "ui/notifications/tool-result";
579+
export const TOOL_CANCELLED_METHOD = "ui/notifications/tool-cancelled";
580+
export const HOST_CONTEXT_CHANGED_METHOD =
581581
"ui/notifications/host-context-changed";
582-
export const MCP_UI_RESOURCE_TEARDOWN_METHOD = "ui/resource-teardown";
583-
export const MCP_UI_INITIALIZE_METHOD = "ui/initialize";
584-
export const MCP_UI_INITIALIZED_METHOD = "ui/notifications/initialized";
585-
export const MCP_UI_REQUEST_DISPLAY_MODE_METHOD = "ui/request-display-mode";
582+
export const RESOURCE_TEARDOWN_METHOD = "ui/resource-teardown";
583+
export const INITIALIZE_METHOD = "ui/initialize";
584+
export const INITIALIZED_METHOD = "ui/notifications/initialized";
585+
export const REQUEST_DISPLAY_MODE_METHOD = "ui/request-display-mode";

src/types.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
// Re-export all types from spec.types.ts
1313
export {
1414
LATEST_PROTOCOL_VERSION,
15-
MCP_UI_OPEN_LINK_METHOD,
16-
MCP_UI_MESSAGE_METHOD,
17-
MCP_UI_SANDBOX_PROXY_READY_METHOD,
18-
MCP_UI_SANDBOX_RESOURCE_READY_METHOD,
19-
MCP_UI_SIZE_CHANGED_METHOD,
20-
MCP_UI_TOOL_INPUT_METHOD,
21-
MCP_UI_TOOL_INPUT_PARTIAL_METHOD,
22-
MCP_UI_TOOL_RESULT_METHOD,
23-
MCP_UI_TOOL_CANCELLED_METHOD,
24-
MCP_UI_HOST_CONTEXT_CHANGED_METHOD,
25-
MCP_UI_RESOURCE_TEARDOWN_METHOD,
26-
MCP_UI_INITIALIZE_METHOD,
27-
MCP_UI_INITIALIZED_METHOD,
28-
MCP_UI_REQUEST_DISPLAY_MODE_METHOD,
15+
OPEN_LINK_METHOD,
16+
MESSAGE_METHOD,
17+
SANDBOX_PROXY_READY_METHOD,
18+
SANDBOX_RESOURCE_READY_METHOD,
19+
SIZE_CHANGED_METHOD,
20+
TOOL_INPUT_METHOD,
21+
TOOL_INPUT_PARTIAL_METHOD,
22+
TOOL_RESULT_METHOD,
23+
TOOL_CANCELLED_METHOD,
24+
HOST_CONTEXT_CHANGED_METHOD,
25+
RESOURCE_TEARDOWN_METHOD,
26+
INITIALIZE_METHOD,
27+
INITIALIZED_METHOD,
28+
REQUEST_DISPLAY_MODE_METHOD,
2929
type McpUiTheme,
3030
type McpUiDisplayMode,
3131
type McpUiStyleVariableKey,

0 commit comments

Comments
 (0)