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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@af-mobile/mcp

v1.0.3

Published

af-mobile UI MCP Server — get_prompt / check_compliance / fix_code / generate_page / flywheel_report(零 LLM 配置可用)

Readme

@af-mobile/mcp

af-mobile UI 的 Model Context Protocol (MCP) 服务器。为 AI Agent 提供确定性的提示词获取、合规检查、代码修正与飞轮报告能力——全部不调用 LLM,你用自己接入的模型生成代码即可。

  • 零 LLM 配置:无需 AFMOBILE_AI_API_URL 等环境变量,检查类工具是纯确定性逻辑
  • 调用方即 LLM:你用自己的模型写代码,本包只提供 prompt / lint / 修正建议

工具

| 工具 | 作用 | 是否调用 LLM | |---|---|---| | get_prompt | 按需求裁剪生成 af-mobile UI 页面 System Prompt(含 few-shot 与组件 API) | 否 | | check_compliance | 检查代码是否符合白名单与 ESLint 规则,返回违规 + 逐条修正建议 | 否 | | fix_code | 为失败代码构造修正 prompt(错误 + 建议),由你的模型修正后再 check_compliance 验证 | 否 | | generate_page | 端到端页面生成(未配置 LLM 时返回 prompt 对;配置 AFMOBILE_AI_API_URL 才自动生成) | 可选 | | flywheel_report | 数据飞轮分析报告:Top 违规规则、白名单候选、收敛度 | 否 |

安装

npm i -D @af-mobile/mcp

在 MCP 客户端配置 stdio 服务器:

{
  "mcpServers": {
    "af-mobile": { "command": "npx", "args": ["-y", "@af-mobile/mcp"] }
  }
}

亦可用 npx @af-mobile/mcp 直接启动。

数据飞轮(遥测)

每次 check_compliance 会写入本地 .af-mobile/ 遥测(时间戳 / 来源 / 工具 / 文件路径 / 规则名 / 行号 / 脱敏消息,不含代码内容)。这些错误模式会被用于改进白名单与 prompt,让后续生成更准。CI 上的遥测随 runner 销毁。

依赖

  • @af-mobile/eslint-plugin(合规检查引擎)
  • @modelcontextprotocol/sdk