Dominik Jain f3cc6d0d72 🎉 Add MCP version mismatch detection
If the MCP version (as given in mcp/package.json) does not match
the Penpot version (as given by penpot.version), display a warning
message in the plugin UI.

This is important for users running the local MCP server, as it
is a common failure mode to combine the MCP server with an
incompatible Penpot version.
2026-03-31 12:15:12 +02:00

22 lines
426 B
TypeScript

import "@penpot/plugin-types";
declare module "@penpot/plugin-types" {
interface Penpot {
/** The Penpot application version string. */
version: string;
}
}
interface McpOptions {
getToken(): string;
getServerUrl(): string;
setMcpStatus(status: string);
on(eventType: "disconnect" | "connect", cb: () => void);
}
declare global {
const mcp: undefined | McpOptions;
}
export {};