Token导航 LogoToken导航TokenDH.com
Companion MCP Server logo
浏览器工具stdio官方级别未说明来源级核验

Companion MCP Server

MCP Server

companion-mcp-server

用于Bitfocus Companion的MCP服务器,使AI助手能够控制按钮、触发器、变量和连接。

工具数

27

提示词数

0

GitHub Stars

3

资源数

0
AI控制TypeScriptClaudeClaude DesktopClaudeCursorWindsurf

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

yannisgu

提供方

yannisgu

最后核验

2026/5/17 20:20

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx companion-mcp-server [companion-url]

详细介绍

配套MCP服务器

MCP(模型上下文协议)服务器 Bitfocus伴侣,使AI助手能够控制按钮、触发器、变量和连接。

特性

  • 连接:列出连接及其动作/反馈定义
  • 变量:列出、搜索、获取值、创建和设置自定义变量
  • 页面和按钮:创建、配置和按下带有操作和反馈的按钮
  • 触发器:创建、克隆、更新和批量更新触发器,完全支持事件、条件、操作和集合

安装

无需安装-直接使用npx运行:

npx companion-mcp-server [companion-url]

或全局安装:

npm install -g companion-mcp-server

配置

克劳德桌面

添加到您的Claude Desktop配置中:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json 视窗: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "companion": {
      "command": "npx",
      "args": ["-y", "companion-mcp-server", "http://localhost:8889"]
    }
  }
}

克劳德代码

添加到您的Claude Code MCP设置中(~/.claude/settings.json):

{
  "mcpServers": {
    "companion": {
      "command": "npx",
      "args": ["-y", "companion-mcp-server", "http://localhost:8889"]
    }
  }
}

或添加到特定项目 .claude/settings.json 在您的项目根目录中。

光标

添加到Cursor的MCP配置(~/.cursor/mcp.json):

{
  "mcpServers": {
    "companion": {
      "command": "npx",
      "args": ["-y", "companion-mcp-server", "http://localhost:8889"]
    }
  }
}

帆板运动

添加到Windsurf的MCP配置(~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "companion": {
      "command": "npx",
      "args": ["-y", "companion-mcp-server", "http://localhost:8889"]
    }
  }
}

自定义伴侣URL

替换 http://localhost:8889 如果Companion实例在其他主机或端口上运行,请使用您的Companion实例URL:

"args": ["-y", "companion-mcp-server", "http://192.168.1.100:8889"]

环境变量

您还可以通过环境变量设置URL:

{
  "mcpServers": {
    "companion": {
      "command": "npx",
      "args": ["-y", "companion-mcp-server"],
      "env": {
        "COMPANION_URL": "http://localhost:8889"
      }
    }
  }
}

可用工具

变量

工具说明
list_variables列出按连接分组的所有变量定义
search_variables按名称/标签模式搜索变量
get_variable_value获取变量的当前值
create_custom_variable创建新的自定义变量
set_custom_variable设置自定义变量的值

连接

工具说明
list_connections列出所有已配置的连接及其ID和状态
list_connection_definitions获取连接的操作/反馈定义

页面和按钮

工具说明
list_pages列出所有带有按钮网格的页面
create_page在某个位置创建新页面
remove_page删除页面及其所有控件
set_page_name重命名页面
move_page将页面移动到其他位置
clear_page将页面重置为默认值
get_button获取按钮的完整配置
create_button在某个位置创建一个新按钮
delete_button删除按钮
update_button更新按钮样式、操作和反馈
press_button模拟按钮按下/释放

触发器

工具说明
list_triggers列出所有包含集合信息的触发器
list_trigger_collections列出所有触发器集合
get_trigger获取触发器的完整配置
create_trigger使用可选的内联配置创建触发器
clone_trigger克隆具有选项覆盖的现有触发器
update_trigger使用多个操作更新触发器
batch_update_triggers批量更新多个触发器
create_trigger_collection创建触发器集合
delete_trigger删除触发器

资源

服务器为快速上下文公开MCP资源:

资源描述
companion://guideMCP工具使用指南
companion://connections配置的连接摘要
companion://presets按连接可用的按钮预设

例子

创建一个切换到相机1的按钮

1. Use list_connections to find your ATEM connection ID
2. Use list_connection_definitions with that ID to find the "program" action
3. Use create_button to create a button at page 1, row 0, column 0
4. Use update_button with set_style (text: "CAM 1") and add_action (the program action with input: 1)

克隆多个摄像头的触发器

1. Use get_trigger to inspect an existing camera trigger
2. Use clone_trigger with the source trigger ID, new name, and optionOverrides to change the camera number
3. Repeat for each camera, or use batch_update_triggers for bulk operations

搜索计数变量

Use search_variables with query "tally" to find all tally-related variables across connections

发展

# Clone the repo
git clone https://github.com/yannisgu/companion-mcp-server.git
cd companion-mcp-server

# Install dependencies
yarn install

# Run in development mode
yarn dev

# Build for production
yarn build:ts

需求

许可证

麻省理工学院

目录标签

目录标签

AI控制TypeScriptClaude本地部署自动化触发器管理变量控制按钮配置

支持客户端

Claude DesktopClaudeCursorWindsurf

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

companion-mcp-server

工具数量(toolCount,工具数)

27

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP