hydrogen-mcp-server 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hydrogen_mcp_server-0.3.1/.env.example +10 -0
- hydrogen_mcp_server-0.3.1/.gitattributes +2 -0
- hydrogen_mcp_server-0.3.1/.github/workflows/quality.yml +152 -0
- hydrogen_mcp_server-0.3.1/.github/workflows/release.yml +78 -0
- hydrogen_mcp_server-0.3.1/.gitignore +12 -0
- hydrogen_mcp_server-0.3.1/.pre-commit-config.yaml +8 -0
- hydrogen_mcp_server-0.3.1/.python-version +1 -0
- hydrogen_mcp_server-0.3.1/AGENTS.md +8 -0
- hydrogen_mcp_server-0.3.1/CHANGELOG.md +55 -0
- hydrogen_mcp_server-0.3.1/LICENSE +21 -0
- hydrogen_mcp_server-0.3.1/PKG-INFO +255 -0
- hydrogen_mcp_server-0.3.1/PLAN.md +121 -0
- hydrogen_mcp_server-0.3.1/PROJECT_BRIEF.md +34 -0
- hydrogen_mcp_server-0.3.1/README.md +226 -0
- hydrogen_mcp_server-0.3.1/docs/assets/hydrogen-banner.jpg +0 -0
- hydrogen_mcp_server-0.3.1/pyproject.toml +72 -0
- hydrogen_mcp_server-0.3.1/src/hydrogen_mcp/__init__.py +1 -0
- hydrogen_mcp_server-0.3.1/src/hydrogen_mcp/audio.py +482 -0
- hydrogen_mcp_server-0.3.1/src/hydrogen_mcp/desktop.py +459 -0
- hydrogen_mcp_server-0.3.1/src/hydrogen_mcp/files.py +322 -0
- hydrogen_mcp_server-0.3.1/src/hydrogen_mcp/midi.py +634 -0
- hydrogen_mcp_server-0.3.1/src/hydrogen_mcp/native.py +452 -0
- hydrogen_mcp_server-0.3.1/src/hydrogen_mcp/osc.py +310 -0
- hydrogen_mcp_server-0.3.1/src/hydrogen_mcp/project.py +1066 -0
- hydrogen_mcp_server-0.3.1/src/hydrogen_mcp/server.py +783 -0
- hydrogen_mcp_server-0.3.1/tests/fixtures/audio/tone.aiff +0 -0
- hydrogen_mcp_server-0.3.1/tests/fixtures/audio/tone.au +0 -0
- hydrogen_mcp_server-0.3.1/tests/fixtures/audio/tone.caf +0 -0
- hydrogen_mcp_server-0.3.1/tests/fixtures/audio/tone.flac +0 -0
- hydrogen_mcp_server-0.3.1/tests/fixtures/audio/tone.mp3 +0 -0
- hydrogen_mcp_server-0.3.1/tests/fixtures/audio/tone.ogg +0 -0
- hydrogen_mcp_server-0.3.1/tests/fixtures/audio/tone.opus +0 -0
- hydrogen_mcp_server-0.3.1/tests/fixtures/audio/tone.voc +0 -0
- hydrogen_mcp_server-0.3.1/tests/fixtures/audio/tone.w64 +0 -0
- hydrogen_mcp_server-0.3.1/tests/fixtures/audio/tone.wav +0 -0
- hydrogen_mcp_server-0.3.1/tests/test_native.py +861 -0
- hydrogen_mcp_server-0.3.1/tests/test_server.py +1437 -0
- hydrogen_mcp_server-0.3.1/uv.lock +1840 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Optional values. Pass a copy as .env to uv run --env-file.
|
|
2
|
+
# Windows examples. The README lists the defaults for macOS and Linux.
|
|
3
|
+
# HYDROGEN_INSTALL_DIR=C:/Program Files/Hydrogen
|
|
4
|
+
# HYDROGEN_APP=C:/Program Files/Hydrogen/hydrogen.exe
|
|
5
|
+
# HYDROGEN_CLI=C:/Program Files/Hydrogen/h2cli.exe
|
|
6
|
+
# HYDROGEN_OSC_PORT=9000
|
|
7
|
+
# HYDROGEN_CONFIG=C:/path/to/hydrogen.conf
|
|
8
|
+
# HYDROGEN_USER_DATA=C:/path/to/user/data
|
|
9
|
+
# HYDROGEN_SYSTEM_DATA=C:/Program Files/Hydrogen/data
|
|
10
|
+
# HYDROGEN_PROJECT_DIR=C:/path/to/Hydrogen Projects
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
name: Checks
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
verify:
|
|
14
|
+
name: Quality gates (Windows, Python 3.13)
|
|
15
|
+
runs-on: windows-latest
|
|
16
|
+
timeout-minutes: 15
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
19
|
+
with:
|
|
20
|
+
persist-credentials: false
|
|
21
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
22
|
+
with:
|
|
23
|
+
version: "0.12.7"
|
|
24
|
+
python-version: "3.13"
|
|
25
|
+
enable-cache: false
|
|
26
|
+
- name: Install locked dependencies
|
|
27
|
+
run: uv sync --locked
|
|
28
|
+
- name: Check formatting
|
|
29
|
+
run: uv run --locked ruff format --check .
|
|
30
|
+
- name: Lint
|
|
31
|
+
run: uv run --locked ruff check .
|
|
32
|
+
- name: Check types
|
|
33
|
+
run: uv run --locked mypy
|
|
34
|
+
- name: Run protocol tests
|
|
35
|
+
run: uv run --locked pytest -q
|
|
36
|
+
- name: Scan Python source
|
|
37
|
+
run: uv run --locked bandit -q -r src
|
|
38
|
+
- name: Verify dependencies
|
|
39
|
+
run: uv run --locked deptry .
|
|
40
|
+
- name: Find unused code
|
|
41
|
+
run: uv run --locked vulture src tests --min-confidence 80
|
|
42
|
+
- name: Audit installed packages for known vulnerabilities
|
|
43
|
+
run: uv run --locked pip-audit --local --progress-spinner off
|
|
44
|
+
- name: Build wheel
|
|
45
|
+
run: uv build --no-sources
|
|
46
|
+
- name: Run the built wheel in a clean environment
|
|
47
|
+
shell: bash
|
|
48
|
+
run: uv run --isolated --no-project --with dist/*.whl hydrogen-mcp --version
|
|
49
|
+
|
|
50
|
+
tests:
|
|
51
|
+
name: Tests (${{ matrix.os }}, Python ${{ matrix.python }})
|
|
52
|
+
runs-on: ${{ matrix.os }}
|
|
53
|
+
timeout-minutes: 15
|
|
54
|
+
strategy:
|
|
55
|
+
fail-fast: false
|
|
56
|
+
matrix:
|
|
57
|
+
os: [ubuntu-latest, macos-latest]
|
|
58
|
+
python: ["3.13", "3.14"]
|
|
59
|
+
include:
|
|
60
|
+
- os: windows-latest
|
|
61
|
+
python: "3.14"
|
|
62
|
+
steps:
|
|
63
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
64
|
+
with:
|
|
65
|
+
persist-credentials: false
|
|
66
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
67
|
+
with:
|
|
68
|
+
version: "0.12.7"
|
|
69
|
+
python-version: ${{ matrix.python }}
|
|
70
|
+
enable-cache: false
|
|
71
|
+
- name: Install locked dependencies
|
|
72
|
+
run: uv sync --locked
|
|
73
|
+
- name: Run protocol tests
|
|
74
|
+
run: uv run --locked pytest -q
|
|
75
|
+
|
|
76
|
+
native-linux:
|
|
77
|
+
name: Hydrogen 1.2.7 on Linux
|
|
78
|
+
runs-on: ubuntu-latest
|
|
79
|
+
timeout-minutes: 20
|
|
80
|
+
env:
|
|
81
|
+
HYDROGEN_URL: https://github.com/hydrogen-music/hydrogen/releases/download/1.2.7/Hydrogen-1.2.7-x86_64.AppImage
|
|
82
|
+
HYDROGEN_SHA256: 4fa9e8e2f506f8380fc0b511a36c4ae72cbe0dc8b0ecd0fc0f7518443750b1bf
|
|
83
|
+
steps:
|
|
84
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
85
|
+
with:
|
|
86
|
+
persist-credentials: false
|
|
87
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
88
|
+
with:
|
|
89
|
+
version: "0.12.7"
|
|
90
|
+
python-version: "3.13"
|
|
91
|
+
enable-cache: false
|
|
92
|
+
- name: Install Hydrogen, a virtual display and a silent sound card
|
|
93
|
+
run: |
|
|
94
|
+
sudo apt-get update
|
|
95
|
+
sudo apt-get install --yes --no-install-recommends xvfb pulseaudio libjack-jackd2-0 libasound2t64 libegl1 libopengl0 libfontconfig1 libdbus-1-3 libxkbcommon-x11-0 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-xinerama0 libxcb-xkb1
|
|
96
|
+
curl --fail --silent --show-error --location --output "$RUNNER_TEMP/Hydrogen.AppImage" "$HYDROGEN_URL"
|
|
97
|
+
echo "$HYDROGEN_SHA256 $RUNNER_TEMP/Hydrogen.AppImage" | sha256sum --check
|
|
98
|
+
chmod +x "$RUNNER_TEMP/Hydrogen.AppImage"
|
|
99
|
+
cd "$RUNNER_TEMP"
|
|
100
|
+
./Hydrogen.AppImage --appimage-extract > /dev/null
|
|
101
|
+
echo "HYDROGEN_INSTALL_DIR=$RUNNER_TEMP/squashfs-root" >> "$GITHUB_ENV"
|
|
102
|
+
- name: Install locked dependencies
|
|
103
|
+
run: uv sync --locked
|
|
104
|
+
- name: Check the detected installation
|
|
105
|
+
run: uv run --locked hydrogen-mcp --check
|
|
106
|
+
- name: Run the native suite
|
|
107
|
+
env:
|
|
108
|
+
HYDROGEN_NATIVE_TESTS: "1"
|
|
109
|
+
run: |
|
|
110
|
+
pulseaudio --start --exit-idle-time=-1
|
|
111
|
+
pactl load-module module-null-sink sink_name=silence
|
|
112
|
+
xvfb-run --auto-servernum uv run --locked pytest -q -rs --basetemp "$RUNNER_TEMP/pytest" tests/test_native.py
|
|
113
|
+
- name: Show the Hydrogen log after a failure
|
|
114
|
+
if: failure()
|
|
115
|
+
run: tail -n 120 "$HOME/.hydrogen/hydrogen.log"
|
|
116
|
+
|
|
117
|
+
native-macos:
|
|
118
|
+
name: Hydrogen 1.2.7 on macOS
|
|
119
|
+
runs-on: macos-latest
|
|
120
|
+
timeout-minutes: 20
|
|
121
|
+
env:
|
|
122
|
+
HYDROGEN_URL: https://github.com/hydrogen-music/hydrogen/releases/download/1.2.7/Hydrogen-1.2.7.dmg
|
|
123
|
+
HYDROGEN_SHA256: 3c7427fadcb492da15786cb14f7b6b9728ebbc9fad7254eedffc0ffb85faf127
|
|
124
|
+
steps:
|
|
125
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
126
|
+
with:
|
|
127
|
+
persist-credentials: false
|
|
128
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
129
|
+
with:
|
|
130
|
+
version: "0.12.7"
|
|
131
|
+
python-version: "3.13"
|
|
132
|
+
enable-cache: false
|
|
133
|
+
- name: Install Hydrogen
|
|
134
|
+
run: |
|
|
135
|
+
curl --fail --silent --show-error --location --output "$RUNNER_TEMP/Hydrogen.dmg" "$HYDROGEN_URL"
|
|
136
|
+
echo "$HYDROGEN_SHA256 $RUNNER_TEMP/Hydrogen.dmg" | shasum --algorithm 256 --check
|
|
137
|
+
hdiutil attach "$RUNNER_TEMP/Hydrogen.dmg" -nobrowse -readonly -mountpoint "$RUNNER_TEMP/hydrogen-volume"
|
|
138
|
+
cp -R "$RUNNER_TEMP/hydrogen-volume/Hydrogen.app" /Applications/
|
|
139
|
+
hdiutil detach "$RUNNER_TEMP/hydrogen-volume"
|
|
140
|
+
file /Applications/Hydrogen.app/Contents/MacOS/hydrogen
|
|
141
|
+
- name: Install locked dependencies
|
|
142
|
+
run: uv sync --locked
|
|
143
|
+
- name: Show the detected installation
|
|
144
|
+
# The official macOS app has no h2cli, so the check exits with status 1.
|
|
145
|
+
run: uv run --locked hydrogen-mcp --check || test $? -eq 1
|
|
146
|
+
- name: Run the native suite
|
|
147
|
+
env:
|
|
148
|
+
HYDROGEN_NATIVE_TESTS: "1"
|
|
149
|
+
run: uv run --locked pytest -q -rs tests/test_native.py
|
|
150
|
+
- name: Show the Hydrogen log after a failure
|
|
151
|
+
if: failure()
|
|
152
|
+
run: tail -n 120 "$HOME/Library/Application Support/Hydrogen/hydrogen.log"
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
publish:
|
|
12
|
+
name: Build and publish the GitHub release
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
timeout-minutes: 15
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
19
|
+
with:
|
|
20
|
+
persist-credentials: false
|
|
21
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
22
|
+
with:
|
|
23
|
+
version: "0.12.7"
|
|
24
|
+
python-version: "3.13"
|
|
25
|
+
enable-cache: false
|
|
26
|
+
- name: Require the tag to match the package version
|
|
27
|
+
env:
|
|
28
|
+
TAG: ${{ github.ref_name }}
|
|
29
|
+
run: test "v$(uv version --short)" = "$TAG"
|
|
30
|
+
- name: Install locked dependencies
|
|
31
|
+
run: uv sync --locked
|
|
32
|
+
- name: Run protocol tests
|
|
33
|
+
run: uv run --locked pytest -q
|
|
34
|
+
- name: Build wheel and source distribution
|
|
35
|
+
run: uv build --no-sources
|
|
36
|
+
- name: Run the built wheel in a clean environment
|
|
37
|
+
run: uv run --isolated --no-project --with dist/*.whl hydrogen-mcp --version
|
|
38
|
+
- name: Write checksums and release notes
|
|
39
|
+
run: |
|
|
40
|
+
version="$(uv version --short)"
|
|
41
|
+
(cd dist && sha256sum -- * > SHA256SUMS.txt)
|
|
42
|
+
awk -v heading="## $version " '
|
|
43
|
+
index($0, heading) == 1 { found = 1; next }
|
|
44
|
+
found && /^## / { exit }
|
|
45
|
+
found { print }
|
|
46
|
+
' CHANGELOG.md > "$RUNNER_TEMP/notes.md"
|
|
47
|
+
test -s "$RUNNER_TEMP/notes.md"
|
|
48
|
+
- name: Publish the release
|
|
49
|
+
env:
|
|
50
|
+
GH_TOKEN: ${{ github.token }}
|
|
51
|
+
TAG: ${{ github.ref_name }}
|
|
52
|
+
run: gh release create "$TAG" dist/* --repo "$GITHUB_REPOSITORY" --title "$TAG" --notes-file "$RUNNER_TEMP/notes.md" --verify-tag
|
|
53
|
+
|
|
54
|
+
pypi:
|
|
55
|
+
name: Publish the release files to PyPI
|
|
56
|
+
needs: publish
|
|
57
|
+
runs-on: ubuntu-latest
|
|
58
|
+
timeout-minutes: 10
|
|
59
|
+
environment:
|
|
60
|
+
name: pypi
|
|
61
|
+
url: https://pypi.org/project/hydrogen-mcp-server/
|
|
62
|
+
permissions:
|
|
63
|
+
contents: read
|
|
64
|
+
id-token: write
|
|
65
|
+
steps:
|
|
66
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
67
|
+
with:
|
|
68
|
+
version: "0.12.7"
|
|
69
|
+
enable-cache: false
|
|
70
|
+
- name: Download the files of the GitHub release and check them
|
|
71
|
+
env:
|
|
72
|
+
GH_TOKEN: ${{ github.token }}
|
|
73
|
+
TAG: ${{ github.ref_name }}
|
|
74
|
+
run: |
|
|
75
|
+
gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --dir dist
|
|
76
|
+
(cd dist && sha256sum --check SHA256SUMS.txt && rm SHA256SUMS.txt)
|
|
77
|
+
- name: Publish with trusted publishing
|
|
78
|
+
run: uv publish --trusted-publishing always dist/*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Project instructions
|
|
2
|
+
|
|
3
|
+
- Use the Caveman skill for conversation. End each session with next steps and blockers.
|
|
4
|
+
- Update the README, changelog and delivery plan with behavior changes. Update the brief when scope changes.
|
|
5
|
+
- Check existing files before adding new modules. Extend the code that owns the behavior.
|
|
6
|
+
- Keep protocol validation, file access, OSC encoding and Hydrogen's file format separate. Keep filesystem writes inside their declared roots and report the evidence behind live results.
|
|
7
|
+
- Test observable outcomes using disposable project and profile data. Run the quality commands in the README and the relevant red drill for boundary changes.
|
|
8
|
+
- Keep UI code accessible and responsive if a UI is added.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.3.1 — 2026-11-29
|
|
4
|
+
|
|
5
|
+
- Publish to PyPI, so every agent starts the server with `uvx hydrogen-mcp-server`.
|
|
6
|
+
- Add the `hydrogen-mcp-server` command next to `hydrogen-mcp`.
|
|
7
|
+
- Use full links in the README so it reads correctly on PyPI.
|
|
8
|
+
|
|
9
|
+
## 0.3.0 — 2026-11-29
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Start a song from nothing: `hydrogen_edit_song` works without a template, and the `drumkit` edit gives a song the instruments of any installed kit.
|
|
14
|
+
- `hydrogen_import_midi` converts Standard MIDI Files into patterns and an arrangement, with time signatures, tempo changes, markers, a pitched instrument for melodic notes, and optional note lengths.
|
|
15
|
+
- `hydrogen_create_drumkit` builds a validated drumkit from the instruments of a song.
|
|
16
|
+
- `hydrogen_read_audio` reports the length and format of every audio format Hydrogen renders, and the peak level of PCM and float files in WAV, Wave64, AIFF, AU, and CAF.
|
|
17
|
+
- `add_notes` and `remove_patterns` song edits, the metronome volume, and stop-note and hi-hat group settings for instruments.
|
|
18
|
+
- `hydrogen_launch` waits until Hydrogen answers and its interface is ready, can start it with OSC enabled from a copy of the preferences, and declines to start a second instance on an OSC port that already answers.
|
|
19
|
+
- `hydrogen_status` explains missing OSC feedback and reports whether the Hydrogen build has OSC. The official macOS app is built without it.
|
|
20
|
+
- `hydrogen-mcp --version` and `--check`, and the server version in `hydrogen_status`.
|
|
21
|
+
- Wheels on GitHub releases for `uvx` installs, with setup commands for Claude Code, Codex, Gemini, Grok, VS Code, Claude Desktop, and Cursor.
|
|
22
|
+
- Default paths for macOS, `HYDROGEN_INSTALL_DIR` for an extracted Linux AppImage, and native test runs on Linux and macOS in CI.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- MIDI export follows Hydrogen's own exporter more closely: it writes time signatures, timeline tags as markers, and velocity automation, and it reports skipped notes. MIDI import and export share one note mapping.
|
|
27
|
+
- `hydrogen_read_song` reports mute, timeline, swing, humanize, metronome, playback track, velocity automation, and the drumkit folder. `hydrogen_read_instrument` also reads drumkit manifests, and `hydrogen_read_playlist` returns script paths.
|
|
28
|
+
- New sample instruments get the first unused MIDI output note instead of sharing note 36.
|
|
29
|
+
- `hydrogen_edit_song` takes `source` as an optional argument. Calls that pass it by name work as before.
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- `hydrogen_read_song` returned no pan for songs saved by Hydrogen 1.2, which stores pan as a left and right pair.
|
|
34
|
+
- The server failed to start on Linux and macOS with Python 3.13.
|
|
35
|
+
- A note that ended on the tick where the same pitch started again could be cut off in exported MIDI files.
|
|
36
|
+
- MIDI files with system messages or running status after a meta event were misread.
|
|
37
|
+
- Drumkit archives with `./` sample names were rejected, and archives with names that differ only by case were rejected on case-sensitive file systems.
|
|
38
|
+
- File names such as `aux.wav` were rejected on Linux and macOS.
|
|
39
|
+
- Output failed on drives without hard links, such as exFAT.
|
|
40
|
+
- A damaged preferences file made `hydrogen_status` fail.
|
|
41
|
+
- Windows desktop captures were upside down, so screenshot coordinates did not match pointer commands.
|
|
42
|
+
|
|
43
|
+
## 0.2.0 — 2026-11-28
|
|
44
|
+
|
|
45
|
+
- Map all 67 Hydrogen 1.2.7 OSC action names to their MCP routes.
|
|
46
|
+
- Add layered sample instruments, sample region and loop edits, playback-track and velocity automation edits, and preservation of relative assets across song copies.
|
|
47
|
+
- Add instrument stem rendering, drumkit archive export and native renderer format and quality options.
|
|
48
|
+
- Add Windows desktop capture and input for Hydrogen's menus and dialogs.
|
|
49
|
+
|
|
50
|
+
## 0.1.0 — 2026-11-28
|
|
51
|
+
|
|
52
|
+
- Added the Python FastMCP server, local stdio transport, OSC control catalog and mixer feedback.
|
|
53
|
+
- Added project, factory and personal library discovery, native file editing and verified live save.
|
|
54
|
+
- Added Hydrogen CLI audio rendering, Standard MIDI File export and drumkit validation, import and upgrade.
|
|
55
|
+
- Added stdio, file safety, OSC wire tests and an opt-in test against the real Windows Hydrogen app.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Randy Northrup
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: hydrogen-mcp-server
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: Local MCP server for the Hydrogen drum machine: live OSC control, song and drumkit editing, MIDI import and export, and audio rendering
|
|
5
|
+
Project-URL: Repository, https://github.com/RandyNorthrup/hydrogen-mcp-server
|
|
6
|
+
Project-URL: Issues, https://github.com/RandyNorthrup/hydrogen-mcp-server/issues
|
|
7
|
+
Project-URL: Changelog, https://github.com/RandyNorthrup/hydrogen-mcp-server/blob/main/CHANGELOG.md
|
|
8
|
+
Project-URL: Releases, https://github.com/RandyNorthrup/hydrogen-mcp-server/releases
|
|
9
|
+
Author: Randy Northrup
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: drum-machine,fastmcp,hydrogen,mcp,midi,model-context-protocol,osc
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
15
|
+
Classifier: Operating System :: MacOS
|
|
16
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: MIDI
|
|
21
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Sound Synthesis
|
|
22
|
+
Requires-Python: <3.15,>=3.13
|
|
23
|
+
Requires-Dist: defusedxml==0.7.1
|
|
24
|
+
Requires-Dist: fastmcp==4.2.6
|
|
25
|
+
Requires-Dist: pillow==13.0.0; sys_platform == 'win32'
|
|
26
|
+
Requires-Dist: pydantic==2.14.4
|
|
27
|
+
Requires-Dist: pywin32==312; sys_platform == 'win32'
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
|
|
30
|
+
# Hydrogen MCP Server
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+
|
|
34
|
+
**Sequence, mix, and render Hydrogen projects from your local MCP client.**
|
|
35
|
+
|
|
36
|
+
[](https://github.com/RandyNorthrup/hydrogen-mcp-server/actions/workflows/quality.yml)
|
|
37
|
+
[](https://pypi.org/project/hydrogen-mcp-server/)
|
|
38
|
+
[](https://pypistats.org/packages/hydrogen-mcp-server)
|
|
39
|
+
[](https://github.com/RandyNorthrup/hydrogen-mcp-server/stargazers)
|
|
40
|
+
[](https://www.python.org/)
|
|
41
|
+
[](https://gofastmcp.com/)
|
|
42
|
+
[](#platform-support)
|
|
43
|
+
[](https://github.com/RandyNorthrup/hydrogen-mcp-server/blob/main/LICENSE)
|
|
44
|
+
|
|
45
|
+
[Quick start](#quick-start) · [Add it to your agent](#add-it-to-your-agent) · [Tool overview](#tool-overview) · [First groove](#make-a-two-bar-groove) · [Configuration](#configuration)
|
|
46
|
+
|
|
47
|
+
This independent integration exposes **31 MCP tools** and maps **67 OSC action names** from Hydrogen 1.2.7. It supports live transport and mixer control, native project editing with any installed drumkit, drumkit creation, MIDI import and export, audio rendering and inspection, and Windows desktop controls for Hydrogen menus and dialogs.
|
|
48
|
+
|
|
49
|
+
## Quick start
|
|
50
|
+
|
|
51
|
+
1. Install [uv](https://docs.astral.sh/uv/) and [Hydrogen](https://hydrogen-music.org/downloads/). The Windows Hydrogen installer includes `hydrogen.exe` and `h2cli.exe`. uv downloads Python 3.13 by itself when your system has none.
|
|
52
|
+
2. Check that the server finds Hydrogen. The command prints the detected paths and exits with status 1 when the app or `h2cli` is missing.
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
uvx hydrogen-mcp-server --check
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
3. [Add the server to your agent](#add-it-to-your-agent), then ask it for a beat: *"Make a two-bar rock groove with the GM kit and render it to WAV."*
|
|
59
|
+
|
|
60
|
+
The server runs on your machine over stdio. It needs no account, API key, or network service. It is tested against Hydrogen 1.2.7 on Windows, Linux, and macOS. See [platform support](#platform-support) for what each platform offers.
|
|
61
|
+
|
|
62
|
+
## Add it to your agent
|
|
63
|
+
|
|
64
|
+
Every MCP client starts the same command. `uvx` fetches the package from PyPI once and caches it.
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
uvx hydrogen-mcp-server
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
| Agent | Setup |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| Claude Code | `claude mcp add --scope user hydrogen -- uvx hydrogen-mcp-server` |
|
|
73
|
+
| Codex CLI | `codex mcp add hydrogen -- uvx hydrogen-mcp-server` |
|
|
74
|
+
| Gemini CLI | `gemini mcp add --scope user hydrogen uvx hydrogen-mcp-server` |
|
|
75
|
+
| Grok CLI | `grok mcp add hydrogen uvx hydrogen-mcp-server` |
|
|
76
|
+
| VS Code and GitHub Copilot | Add the `servers` entry below to `.vscode/mcp.json` |
|
|
77
|
+
| Claude Desktop, Cursor, and other clients | Add the `mcpServers` entry below to the client's MCP settings file |
|
|
78
|
+
|
|
79
|
+
Clients with an `mcpServers` block share one format. Claude Desktop opens its file from **Settings → Developer → Edit Config**. Cursor reads `~/.cursor/mcp.json` or `.cursor/mcp.json` in a project, and Gemini CLI reads `~/.gemini/settings.json`.
|
|
80
|
+
|
|
81
|
+
```json
|
|
82
|
+
{
|
|
83
|
+
"mcpServers": {
|
|
84
|
+
"hydrogen": {
|
|
85
|
+
"command": "uvx",
|
|
86
|
+
"args": ["hydrogen-mcp-server"]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
VS Code names the block `servers` and states the transport.
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"servers": {
|
|
97
|
+
"hydrogen": {
|
|
98
|
+
"type": "stdio",
|
|
99
|
+
"command": "uvx",
|
|
100
|
+
"args": ["hydrogen-mcp-server"]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
An installed package keeps your songs and renders in `~/Hydrogen Projects`. Add an `env` block to change that folder or any other [setting](#configuration). `uvx` keeps the version it fetched first: run `uvx hydrogen-mcp-server@latest` once to upgrade, or pin a version with `uvx hydrogen-mcp-server@0.3.1`. Each [GitHub release](https://github.com/RandyNorthrup/hydrogen-mcp-server/releases) carries the same wheel with its checksums. To follow unreleased work, use `uvx --from git+https://github.com/RandyNorthrup/hydrogen-mcp-server hydrogen-mcp`.
|
|
107
|
+
|
|
108
|
+
### Run from a checkout
|
|
109
|
+
|
|
110
|
+
```sh
|
|
111
|
+
git clone https://github.com/RandyNorthrup/hydrogen-mcp-server.git
|
|
112
|
+
cd hydrogen-mcp-server
|
|
113
|
+
uv sync --locked --no-dev
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Register the absolute path of `.venv/Scripts/hydrogen-mcp.exe` on Windows, or `.venv/bin/hydrogen-mcp` on Linux and macOS, as the command with no arguments. A checkout keeps projects in its own `projects` folder.
|
|
117
|
+
|
|
118
|
+
### Connect to Hydrogen for live control
|
|
119
|
+
|
|
120
|
+
Ask your agent to open Hydrogen, or call `hydrogen_launch`. It starts the app with OSC enabled, waits until Hydrogen answers and its interface has loaded, and reports `osc_ready` and `interface_ready`. When your saved preferences have OSC off or use another port, the launch uses a copy of them with OSC on. The copy lives in your projects folder, and your own preferences file stays unchanged. The launch declines to start a second Hydrogen while one already answers on the OSC port.
|
|
121
|
+
|
|
122
|
+
To control a Hydrogen that you start yourself:
|
|
123
|
+
|
|
124
|
+
1. Open **Preferences → OSC** in Hydrogen.
|
|
125
|
+
2. Enable **OSC support** and **OSC feedback**. Use port `9000` or set `HYDROGEN_OSC_PORT` to match your app.
|
|
126
|
+
3. Restart Hydrogen. It opens its OSC listener at startup.
|
|
127
|
+
|
|
128
|
+
`hydrogen_status` shows a timestamp in `osc.last_feedback_received_at` once Hydrogen answers. Until then, `osc.hint` names the setting to change, and `osc_supported` tells you whether this Hydrogen build has OSC at all. Offline project editing and `h2cli` audio export work with the desktop app closed. Keep trusted source files in the configured project or library roots.
|
|
129
|
+
|
|
130
|
+
## Tool overview
|
|
131
|
+
|
|
132
|
+
| Workflow | Tools |
|
|
133
|
+
| --- | --- |
|
|
134
|
+
| Discover files, live controls, and feedback | `hydrogen_list`, `hydrogen_status`, `hydrogen_controls` |
|
|
135
|
+
| Control transport, recording, BPM, mixer, timeline, MIDI triggers, and JACK | `hydrogen_live` |
|
|
136
|
+
| Launch Hydrogen and work with the active song | `hydrogen_launch`, `hydrogen_open_song`, `hydrogen_new_song`, `hydrogen_save_as` |
|
|
137
|
+
| Compose and inspect songs, patterns, instruments, and layered samples | `hydrogen_read_song`, `hydrogen_edit_song`, `hydrogen_read_instrument`, `hydrogen_read_pattern`, `hydrogen_write_pattern`, `hydrogen_add_live_pattern`, `hydrogen_open_pattern` |
|
|
138
|
+
| Read and create playlists | `hydrogen_read_playlist`, `hydrogen_write_playlist` |
|
|
139
|
+
| Create, load, inspect, validate, import, upgrade, and export drumkits | `hydrogen_create_drumkit`, `hydrogen_load_drumkit`, `hydrogen_read_drumkit`, `hydrogen_validate_drumkit`, `hydrogen_import_drumkit`, `hydrogen_export_drumkit` |
|
|
140
|
+
| Render a mix, export isolated stereo stems, and check the result | `hydrogen_render`, `hydrogen_render_stems`, `hydrogen_read_audio` |
|
|
141
|
+
| Convert between songs and Standard MIDI Files | `hydrogen_import_midi`, `hydrogen_export_midi` |
|
|
142
|
+
| View and interact with a Hydrogen window on Windows | `hydrogen_desktop_windows`, `hydrogen_desktop_image`, `hydrogen_desktop_input` |
|
|
143
|
+
|
|
144
|
+
The `hydrogen://reference/osc` resource lists the action signatures. For live controls, `sent_unconfirmed` means the UDP datagram was sent. Mixer feedback comes back through `hydrogen_status`. `hydrogen_save_as` verifies the saved song file and changes the active save path. Save current edits before opening or creating another live song. To change the notes or instruments of the open song, call `hydrogen_save_as`, edit that file with `hydrogen_edit_song`, and open the result with `hydrogen_open_song`.
|
|
145
|
+
|
|
146
|
+
For Windows desktop control, list the windows, capture a selected window, then send client-relative pointer coordinates or keyboard input to that window. The feature requires an interactive Windows session. Plugins and JACK operations depend on support in the installed Hydrogen build.
|
|
147
|
+
|
|
148
|
+
## Make a two-bar groove
|
|
149
|
+
|
|
150
|
+
Ask your MCP client to create two bars with the factory GM kit and export a stereo WAV. To call the tools directly, send this payload to `hydrogen_edit_song`. With no `source`, the song starts blank and takes its instruments from the drumkit.
|
|
151
|
+
|
|
152
|
+
```json
|
|
153
|
+
{
|
|
154
|
+
"output": "Grooves/first-beat.h2song",
|
|
155
|
+
"edit": {
|
|
156
|
+
"name": "First beat",
|
|
157
|
+
"bpm": 110,
|
|
158
|
+
"drumkit": { "scope": "factory", "path": "drumkits/GMRockKit/drumkit.xml" },
|
|
159
|
+
"patterns": [
|
|
160
|
+
{
|
|
161
|
+
"name": "Beat",
|
|
162
|
+
"notes": [
|
|
163
|
+
{ "instrument": 0, "position": 0 },
|
|
164
|
+
{ "instrument": 0, "position": 48 },
|
|
165
|
+
{ "instrument": 0, "position": 96 },
|
|
166
|
+
{ "instrument": 0, "position": 144 }
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"arrangement": [["Beat"], ["Beat"]]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Then send this payload to `hydrogen_render`.
|
|
176
|
+
|
|
177
|
+
```json
|
|
178
|
+
{
|
|
179
|
+
"source": { "path": "Grooves/first-beat.h2song" },
|
|
180
|
+
"output": "Grooves/first-beat.wav"
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Send `{ "source": { "path": "Grooves/first-beat.wav" } }` to `hydrogen_read_audio` to confirm the length and peak level. Both files appear in the `Grooves` folder of your projects folder. File references use paths relative to `projects`, `user`, or `factory`. Discover those paths with `hydrogen_list`. Every edit writes a new file and leaves existing files untouched, so choose a new output path for each version. Drumkit imports can also create a folder in the user library.
|
|
185
|
+
|
|
186
|
+
### Editing and rendering details
|
|
187
|
+
|
|
188
|
+
- **Templates and drumkits.** Pass a `source` song to edit a copy of it, or omit it to start blank. Set `drumkit` to a `drumkit.xml` manifest from `hydrogen_list` to replace the instruments. Notes for instrument IDs missing from the new kit are removed.
|
|
189
|
+
- **Notes and timing.** Use instrument IDs from `hydrogen_read_song` for offline edits. Hydrogen uses 48 ticks per quarter note and 192 ticks for a 4/4 bar. In a pattern edit, `notes` replaces every note and `add_notes` keeps the existing ones. `remove_patterns` deletes patterns from the song, its arrangement, and its virtual links. Live OSC indexes are zero-based except for one-based mixer `strip` positions.
|
|
190
|
+
- **Audio.** Hydrogen renders WAV, AIFF, FLAC, Ogg Vorbis, Opus, AU, CAF, Wave64, VOC, and MP3. MP3 and Opus need a Hydrogen build whose audio library includes those codecs, as the Windows build does. Use 48 kHz for Opus and 8-bit PCM for VOC. Stems are separate stereo WAVs rendered by Hydrogen.
|
|
191
|
+
- **Audio checks.** `hydrogen_read_audio` reports channels, sample rate, frames, and duration for every format Hydrogen renders. PCM and float files in WAV, Wave64, AIFF, AU, and CAF also report peak level and a `silent` flag. A silent render usually means Hydrogen could not find the samples. Use the frame count of a sample when you trim or loop it.
|
|
192
|
+
- **MIDI export.** `hydrogen_export_midi` writes what the MIDI export of Hydrogen writes: the arrangement on the grid, each note on the MIDI output note and channel of its instrument, and channel 10 for instruments without a channel. A note that plays its whole sample lasts 12 ticks. The file also carries tempo markers, time signatures taken from the pattern sizes, timeline tags as markers, and velocity automation. Swing, humanize, and lead or lag belong to playback and stay out of the file. `skipped_notes` counts notes that make no sound (zero velocity, zero probability, or automation at zero), notes outside their pattern or without an instrument, and notes outside the MIDI pitch range. A column whose length is no multiple of three ticks has no MIDI time signature and is counted in `columns_without_time_signature`.
|
|
193
|
+
- **MIDI import.** `hydrogen_import_midi` reads format 0 and 1 files and writes one pattern per distinct bar. Instruments come from a template song or a drumkit. A MIDI note plays the instrument with that MIDI output note, and the result lists unmapped note numbers. Set `pitched_instrument` to play all other notes as keys of one instrument, for a bass line or melody. Set `channel` to read one channel, such as 10 for drums. Notes play their whole sample unless `note_lengths` keeps the MIDI durations. Time signatures set the pattern sizes, and tempo changes and markers snap to bar starts. A time signature that no Hydrogen pattern can hold is counted in `ignored_time_signatures`, and the earlier one stays in effect.
|
|
194
|
+
- **Sample layers.** `sample_instruments` adds instruments from existing audio files. `sample_layers` edits gain, pitch, velocity range, trim, loop, or sample assignment. Keep custom samples with the project for portable exports.
|
|
195
|
+
- **Drumkits.** `hydrogen_create_drumkit` turns the instruments of a song into a drumkit folder with its samples, and returns a reference you can pass to `drumkit`. Import and export Hydrogen’s `.h2drumkit` archives. The import tool’s upgrade mode accepts a manifest or archive and writes the upgraded result to a new directory. `hydrogen_read_instrument` reads the layers of a song instrument or of a kit instrument.
|
|
196
|
+
|
|
197
|
+
## Configuration
|
|
198
|
+
|
|
199
|
+
Set these variables in your MCP client's `env` block. From a checkout, you can also copy [`.env.example`](https://github.com/RandyNorthrup/hydrogen-mcp-server/blob/main/.env.example) to `.env` and run `uv run --env-file .env hydrogen-mcp`. Reconnect the client after changing settings. Run `hydrogen-mcp --check` to see the values in effect.
|
|
200
|
+
|
|
201
|
+
| Environment variable | Windows default | macOS default | Linux default |
|
|
202
|
+
| --- | --- | --- | --- |
|
|
203
|
+
| `HYDROGEN_INSTALL_DIR` | `C:/Program Files/Hydrogen` | `/Applications/Hydrogen.app` | Unset. Point it at an extracted AppImage or at a prefix such as `/usr/local` |
|
|
204
|
+
| `HYDROGEN_APP` | `hydrogen.exe` in the install directory | `Contents/MacOS/hydrogen` in the bundle | `hydrogen` on `PATH`, or `AppRun` in the install directory |
|
|
205
|
+
| `HYDROGEN_CLI` | `h2cli.exe` in the install directory | `h2cli` on `PATH` | `h2cli` on `PATH`, or `usr/bin/h2cli` in the install directory |
|
|
206
|
+
| `HYDROGEN_SYSTEM_DATA` | `data` in the install directory | `Contents/Resources/data` in the bundle | `/usr/share/hydrogen/data`, or `usr/share/hydrogen/data` in the install directory |
|
|
207
|
+
| `HYDROGEN_USER_DATA` | `~/.hydrogen/data` | `~/Library/Application Support/Hydrogen/data` | `~/.hydrogen/data` |
|
|
208
|
+
| `HYDROGEN_CONFIG` | `~/.hydrogen/hydrogen.conf` | `~/Library/Application Support/Hydrogen/hydrogen.conf` | `~/.hydrogen/hydrogen.conf` |
|
|
209
|
+
| `HYDROGEN_OSC_PORT` | `9000` | `9000` | `9000` |
|
|
210
|
+
| `HYDROGEN_PROJECT_DIR` | `~/Hydrogen Projects` for an installed package, or `projects` inside a checkout | Same | Same |
|
|
211
|
+
|
|
212
|
+
The MCP server sends OSC over loopback. Hydrogen controls its own listener, so check its firewall access before using OSC on an untrusted network. Hydrogen resolves the asset references inside songs and kits used for native rendering.
|
|
213
|
+
|
|
214
|
+
### Platform support
|
|
215
|
+
|
|
216
|
+
| Platform | Hydrogen package | What works |
|
|
217
|
+
| --- | --- | --- |
|
|
218
|
+
| Windows | Official installer | Everything, including desktop controls |
|
|
219
|
+
| Linux | Official AppImage, or a distribution package of 1.2.7 | Everything except desktop controls |
|
|
220
|
+
| macOS | Official app | Song editing, MIDI conversion, audio checks, and opening songs in the app. The official macOS app is built without OSC and without `h2cli`. Live control, rendering, stems, and drumkit validation, creation, and archives work with a Hydrogen build that includes them |
|
|
221
|
+
|
|
222
|
+
The official AppImage holds `h2cli` and the factory data inside the image. Extract it once and point the server at the folder:
|
|
223
|
+
|
|
224
|
+
```sh
|
|
225
|
+
./Hydrogen-1.2.7-x86_64.AppImage --appimage-extract
|
|
226
|
+
export HYDROGEN_INSTALL_DIR="$PWD/squashfs-root"
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
## Verification
|
|
230
|
+
|
|
231
|
+
CI runs formatting, lint, types, protocol tests, security and dependency checks, and a wheel build on Windows. It runs the protocol tests on Linux and macOS with Python 3.13 and 3.14. It also installs the official Hydrogen 1.2.7 packages on Linux and macOS and runs the native suite there. That suite verifies live OSC, app launch, song and kit operations, MIDI round trips, rendering in every format, and stem isolation against Hydrogen itself. On Windows it runs locally and also covers desktop capture and input.
|
|
232
|
+
|
|
233
|
+
```powershell
|
|
234
|
+
uv sync --locked
|
|
235
|
+
uv run --locked ruff format --check .
|
|
236
|
+
uv run --locked ruff check .
|
|
237
|
+
uv run --locked mypy
|
|
238
|
+
uv run --locked pytest -q
|
|
239
|
+
uv run --locked bandit -q -r src
|
|
240
|
+
uv run --locked deptry .
|
|
241
|
+
uv run --locked vulture src tests --min-confidence 80
|
|
242
|
+
uv run --locked pip-audit --local --progress-spinner off
|
|
243
|
+
uv build --no-sources
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Run the native suite on a machine with Hydrogen installed. The launch and desktop tests open disposable Hydrogen windows with their own preferences and data folders.
|
|
247
|
+
|
|
248
|
+
```powershell
|
|
249
|
+
$env:HYDROGEN_NATIVE_TESTS = '1'
|
|
250
|
+
uv run --locked pytest -q
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
A release is cut by pushing a `v` tag that matches the package version. The release workflow tests the tag, builds the wheel and source archive, attaches them with checksums to the GitHub release, and publishes the same files to PyPI through trusted publishing.
|
|
254
|
+
|
|
255
|
+
[Changelog](https://github.com/RandyNorthrup/hydrogen-mcp-server/blob/main/CHANGELOG.md) · [Verification notes](https://github.com/RandyNorthrup/hydrogen-mcp-server/blob/main/PLAN.md) · [MIT license](https://github.com/RandyNorthrup/hydrogen-mcp-server/blob/main/LICENSE)
|