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-tools-doris

v1.0.3

Published

用于操作Apache Doris的MCP工具,支持通过LLM交互

Readme

MCP Tools Doris

一个用于操作和管理 Apache Doris 集群的工具包,支持通过 LLM(大语言模型)进行交互。

功能特点

  • 集群状态监控
  • FE/BE 节点管理
  • 查询进度跟踪
  • 表分区管理
  • 资源使用监控
  • 运行查询管理
  • 命令行界面(CLI)支持

安装

npm install mcp-tools-doris

使用方法

作为库使用

const { DorisManager } = require('mcp-tools-doris');

const manager = new DorisManager({
  host: 'your-fe-host',
  port: 9030,
  user: 'root',
  password: 'your-password'
});

// 获取集群状态
async function getStatus() {
  const status = await manager.getClusterStatus();
  console.log(status);
}

使用命令行工具

# 安装全局命令
npm install -g mcp-tools-doris

# 使用 CLI
doris-cli status
doris-cli fe list
doris-cli be list

环境要求

  • Node.js >= 14.0.0
  • Apache Doris 集群

配置

创建 .env 文件并设置以下环境变量:

DORIS_HOST=your-fe-host
DORIS_PORT=9030
DORIS_USER=root
DORIS_PASSWORD=your-password

API 文档

DorisManager 类

构造函数

new DorisManager(config: {
  host: string;
  port: number;
  user: string;
  password: string;
})

方法

  • getClusterStatus(): 获取集群状态
  • getFeNodes(): 获取 FE 节点列表
  • getBeNodes(): 获取 BE 节点列表
  • getQueryProgress(queryId): 获取查询进度
  • getTablePartitions(database, table): 获取表分区信息
  • getTableStats(database, table): 获取表统计信息
  • getResourceUsage(): 获取资源使用情况
  • getRunningQueries(): 获取运行中的查询
  • killQuery(queryId): 终止查询
  • getVersion(): 获取版本信息
  • restartFeNode(host, port): 重启 FE 节点
  • addBeNode(host, port): 添加 BE 节点
  • removeBeNode(host, port): 移除 BE 节点

贡献指南

欢迎提交 Issue 和 Pull Request!

许可证

MIT