Major refactor: Multi-user Chrome MCP extension with remote server architecture
This commit is contained in:
@@ -22,3 +22,15 @@ export const createErrorResponse = (
|
||||
isError: true,
|
||||
};
|
||||
};
|
||||
|
||||
export const createSuccessResponse = (data: any): ToolResult => {
|
||||
return {
|
||||
content: [
|
||||
{
|
||||
type: 'text',
|
||||
text: typeof data === 'string' ? data : JSON.stringify(data, null, 2),
|
||||
},
|
||||
],
|
||||
isError: false,
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user