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

@iflow-mcp/apifox-mcp-demo

v0.0.1

Published

- NodeJS >= 18

Downloads

80

Readme

环境要求

  • NodeJS >= 18

1. 准备 Apifox MCP 服务

1.1 克隆 Apifox MCP 项目

git clone https://github.com/Tzott/apifox-mcp-demo.git

1.2 创建环境变量

cd apifox-mcp-demo
cp .env.example .env

1.3 在 Apifox 客户端中创建一个Access Token ,并写入到 .env 文件中

图片

图片

1.4 启动 Apifox MCP 服务

# 如果没有安装 pnpm,可先运行:npm i -g pnpm

pnpm i && pnpm build && pnpm start

1.5 看到启动成功日志

> [email protected] start /Users/code/apifox-mcp-demo
> node lib/index.js

SSE endpoint: http://localhost:4444/sse
Message endpoint: http://localhost:4444/messages
HTTP server listening on port 4444

2. 准备 Cursor

2.1 创建一个空白的 Nestjs 项目

npm i -g @nestjs/cli
nest new nest-ai-demo
cd nest-ai-demo

2.2 添加一个 Cursor MCP 配置

apifox-mcp-demo 项目中复制 sse 的地址,填到 Server URL 中。

图片

可以看到MCP 服务连接成功

图片

2.3 打开 Cursor Composer,并切换到 Agent 模式

图片

2.4 复制一个 Apifox 接口的协作链接

图片

2.5 粘贴到 Composer 中,并让其实现接口

https://app.apifox.com/link/project/5898808/apis/api-263537040

通过这个 Apifox 协作链接,获取其 OpenAPI 的定义,然后根据定义实现这个接口。

注意:技术是:nestjs + typescript,项目我已经搭建了好了,直接实现即可。

2.6 Cursor Composer 实现完毕,并 Accepted 结果

图片

2.7 启动 Nestjs服务,通过 Apifox 调用AI 写的接口,断言通过

图片

3. 其他

分页也简单实现了 图片