UNPKG

@mseep/railway-mcp

Version:

Model Context Protocol server for Railway.app - Enables AI agents to manage Railway infrastructure through natural language

25 lines (24 loc) 524 B
export function createSuccessResponse(response) { return { content: [{ type: 'text', text: response.text }], data: response.data }; } export function createErrorResponse(message) { return { content: [{ type: 'text', text: message }], isError: true }; } export function formatError(error) { if (error instanceof Error) { return error.message; } return String(error); }