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

aai-gateway

v1.1.12

Published

[English](README.md) | 简体中文 | [日本語](README.ja.md) | [한국어](README.ko.md)

Downloads

1,036

Readme

English | 简体中文 | 日本語 | 한국어


AAI Gateway:统一管理 MCP 工具和 Skill,跨 AI Agent 共享,上下文 Token 节省 99%

npm version license


它是什么

AAI = Agent App Interface

AAI Gateway 是 Agent App 的交互网关。

什么是 Agent App?Agent App 是 Agent 可以使用的能力集合。例如:

  • 一个 MCP Server 就是一个 Agent App —— 它提供一组工具
  • 一个 Skill 技能包 也是一个 Agent App —— 它提供一项或多项技能

在 AAI Gateway 中,它们被抽象为 Agent App 统一管理,一次导入,所有 AI Agent 立即可用。


它解决什么问题

Context 膨胀

传统方式:10 个 MCP × 5 个工具 = 50 份完整 schema ≈ 7500 tokens,每次对话都要注入。

AAI Gateway:每个 Agent App 只需不到 50 tokens 的摘要,Agent 需要时再按需加载详情。Token 节省 99%。

找工具麻烦

传统方式:翻 GitHub → 看 README → 复制 JSON 配置 → 调试连接 → 重启 Agent。

AAI Gateway:对 Agent 说"用 AAI 搜索 xxx",自动搜索、安装、立即可用

"用 AAI 搜索一个浏览器操控工具"

→ 搜索 → 找到 Playwright MCP → Agent 总结一句话作为 Agent App 摘要 → 安装 → 立即可用,无需重启

"用 AAI 搜索一个 PPT 制作技能"

→ 搜索 → 找到 PPT Skill → 使用技能描述作为 Agent App 摘要 → 安装 → 立即可用,无需重启

重复配置

Claude Code、Codex、OpenCode 各配一遍?通过 AAI Gateway 导入一次,所有 Agent 立即共享。


快速开始(30 秒)

Claude Code:

claude mcp add --scope user --transport stdio aai-gateway -- npx -y aai-gateway

Codex:

codex mcp add aai-gateway -- npx -y aai-gateway

OpenCode — 添加到 ~/.config/opencode/opencode.json

{
  "mcp": {
    "aai-gateway": {
      "type": "local",
      "command": ["npx", "-y", "aai-gateway"],
      "enabled": true
    }
  }
}

OpenClaw

openclaw plugins install openclaw-aai-gateway-plugin

装好之后,直接对 Agent 说你想做什么就行。


内置工具

| 工具 | 说明 | |------|------| | search:discover | 自然语言搜索并安装新工具 | | mcp:import | 导入一个 MCP Server 作为 Agent App | | skill:import | 导入一个 Skill 技能包作为 Agent App | | listAllAaiApps | 列出所有已注册的 Agent App | | enableApp / disableApp | 按 Agent 启用或禁用 Agent App | | removeApp | 移除一个 Agent App | | aai:exec | 执行 Agent App 内的具体工具 |

每个已导入的 Agent App 会生成一个 app_<app-id> 工具,调用时返回完整的操作指南和工具列表。

预置 Agent App(本地已安装才会自动发现)

| App ID | 名称 | 说明 | |--------|------|------| | claude | Claude Code | AI 编码助手,代码编辑、分析和开发 | | codex | Codex | OpenAI 驱动的 AI 编码助手 | | opencode | OpenCode | AI 开发助手,编辑文件、运行命令 |


架构

架构图


开发者:让你的 Agent App 被自动发现

创建 aai.json 描述文件,提交到 src/discovery/descriptors/,用户本地满足 discovery.checks 条件时,Agent 会自动发现你的 Agent App。

{
  "schemaVersion": "2.0",
  "version": "1.0.0",
  "app": {
    "name": { "default": "My App", "zh-CN": "我的应用" }
  },
  "discovery": {
    "checks": [
      { "kind": "command", "command": "my-app" }
    ]
  },
  "access": {
    "protocol": "mcp",
    "config": {
      "command": "my-app-mcp",
      "args": ["--stdio"]
    }
  },
  "exposure": {
    "summary": "当用户想要做 X 时使用。"
  }
}

discovery.checks 支持三种检查:command(命令是否存在)、file(文件是否存在)、path(目录是否存在)。

支持的协议:mcpskillacp-agent

欢迎 提交 PR 贡献新的 Agent App 描述文件,或 开 Issue 反馈问题。