UNPKG

markdown-editor-mcp

Version:

MCP server for markdown editing and management

16 lines (15 loc) 412 B
import { capture } from "./utils/capture.js"; /** * Creates a standard error response for tools * @param message The error message * @returns A ServerResult with the error message */ export function createErrorResponse(message) { capture('server_request_error', { error: message }); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true, }; }