mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 20:58:06 +00:00
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.
22 lines
426 B
TypeScript
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 {};
|