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

@rark-ui/mcp

v1.0.1

Published

Rui Ark MCP server with stdio transport

Readme

rui-ark-mcp

一个通过 stdio 提供能力的 MCP Server,支持以下工具:

  • list-components
  • list-examples
  • get-example
  • list-documents
  • get-document

当前首版仅支持 framework=vue

安装与运行

本地开发

pnpm install
pnpm --filter rui-ark-mcp build
pnpm --filter rui-ark-mcp start

快速验 5 个工具真实返回(Inspector 风格)

pnpm --filter rui-ark-mcp build
pnpm --filter rui-ark-mcp smoke:inspector

该脚本会通过 stdio 启动本地 dist/cli.js,并按顺序调用:

  • list-components
  • list-examples
  • list-documents
  • get-example
  • get-document

输出为每个 tool 的原始 MCP callTool 返回,便于快速检查远程/本地回退结果。

通过 npx 启动

发布到 npm 后,可直接通过:

npx rui-ark-mcp

MCP Client 配置(stdio)

{
  "mcpServers": {
    "rui-ark-mcp": {
      "command": "npx",
      "args": ["-y", "rui-ark-mcp"],
      "env": {
        "MCP_REMOTE_BASE_URL": "https://your-api.example.com",
        "MCP_REMOTE_TOKEN": "your-token",
        "MCP_TIMEOUT_MS": "8000",
        "MCP_REMOTE_RETRIES": "1",
        "MCP_REPO_ROOT": "C:/workspace/rui-ark"
      }
    }
  }
}

远程优先策略

工具执行时按以下顺序查数据:

  1. 远程接口(MCP_REMOTE_BASE_URL
  2. 本地回退(默认扫描 MCP_REPO_ROOT/packages/vue/core/src/components

返回结果包含 source 字段,取值为 remotelocal

远程接口约定

默认会使用以下 GET 端点(可通过环境变量覆盖):

  • MCP_REMOTE_ENDPOINT_LIST_COMPONENTS,默认 /api/mcp/components
  • MCP_REMOTE_ENDPOINT_LIST_EXAMPLES,默认 /api/mcp/examples
  • MCP_REMOTE_ENDPOINT_GET_EXAMPLE,默认 /api/mcp/example
  • MCP_REMOTE_ENDPOINT_LIST_DOCUMENTS,默认 /api/mcp/documents
  • MCP_REMOTE_ENDPOINT_GET_DOCUMENT,默认 /api/mcp/document

公共 query 参数:

  • framework(首版仅 vue
  • componentName(在 get-exampleget-document 中传入)

响应支持两种格式:

  • 直接返回结果数据
  • 包一层 { "data": ... }{ "result": ... }