mirror of
https://github.com/penpot/penpot-mcp.git
synced 2026-04-25 11:18:37 +00:00
ExecuteCodeTool: Remove redundant preamble for success results
This commit is contained in:
parent
6c6204806f
commit
e3a9771f9c
@ -65,7 +65,7 @@ export class ExecuteCodeTool extends Tool<ExecuteCodeArgs> {
|
||||
const result = await this.mcpServer.pluginBridge.executePluginTask(task);
|
||||
|
||||
if (result.data !== undefined) {
|
||||
return new TextResponse(`Code executed successfully. Result: ${JSON.stringify(result.data, null, 2)}`);
|
||||
return new TextResponse(JSON.stringify(result.data, null, 2));
|
||||
} else {
|
||||
return new TextResponse("Code executed successfully with no return value.");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user