HISE MCP服务器
](https://github.com/christoph-hart/hise_mcp_server) ](https://nodejs.org/)   
MCP服务器为人工智能助手提供访问HISE文档、API脚本、代码示例、论坛搜索和策划的风格/工作流程指南的权限。
服务器是 仅文档.Live HISE控件(启动、重新编译、脚本节点编辑、UI编辑、屏幕截图、REPL、分析、插件构建)存在于独立设备中 hise-cli 工具--请参见https://github.com/christophhart/hise-cli.
快速开始
连接到托管服务器——无需安装。
网址: https://docs.hise.dev/mcp
要求: 授权令牌的免费HISE商店帐户
可用功能:
- 搜索所有HISE文档、示例和论坛
- 查询UI属性、编写API脚本、模块参数、LAF函数
- 浏览代码示例和教程视频
- 访问开发工作流程和样式指南
MCP客户端配置
开放代码
配置位置:
- macOS/Linux:
~/.config/opencode/opencode.json - 窗户:
%USERPROFILE%\.config\opencode\opencode.json
{
"mcp": {
"hise": {
"type": "remote",
"url": "https://docs.hise.dev/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer abc1234..."
}
}
}
}克劳德代码(CLI)
claude mcp add --transport sse hise -- https://docs.hise.dev/mcp使用 --scope project 将配置存储在 .mcp.json (通过版本控制共享)或 --scope user 使其可用于所有项目。
克劳德桌面版
配置位置:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - 窗户:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"hise": {
"url": "https://docs.hise.dev/mcp",
"headers": {
"Authorization": "Bearer abc1234..."
}
}
}
}可用工具
| 工具 | 说明 |
|---|---|
search_hise | 搜索所有文档 |
explore_hise | 行走脚本API类关系 |
query_scripting_api | 查找API方法 |
query_ui_property | 查找UI组件属性 |
query_module_parameter | 查找模块参数 |
search_examples / get_example | 浏览代码示例 |
get_tutorial | 获取带有深度链接的视频教程部分 |
list_ui_components | 列出UI组件类型 |
list_scripting_namespaces | 列出API命名空间脚本 |
list_module_types | 列出模块类型 |
list_resources / get_resource | 访问工作流程+风格指南 |
list_laf_functions / query_laf_function | LAF功能参考(单一类型) |
get_laf_functions_for_components | 按组件类型进行批量LAF查找 |
search_forum / fetch_forum_topics | 搜索并阅读去噪论坛主题 |
get_doc_content | 获取文档页面或API方法的完整markdown |
hise_verify_parameters | 验证脚本API方法签名 |
server_status | 检查服务器状态和统计信息 |
REST API
对于不需要MCP会话握手的CLI客户端,相同的只读工具也作为无状态REST端点公开。
- OpenAPI规范:
GET /api/openapi.yaml - 工具发现:
GET /api/tools - 工具执行:
POST /api/tools/:name
例子:
curl http://localhost:3000/api/tools
curl -X POST http://localhost:3000/api/tools/query_scripting_api \
-H 'Content-Type: application/json' \
-d '{"apiCall":"Synth.addNoteOn","examples":true}'执行端点接受与MCP工具相同的JSON参数,并返回一个JSON信封 tool, ok, isError,以及 content.REST调用者接收真实的HTTP状态代码,例如 400 对于缺失的论点, 404 对于未知的工具或缺失的查找目标, 429 用于速率限制,以及 503 而索引不可用。
在当地运营(为了发展)
服务器也可以在本地托管,这在开发服务器本身或在自己的基础设施上运行时很有用。
git clone https://github.com/christoph-hart/hise_mcp_server
cd hise_mcp_server
npm install
npm run build
npm start收听 http://localhost:3000/mcp 默认情况下,REST端点位于 http://localhost:3000/api.通过以下方式覆盖端口 PORT=4406 npm start.
故障排除
远程服务器返回401 Unauthorized
- 验证您的HISE商店令牌是否有效
- 检查授权标头格式:
Bearer
工具未出现在您的AI助手中
- 配置更改后重新启动MCP客户端
- 验证配置文件路径和JSON语法
需要实时控制HISE吗?
MCP服务器本身不驱动HISE。安装 hise-cli 并使用以下命令 hise-cli -hise launch, hise-cli -script "...", hise-cli -ui set . , hise-cli -wizard run recompile。参见https://github.com/christophhart/hise-cli.
发展
拉取更新后:
git pull
npm run build开发过程中的自动重建:
npm run dev看 代理商.md 了解技术实施细节。
许可证
麻省理工学院
