MCP.so
登录

Swagger Faker MCP Server

@Pingtouges

基本信息

分类

其他

传输方式

stdio

作者

Pingtouges

提交者

陈玉婷

关于 Swagger Faker MCP Server

Generate mocker services automatically through Swagger or OpenAPI.

Swagger Faker MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Swagger Faker MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Swagger Faker?

Swagger Faker generates fake data from a swagger.json file and automatically starts a mock server with that generated fake data. It is designed for developers who need quick mock APIs based on OpenAPI specifications.

How to use Swagger Faker?

Install it globally via npm i swagger-faker -g. Run swagger-faker init to create a configuration file, update it with your swagger source paths, then run swagger-faker gen to generate mock data and swagger-faker run to start the mock server.

Key features of Swagger Faker

  • Generates fake data from swagger/openapi JSON specifications.
  • Automatically starts a mock server on a configurable port.
  • Configurable output folder, timeout, and port.
  • Generated mock data is stored locally and is customizable.

Use cases of Swagger Faker

  • Quickly mock REST APIs during frontend development.
  • Test application behavior with realistic fake data.
  • Create mock servers for demos or prototypes without a real backend.

常见问题

1

What runtime is required?

Node.js and npm are required for installation (`npm i swagger-faker -g`).

2

How can I customize the mock data?

After running `swagger-faker gen`, the mock data files are placed in the `mock-server/data` folder. You can edit these JSON files directly to customize the responses.

3

What port does the mock server use by default?

The default port is `8081`, but you can change it by setting the `port` field in the `swagger-faker.config.json` file.

4

How do I specify which OpenAPI file to use?

In the configuration file, set the `sourcePaths` array to the path of your swagger or OpenAPI file (e.g., `"./source/openapi.json"`).

评论

其他 分类下的更多 MCP 服务器