@vreippainen/hevy-mcp-server
Version:
A MCP server for Hevy
23 lines (22 loc) • 607 B
TypeScript
/**
* Utility functions for API responses
*/
export interface ResponseContent {
[key: string]: unknown;
type: 'text';
text: string;
}
export interface Response {
[key: string]: unknown;
content: ResponseContent[];
}
/**
* Creates a standardized error response object
* @param message The error message to include in the response
*/
export declare function createErrorResponse(message: string): Response;
/**
* Creates a standardized success response object
* @param data The data to include in the response
*/
export declare function createSuccessResponse<T>(data: T): Response;