Skip to content

Commit 90d094b

Browse files
fix(MK8S-196): remove duplicate Navigator.modelContext declaration
1 parent d501b2b commit 90d094b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

shell-ui/src/mcp/types.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,3 @@ export type MCPToolDefinition<
5858
client: ModelContextClient,
5959
) => Promise<unknown>;
6060
};
61-
62-
// Ambient type augmentation for navigator.modelContext (WebMCP API)
63-
declare global {
64-
interface Navigator {
65-
modelContext?: {
66-
registerTool(def: {
67-
name: string;
68-
description: string;
69-
inputSchema: Record<string, unknown>;
70-
execute: (params: unknown, client: ModelContextClient) => Promise<unknown>;
71-
}): void;
72-
unregisterTool?(name: string): void;
73-
};
74-
}
75-
}

0 commit comments

Comments
 (0)