Sponsored by Deepsite.site

🤖 Hamibot MCP Server

Created By
hamibot9 months ago
用于与 Hamibot API 进行交互。它提供了一系列工具来管理和控制 Hamibot 设备及脚本
Content

🤖 Hamibot MCP Server

Hamibot MCP Server 是一个基于 Model Context Protocol (MCP) 的服务器实现,用于与 Hamibot API 进行交互。它提供了一系列工具来管理和控制 Hamibot 设备及脚本。

✨ 功能特性

  • 设备管理:列出所有连接的设备
  • 脚本管理:查看和运行自动化脚本
  • 代码执行:在指定设备上执行自定义 JavaScript 代码
  • 支持变量传递:可以向脚本传递自定义参数

⚙️ 配置

获取访问令牌

  1. 访问 https://hamibot.com/account/tokens
  2. 点击生成

在 Trae 中使用

详细步骤参考 Trae 文档:https://docs.trae.ai/ide/model-context-protocol?_lang=zh

  1. 按键 F1
  2. 输入 open mcp config json,点击进去
  3. mcp.json 中添加:
{
  "mcpServers": {
    "hamibot": {
      "command": "npx",
      "args": ["-y", "@hmbt/hamibot-mcp-server"],
      "env": {
        "HAMIBOT_PERSONAL_ACCESS_TOKEN": "你的访问令牌"
      }
    }
  }
}

其他客户端请参考相应的文档

🛠️ 可用工具

list-devices

列出所有已连接的设备。

list-scripts

列出所有可用的自动化脚本。

run-script

在指定设备上运行脚本。

参数:

  • scriptId: 24 位十六进制字符串,表示要运行的脚本 ID
  • devices: 设备列表,包含设备 ID 和可选的设备名称
  • vars: (可选) 传递给脚本的变量

execute

在指定设备上执行自定义 JavaScript 代码。

参数:

  • code: JavaScript Hamibot 代码
  • devices: 设备列表,包含设备 ID 和可选的设备名称
  • vars: (可选) 传递给代码的变量

📝 示例

  • 获取设备列表
  • 获取脚本列表
  • 在 "设备名" 上运行脚本 "脚本名",设备名和脚本名加引号,会更明确,例如 在 "初号机" 上运行脚本 "演示脚本"

运行脚本 运行脚本

  • 在所有 tag1 标签的设备上运行 "演示脚本"
  • 在初号机上运行这个脚本文件

运行脚本文件

💻 开发

# 构建项目
npm run build

# 启动服务器
npm start

# 开发模式(监视文件变化)
npm run watch
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
WindsurfThe new purpose-built IDE to harness magic
DeepChatYour AI Partner on Desktop
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Serper MCP ServerA Serper MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
CursorThe AI Code Editor
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Tavily Mcp
Playwright McpPlaywright MCP server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.