codebyai-mcp-server
v1.0.18
Published
MCP server for converting design files to frontend code
Maintainers
Readme
CodeByAI MCP Server
A Model Context Protocol (MCP) server for converting Sketch and Figma design files to frontend code.
Tools
designToCode
Converts Sketch (.sketch) or Figma (.fig) design files to frontend code.
Parameters:
filePath(string, required): Local path to the design file
Returns:
- Refactored page source code in text format
openApiFilter
Filter OpenAPI/Swagger interface document and save to new file' Parameters:
filePath(string, required): Local path to the origin openapi filetargetPath(string, required): Local path to the target openapi file after filter
Logging
The server logs all activities to logs/codebyai-mcp-YYYY-MM-DD.log, including:
- Design file upload attempts
- Browser opening success/failure
- Conversion results
- Error details
- Execution times
Error Handling
The server handles various error scenarios:
- Missing or invalid file paths
- Unsupported file formats
- Network connectivity issues
- Browser opening failures
- Conversion timeouts (5 minutes)
All errors are logged and returned to the calling application.
