mirror of
https://github.com/penpot/penpot.git
synced 2026-03-21 09:53:29 +00:00
Original repository: https://github.com/penpot/penpot-mcp Imported commit: fcfa67e908fc54e23a3a3543dee432472dc90c5d
27 lines
927 B
TypeScript
27 lines
927 B
TypeScript
import { EmptyToolArgs, Tool } from "../Tool";
|
|
import "reflect-metadata";
|
|
import type { ToolResponse } from "../ToolResponse";
|
|
import { TextResponse } from "../ToolResponse";
|
|
import { PenpotMcpServer } from "../PenpotMcpServer";
|
|
|
|
export class HighLevelOverviewTool extends Tool<EmptyToolArgs> {
|
|
constructor(mcpServer: PenpotMcpServer) {
|
|
super(mcpServer, EmptyToolArgs.schema);
|
|
}
|
|
|
|
public getToolName(): string {
|
|
return "high_level_overview";
|
|
}
|
|
|
|
public getToolDescription(): string {
|
|
return (
|
|
"Returns basic high-level instructions on the usage of Penpot-related tools and the Penpot API. " +
|
|
"If you have already read the 'Penpot High-Level Overview', you must not call this tool."
|
|
);
|
|
}
|
|
|
|
protected async executeCore(args: EmptyToolArgs): Promise<ToolResponse> {
|
|
return new TextResponse(this.mcpServer.getInitialInstructions());
|
|
}
|
|
}
|