HISE MCP Server

HISE MCP Server

Provides access to HISE documentation, including UI component properties, Scripting API methods, and module parameters. It features a searchable database of code snippets and best practices to assist in audio software development.

Category
访问服务器

README

HISE MCP Server

A Model Context Protocol (MCP) server for querying HISE documentation, including UI component properties, Scripting API methods, module parameter IDs, and a best-practice code snippet database.

Requirements

  • Node.js 18+ (Required - not compatible with older versions)
  • npm or yarn

Features

  • Exact Query Tools: Look up specific UI component properties, Scripting API methods, and module parameters with precise matching
  • Code Snippet Database: Browse and retrieve 100-150 code examples organized by metadata (category, tags, difficulty)
  • Best Practice Guide: Code snippets serve as a reference for AI agents implementing HISE solutions
  • Fast Lookups: Indexed data structures for O(1) exact queries
  • Type-Safe: Full TypeScript implementation

Available Tools

Exact Query Tools

  1. query_ui_property - Query UI component properties

    • Input: componentType, propertyName
    • Returns: Property details including type, default value, description, and possible values
  2. query_scripting_api - Query Scripting API methods

    • Input: namespace, methodName
    • Returns: Method signature, parameters, return type, description, and example usage
  3. query_module_parameter - Query module parameter IDs

    • Input: moduleType, parameterId
    • Returns: Parameter details including min/max values, step size, default value, and description

Code Snippet Tools

  1. list_snippets - List all available code snippets with metadata

    • Input: none
    • Returns: Array of snippet summaries (id, title, description, category, tags, difficulty)
    • Use this first to browse and discover relevant snippets
  2. get_snippet - Get full details and code for a specific snippet

    • Input: id (snippet ID from list_snippets)
    • Returns: Complete snippet with code, related APIs, and components

Listing Tools

  1. list_ui_components - List all available UI component types
  2. list_scripting_namespaces - List all available Scripting API namespaces
  3. list_module_types - List all available module types

Installation

Check Node.js Version

First, verify your Node.js version:

node --version

If you have Node.js < 18, you must upgrade. Use one of these methods:

Option 1: Using nvm (recommended on macOS/Linux):

nvm install 20
nvm use 20

Option 2: Using nvm-windows (recommended on Windows):

  1. Download nvm-windows from: https://github.com/coreybutler/nvm-windows/releases
  2. Install it, then run:
nvm install 20
nvm use 20

Option 3: Direct download: Download the LTS version from: https://nodejs.org/

Setup

  1. Clone or download this repository

  2. Install dependencies:

npm install
  1. Build the project and configure opencode (recommended):
npm run build:configure

This will:

  • Compile TypeScript to JavaScript
  • Automatically find and update your opencode config file
  • Add the HISE MCP server entry with the correct absolute path

Or manually build only:

npm run build
  1. Set up environment variables:
# Optional: Custom path to HISE data JSON file
# Default: ./data/hise-data.json
export HISE_DATA_PATH="/path/to/your/hise-data.json"

On Windows (Command Prompt):

set HISE_DATA_PATH=C:\path\to\hise-data.json

On Windows (PowerShell):

$env:HISE_DATA_PATH="C:\path\to\hise-data.json"

Usage

Running the Server

npm start

The server will start and listen for MCP connections via stdio.

Using with Claude Desktop

Add the HISE MCP server configuration to your Claude Desktop config file.

Finding the Config File

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json (usually C:\Users\<username>\AppData\Roaming\Claude\)

Configuration

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "hise": {
      "command": "node",
      "args": ["D:\\development\\projekte\\hise_mcp\\dist\\index.js"],
      "env": {
        "HISE_DATA_PATH": "D:\\development\\projekte\\hise_mcp\\data\\hise-data.json"
      }
    }
  }
}

Important: Replace the paths with your actual installation path. Use absolute paths (not relative).

Restart Claude Desktop

After adding the configuration, completely quit and restart Claude Desktop to load the MCP server.

Verification

Once connected, you can verify the server is working by asking Claude:

List all available tools from the HISE MCP server

Using with Opencode

The easiest way to configure Opencode is to use the automated script:

npm run build:configure

This will:

  • Build the TypeScript project
  • Find your opencode config file automatically
  • Add or update the HISE MCP server entry with the correct absolute path
  • Create the config directory if it doesn't exist

After running, restart Opencode to load the MCP server.

Manual Configuration

If you prefer to configure manually, add the following to your opencode.json:

Config location:

  • macOS/Linux: ~/.local/share/opencode/opencode.json
  • Windows: %USERPROFILE%\.config\opencode\opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "hise": {
      "type": "local",
      "command": ["node", "/path/to/hise_mcp_server/dist/index.js"],
      "enabled": true
    }
  }
}

Important notes:

  • Use $schema at the top for validation
  • The command must be an array with each argument as a separate element
  • Replace /path/to/hise_mcp_server/dist/index.js with your actual installation path
  • Use forward slashes on Windows or double backslashes (\\)
  • Set enabled: true to activate the server
  • After git pull, run npm run build to rebuild TypeScript

Using from Opencode

Once configured, you can use HISE MCP server tools directly in Opencode:

  1. Browse code snippets:

    Can you list all available HISE code snippets?
    
  2. Query specific data:

    What are the properties of a Knob component?
    
  3. Get full code examples:

    Show me the full code for handling MIDI note events
    
  4. Referencing by server name:

    Use the hise MCP server to find information about Synth API methods
    

Relative vs Absolute Paths

  • Opencode: Can use relative paths (["node", "./dist/index.js"]) if running from hise_mcp directory
  • Claude Desktop: Requires absolute paths (D:\development\projekte\hise_mcp\dist\index.js)

Example Queries

  1. Query a UI property:
query_ui_property(componentType="Knob", propertyName="text")
  1. Query a Scripting API method:
query_scripting_api(namespace="Synth", methodName="addNote")
  1. Query a module parameter:
query_module_parameter(moduleType="SimpleEnvelope", parameterId="Attack")
  1. List all code snippets:
list_snippets()
  1. Get a specific code snippet:
get_snippet(id="handle-midi-note-events")
  1. List available UI components:
list_ui_components()

Data Format

The server expects a JSON file with the following structure (see data/hise-data.json for a complete example):

{
  "uiComponentProperties": [
    {
      "id": "unique-id",
      "componentType": "Knob",
      "propertyName": "text",
      "propertyType": "String",
      "defaultValue": "",
      "description": "Description of the property",
      "possibleValues": ["value1", "value2"]
    }
  ],
  "scriptingAPI": [
    {
      "id": "unique-id",
      "namespace": "Synth",
      "methodName": "addNote",
      "returnType": "void",
      "parameters": [...],
      "description": "Description",
      "example": "code example"
    }
  ],
  "moduleParameters": [
    {
      "id": "unique-id",
      "moduleType": "SimpleEnvelope",
      "parameterId": "Attack",
      "parameterName": "Attack Time",
      "min": 0,
      "max": 10000,
      "step": 0.1,
      "defaultValue": 20,
      "description": "Description"
    }
  ],
  "codeSnippets": [
    {
      "id": "unique-id",
      "title": "Snippet Title",
      "description": "Detailed description",
      "category": "Category",
      "tags": ["tag1", "tag2"],
      "code": "// HISE code here",
      "relatedAPIs": ["API1", "API2"],
      "relatedComponents": ["Component1"],
      "difficulty": "intermediate"
    }
  ]
}

Data Generation

The HISE data file is expected to be auto-generated from official HISE documentation. You would typically:

  1. Scrape/parse the HISE documentation
  2. Extract UI component properties, API methods, and module parameters
  3. Collect and curate code examples
  4. Format according to the JSON schema above
  5. Save to data/hise-data.json

Architecture

  • src/types.ts - TypeScript type definitions for all data structures
  • src/data-loader.ts - Data loading, indexing, and retrieval logic
  • src/index.ts - MCP server implementation with tool definitions

Data Access Pattern

For code snippets, use a two-step process:

  1. Call list_snippets() to browse available snippets with metadata
  2. Call get_snippet(id) to retrieve full code for specific snippets

This keeps responses lightweight and allows AI agents to select only relevant examples.

Development

Development mode (with auto-rebuild):

npm run dev

TypeScript compilation:

npm run build

Updating after git pull

After pulling changes from the repository:

git pull
npm run build:configure

This will rebuild TypeScript and update the opencode config with the new code. Then restart Opencode.

Troubleshooting

Server fails to start

  • Ensure all dependencies are installed (npm install)
  • Verify the data file path is correct
  • Check the JSON data file is valid JSON format

Exact queries returning no results

  • Verify exact spelling (case-insensitive but exact match otherwise)
  • Use list_* tools to discover available values
  • Check that your data JSON contains the requested items

Code snippets not found

  • Call list_snippets() to see all available snippet IDs
  • Verify the snippet ID is correct (use exact ID from list results)
  • Check that your data JSON contains the snippet

License

MIT

Contributing

Contributions are welcome! Please ensure any code examples added follow HISE best practices and are well-documented.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选