Automatically generates TypeScript API clients from Swagger/OpenAPI specifications with support for validation, type definitions, and interface generation.
Provides tools for generating TypeScript API clients and type definitions from Swagger/OpenAPI specifications, with support for type interfaces.
Generates Vue 3 list page components with filters, tables, and pagination based on configurable specifications, including support for Element Plus UI components.
Supports parsing and processing of YAML-formatted Swagger/OpenAPI specifications for API client generation.
Swiftcode MCP Server
English | 简体中文
Introduction
Swiftcode MCP Server is a server based on the Model Context Protocol (MCP), focusing on automated code generation to support modern web development workflows. It can automatically generate TypeScript API clients from Swagger/OpenAPI specifications and quickly generate Vue list page components based on templates, greatly improving frontend and backend development efficiency.
Features
- Swagger/OpenAPI to TypeScript: Automatically generate TypeScript API clients and type definitions.
- Vue Component Generation: One-click generation of Vue 3 list pages with tables, filters, and pagination.
- Template Management: Obtain and use built-in code generation templates.
- Specification Validation: Supports Swagger/OpenAPI validation.
- Mock Data Generation: Optionally generate mock data for frontend development.
Supported Technologies
- Frontend: Vue 3 (Composition API), Element Plus, TypeScript
- API Specification: Swagger 2.0, OpenAPI 3.0+ (JSON/YAML)
- Code Generation: TypeScript interfaces/types, Vue 3 components, Element Plus forms and tables
Tool List
1. generate_api_client
Generate TypeScript API client from Swagger/OpenAPI specification.
Parameters:
source
(string): Swagger/OpenAPI file path or URLdir
(string): Output directory
Example:
2. generate_sfc_template_client
Download and generate SFC/Vue list template files to the specified directory.
Parameters:
dir
(string): Output directory
Example:
3. generate_sfc_client
Generate Vue list components based on template files.
Parameters:
source
(string): Template file pathdir
(string): Output directory
Example:
Quick Start
NPX (Recommended)
Start as an MCP Server:
Local Development
Start as an MCP Server:
Docker
Usage Examples
Generate API Client
Generate Vue List Component
Contribution Guide
- Fork this repository
- Create a feature branch
- Commit your changes
- Add tests if necessary
- Submit a Pull Request
License
MIT
For more help or questions, please visit the GitHub.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that automates code generation for web development, specializing in creating TypeScript API clients from Swagger/OpenAPI specs and Vue.js components for frontend development.
Related MCP Servers
- AsecurityAlicenseAqualityA comprehensive Model Context Protocol server that provides advanced Node.js development tooling for automating project creation, component generation, package management, and documentation with AI-powered assistance.Last updated -74JavaScriptMIT License
- -securityAlicense-qualityA server that enables interaction with any API that has a Swagger/OpenAPI specification through Model Context Protocol (MCP), automatically generating tools from API endpoints and supporting multiple authentication methods.Last updated -3490TypeScriptApache 2.0
- AsecurityFlicenseAqualityA server based on Model Context Protocol that parses Swagger/OpenAPI documents and generates TypeScript types and API client code for different frameworks (Axios, Fetch, React Query).Last updated -12713TypeScript
- AsecurityAlicenseAqualityA tool that creates MCP (Model Context Protocol) servers from OpenAPI/Swagger specifications, enabling AI assistants to interact with your APIs.Last updated -31721TypeScriptMIT License