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

eagle-rag

v1.0.3

Published

Eagle 开发知识库查询 MCP Server,通过语义向量检索实现 Eagle 开发者文档 RAG 问答

Readme

Eagle RAG MCP Server

通过 npx 运行的 MCP Server,对接 Coze 工作流,实现 Eagle 开发者文档 RAG 问答功能。

功能特性

  • 身份识别: 自动获取机器唯一 ID,作为用户标识
  • EAGLE 文档问答: 将用户问题传递给 Coze 工作流,获取 EAGLE 开发者文档相关答案
  • MCP 协议: 完全兼容 Model Context Protocol

快速开始

1. 安装依赖

npm install

2. 运行 MCP Server

# 使用 npx 运行
npx eagle-rag

# 或者使用 npm 脚本
npm start

MCP 工具

ask

Eagle 开发知识库查询,它包含了从 Eagle 官网拷贝的所有 API 文档、插件配置说明及开发示例。通过语义向量检索,能够精准回答开发者关于 Eagle 插件开发的各类技术问题。

参数:

  • question (string): 用户问题

返回值:

  • EAGLE 开发者文档检索结果

示例:

{
  "question": "如何创建无边框窗口?"
}

在 Cursor 中使用

在 Cursor 的 mcp.json 配置文件中添加:

{
  "mcpServers": {
    "eagle-rag": {
      "command": "npx",
      "args": ["eagle-rag"]
    }
  }
}

或者使用绝对路径:

{
  "mcpServers": {
    "eagle-rag": {
      "command": "node",
      "args": ["/path/to/eagle-rag/src/index.js"]
    }
  }
}

配置说明

当前配置硬编码在代码中(src/index.js):

| 配置项 | 值 | 说明 | |--------|-----|------| | COZE_API_URL | https://api.coze.cn/v1/workflow/run | Coze API 地址 | | COZE_WORKFLOW_ID | 7610685653369798719 | Coze 工作流 ID |

API 请求格式

POST https://api.coze.cn/v1/workflow/run
Authorization: Bearer <token>
Content-Type: application/json

{
  "workflow_id": "7610685653369798719",
  "parameters": {
    "user_id": "<machine_id>",
    "question": "<user_question>"
  }
}

依赖

  • @modelcontextprotocol/sdk - MCP Server SDK
  • axios - HTTP 请求库
  • node-machine-id - 机器唯一 ID 获取
  • zod - 参数验证

许可证

MIT