HuLa
🌍 HuLa 即时通讯应用的 MCP 服务
claude mcp add --transport stdio hulaspark-hula-mcp node dist/index.js \ --env PORT="Port to run MCP server" \ --env NODE_ENV="development or production"
How to use
HuLa MCP 服务是一款基于 MCP(Model Context Protocol)构建的服务端,为 HuLa 即时通讯应用提供资源访问、工具执行和上下文信息输出。通过定义用户、群组、会话等资源端点,以及发送消息、创建群组、搜索内容等工具,HuLa MCP 让大型语言模型(LLM)可以以结构化的方式获取上下文并执行相应操作。你可以将 HuLa MCP 与支持 MCP 的助手如 Cursor 或 Windsurf 集成,以便在对话中直接请求用户信息、获取会话记录、发送消息、创建群组等功能。若你是开发者,可以通过全局CLI或本地脚本启动服务,并按需配置集成目标。
How to install
安装步骤(Prerequisites:已安装 Node.js 和 npm / pnpm)
- 全局或本地安装 HuLa MCP 服务包
# 全局安装
npm install -g hula-mcp-server
# 或使用 pnpm(全局)
pnpm add -g hula-mcp-server
- 本地开发环境安装依赖
# 在项目根目录安装依赖
npm install
# 或使用 pnpm
pnpm install
- 运行开发模式
npm run dev
# 或使用 pnpm
pnpm run dev
- 构建与生产环境运行
# 构建项目
npm run build
# 或使用 pnpm
pnpm run build
# 运行生产环境
npm run start
# 或使用 pnpm
pnpm run start
- 运行方式示例(任选一种)
- 使用全局 CLI 启动:
hula-mcp start,然后连接到所需客户端进行集成。 - 使用本地脚本直接启动(本地开发环境):
npm run dev或pnpm run dev。
Additional notes
Tip 和常见问题:
- 兼容性:HuLa MCP 基于 TypeScript、Express 和 MCP SDK,因此确保 Node.js 版本符合要求(通常 LTS 版本)。
- 集成:Cursor / Windsurf 的集成可通过 CLI(hula-mcp start / setup http://localhost:3100 --client cursor 或 windsurf)完成,也可手动在 ~/.cursor/mcp/ 或 ~/.windsurf/mcp/ 下创建 mcp-config.json,以自定义 baseUrl 与端点。
- 资源与工具:资源端点提供 users、groups、conversations 和 messages 等数据入口;工具如 send-message、create-group、search-messages 等用于对外执行操作。
- 环境变量:可通过 PORT、BASE_URL、LOG_LEVEL 等变量自定义运行参数,实际部署时请按环境需要设置。
- 发布与版本:通过 npm publish 将 HuLa MCP 服务发布到 NPM,构建后确保 dist/index.js(或相应打包输出)存在于生产运行路径。
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
akyn-sdk
Turn any data source into an MCP server in 5 minutes. Build AI-agents-ready knowledge bases.
promptboard
The Shared Whiteboard for Your AI Agents via MCP. Paste screenshots, mark them up, and share with AI.