npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mcp-mysql-apifox

v1.2.2

Published

- 不同项目连接不同 - 在 Mysql 数据库执行 SQL - 添加接口文档到 Apifox - 从 Apifox 下载所有API到本地文件 - 解析并执行 curl 命令

Readme

主要功能

  • 不同项目连接不同
  • 在 Mysql 数据库执行 SQL
  • 添加接口文档到 Apifox
  • 从 Apifox 下载所有API到本地文件
  • 解析并执行 curl 命令

安装与使用

  1. 配置MCP服务
     {
       "mcpServers": {
         "mysql-apifox": {
           "command": "npx",
           "args": [
               "-y",
               "mcp-mysql-apifox"
           ]
         }
       }
     }
  2. 建议在项目规则中定义
       - **必须在完成后调用`help`工具询问是否完成,未完成继续,直到`help`返回完成后再总结**
       - 如果要使用mysql相关功能,使用该DSN: `mysql://user:password@host:port/database`
       - 接口文档管理规范(注意必须在明确"创建/更新接口文档"时才操作):
         - 使用 import_openapi 工具导入,项目信息:
          - 项目ID: <apiFox项目id>
          - API密钥: <apiFox密钥>
         - 保存接口根路径: `.apiDoc`目录
         - 接口文件规范:
          - 文件位置在保存接口根路径下
          - 目录结构:按 tags 属性数组顺序创建子目录
          - 文件命名:使用 summary 属性值,格式为 JSON
          - 每次仅允许导入单个接口文件。

可用命令

execute_mysql

执行MySQL语句,需要提供DSN连接字符串。

参数:

  • dsn: MySQL数据库连接字符串,格式:mysql://user:password@host:port/database
  • sql: 要执行的SQL语句
  • params: SQL查询参数(可选)

import_openapi

导入OpenAPI数据到Apifox。

参数:

  • input: JSON、YAML或X-YAML格式的OpenAPI数据字符串,或文件路径
  • projectId: Apifox项目ID
  • apiKey: Apifox API密钥

download_apis

从Apifox下载所有API到本地文件。

参数:

  • rootDir: 下载文件的根目录路径
  • projectId: Apifox项目ID
  • apiKey: Apifox API密钥

功能说明:

  • 下载完整的OpenAPI 3.1规范文档

run_curl

解析并执行curl命令,返回HTTP请求结果。

参数:

  • curl: curl命令字符串

功能说明:

  • 自动解析curl命令中的URL、HTTP方法、请求头、请求体等信息
  • 返回完整的响应信息,包括状态码、响应头和响应数据
  • 支持所有标准的curl参数和选项