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

mcp-agent-platform

v0.1.2

Published

A local stdio MCP agent that loads personalized remote config and connects to upstream MCP services.

Readme

mcp-agent-platform

一个面向 AI 编码工具的本地 MCP agent。

它通过 stdio 暴露给 Codex / Claude Code / OpenCode,同时从远程控制面拉取个性化配置,并在本地直连上游 MCP 服务。

当前发布内容只有本地 npm agent。

  • 已有:
    • 本地 CLI agent
    • 仓库内配套的 control-plane API
    • 仓库内 Web 控制面板原型
  • 还没有:
    • 完整后台管理系统
    • 面向生产的权限与审计能力

安装

npm install -g mcp-agent-platform

或直接使用:

npx mcp-agent-platform --base-url https://api.example.com --workspace demo --token-env MCP_AGENT_TOKEN

用法

推荐方式一:

mcp-agent-platform --base-url https://api.example.com --workspace demo --token-env MCP_AGENT_TOKEN

推荐方式二:

mcp-agent-platform --config-url https://api.example.com/v1/workspaces/demo/config --workspace demo --token-env MCP_AGENT_TOKEN

参数

  • --base-url
    • 控制面基础地址,例如 https://api.example.com
    • agent 会自动拼成 https://api.example.com/v1/workspaces/<workspace>/config
  • --config-url
    • 完整配置地址,优先级高于基础地址模式
  • --workspace
    • 工作区 ID,同时作为本地缓存键
  • --token
    • 直接传入 Bearer Token
  • --token-env
    • 从指定环境变量读取 Bearer Token
  • --cache-dir
    • 自定义缓存目录

环境变量

  • MCP_AGENT_BASE_URL
  • MCP_AGENT_CONFIG_URL
  • MCP_AGENT_WORKSPACE
  • MCP_AGENT_TOKEN
  • MCP_AGENT_TOKEN_ENV
  • MCP_AGENT_CACHE_DIR

行为说明

  • 远程控制面可用时,优先拉取最新配置并刷新本地缓存
  • 控制面暂时不可用时,会尝试回退到本地缓存
  • agent 本身不承担统一中心中转流量,默认由本地直接连接上游 MCP 服务

当前范围

这个 npm 包只解决“本地接入层”。

如果你现在直接拿它来用,需要你自己提供一个控制面配置接口。最小接口只要返回工作区配置 JSON 即可。

如果你使用的是本仓库,建议先在项目根目录执行:

pnpm go

这会进入一个数字菜单,你可以按编号执行环境检测、本地运行或打包。

License

MIT