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

@flinkhouse/bailian-agent

v1.0.0

Published

MCP server for bailian agent

Downloads

20

Readme

MCP 数据搜索工具

基于模型上下文协议 (Model Context Protocol, MCP) 实现的百炼的应用调用。

项目介绍

bailian-agent 是一个用于连接大语言模型与阿里云百炼知识库的桥接工具。它基于模型上下文协议 (MCP) 实现,允许AI模型通过工具调用的方式查询和检索存储在百炼知识库中的信息。

功能特点

  • 提供标准化的MCP接口,兼容支持工具调用的AI模型
  • 支持向阿里云百炼知识库发送查询请求
  • 将百炼API响应格式化并返回给AI模型
  • 作为独立的服务运行,易于集成到现有AI应用中

安装方法

# 使用npm安装
npm install @flinkhouse/bailian-agent

# 或者使用yarn
yarn add @flinkhouse/bailian-agent

使用方法

命令行使用

mcp-bailian-agent <app_id> <api_key> <model_description>

参数说明:

  • app_id: 百炼应用的ID
  • api_key: 百炼API访问密钥
  • model_description: 工具描述信息,会显示在AI模型的工具列表中

在AI应用中集成

  1. 启动bailian-agent服务
  2. 配置AI模型使用MCP协议连接到该服务
  3. 通过工具调用的方式,使用callBailianAgent函数查询百炼知识库

示例

当AI模型需要从百炼知识库检索信息时,可以通过如下方式调用:

// AI模型工具调用示例
callBailianAgent({
  query: "查询关键词或问题"
})

依赖项

  • @modelcontextprotocol/sdk: MCP协议SDK
  • axios: HTTP请求客户端
  • zod-to-json-schema: Schema转换工具

许可证

MIT