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

@proteus-vue/mcp

v0.1.0

Published

G-36 B1 MCP Server(proteus-ai-agent-plan 03-mcp-server):AI 工具标准协议核心——11 工具(search_primitives/get_primitive/list_primitives/get_design_token/check_capability/get_capability_matrix/lookup_miniprogram/validate_ir/run_conformance/generate_code/write_file)+ 5

Readme

@proteus-vue/mcp

G-36 B1(proteus-ai-agent-plan 03-mcp-server)——Proteus MCP Server:把 Agent 需要的知识(原语库 / Token / 能力矩阵 / IR 校验)通过 MCP 工具暴露,LLM 按需 query 而非预读全部文档(G-36.5 增量上下文)。标准协议一次实现,Claude Desktop / Cursor / Cline / 自研统一接入。

11 工具(03-mcp-server §2)

| 工具 | 类别 | 说明 | |------|------|------| | search_primitives | 只读 | 查询 G-32 语义原语(id/semantic/tag/api 子串匹配) | | get_primitive | 只读 | 单个原语完整定义 | | list_primitives | 只读 | 全量/分类清单 + 统计 | | get_design_token | 只读 | design token 查询(点路径/分组/全树——业务禁硬编码) | | check_capability | 只读 | 某引擎某能力(supported/value——引擎 capabilities 派生) | | get_capability_matrix | 只读 | 端 × 能力矩阵 | | lookup_miniprogram | 只读 | 小程序 API/组件 → Proteus 对等物(G-32 对照矩阵) | | validate_ir | 只读 | Component IR Schema 校验(G-31 契约) | | run_conformance | 只读 | 六端渲染 conformance(G-31 B5 门禁) | | generate_code | 只读 | IR → 代码(json/ts) | | write_file | 写入 | 落盘(默认禁用 + 需交互式确认——CMP021) |

鉴权与工具策略(CMP021)

  • tool_policy:只读类默认可用;写入类需 writeEnabled(server 级)+ confirmed(调用级)双闸
  • rate_limit:默认 60/min(滑动窗口)
  • 防注入:所有工具参数经轻量 Schema 校验(required/type/maxLength/enum——拒绝超长输入)
  • 路径逃逸防护:write_file 拒绝绝对路径与 .. 穿越

用法

import { createMcpServer } from '@proteus-vue/mcp'

const server = createMcpServer({ writeEnabled: false, rateLimitPerMin: 60 })

server.listTools()                      // tools/list
await server.callTool('search_primitives', { query: 'grid' })
await server.callTool('get_design_token', { name: 'color.primary' })
server.listResources()                  // resources/list
server.readResource('proteus://primitives/catalog')
server.getPrompt('proteus-migrate-wx')  // prompts/get

传输适配(后续)

本包是传输无关核心(tools/resources/prompts 注册表 + 校验 + 策略 + 分发)。@modelcontextprotocol/sdk 的 stdio/HTTP 传输适配为薄壳(listTools/callTool 一一映射),后续批次接入。

数据源(SSOT)

原语目录与小程序对照矩阵来自 @proteus-vue/component-ir(G-32 机器事实);能力矩阵与 conformance 来自 @proteus-vue/render-backend 六引擎实例(运行时派生,非手写);design token 为本包初版 SSOT(tokens.ts,后续可外接)。