@vreippainen/hevy-mcp-server
Version:
A MCP server for Hevy
23 lines • 593 B
JavaScript
/**
* Utility functions for API responses
*/
/**
* Creates a standardized error response object
* @param message The error message to include in the response
*/
export function createErrorResponse(message) {
return {
isError: true,
content: [{ type: 'text', text: message }],
};
}
/**
* Creates a standardized success response object
* @param data The data to include in the response
*/
export function createSuccessResponse(data) {
return {
content: [{ type: 'text', text: JSON.stringify(data) }],
};
}
//# sourceMappingURL=responseUtils.js.map