@jojonadam/mriter-mcp 0.1.0 → 0.1.1
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.
- package/README.md +112 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,98 @@
|
|
|
1
1
|
# @jojonadam/mriter-mcp
|
|
2
2
|
|
|
3
|
+
**Mriter** — a local arrangement engine exposed as an MCP server. Give it lyrics, a style and a few parameters; it composes a multi-track arrangement and writes `.mid` and `.gp8` (Guitar Pro 8) files.
|
|
4
|
+
Lyrics and audio **never leave your machine**: no upload, no account, no network calls.
|
|
5
|
+
|
|
6
|
+
> Ships a single-file binary with the engine and corpus baked in — **no local Python needed**. Prebuilt for `darwin-arm64` (Apple Silicon).
|
|
7
|
+
> The engine and corpus live in a private repo; this repo is the packaging layer only.
|
|
8
|
+
|
|
9
|
+
[中文说明 ↓](#中文)
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm i -g @jojonadam/mriter-mcp # or just use npx, no global install
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Wire it into an MCP host (Claude Desktop / WorkBuddy / others)
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"mcpServers": {
|
|
22
|
+
"mriter": {
|
|
23
|
+
"command": "npx",
|
|
24
|
+
"args": ["-y", "@jojonadam/mriter-mcp"]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Tools
|
|
31
|
+
|
|
32
|
+
| Tool | What it does |
|
|
33
|
+
|---|---|
|
|
34
|
+
| `mriter_compose` | Full arrangement: lyrics / style / params → multi-track song, writes `.mid` + `.gp8`, returns section coordinates, lineup, reproducible seed, symbol fingerprints, and hand-off prompts for Suno / Qishui. Supports `scope` partial re-roll (regenerate one track of one section); same seed + same params = identical output |
|
|
35
|
+
| `mriter_styles` | 33 arrangement styles across 6 families + the default. Its `id` is the only legal value for the `style` argument elsewhere |
|
|
36
|
+
| `mriter_sources` | Sound-source panel for a style: acoustic/synth options per seat, defaults, switching cost (timbre only — never touches notes) |
|
|
37
|
+
| `mriter_random` | Draw a reproducible parameter set for a style |
|
|
38
|
+
| `mriter_suggest` | Suggest style and direction from a line of lyrics or a short text |
|
|
39
|
+
| `mriter_diagnose` | Lyrics health check: rhyme, clichés, line-length spread, particle/adverb density (suggestions only, never rewrites) |
|
|
40
|
+
|
|
41
|
+
## Tiers (gates are enforced inside the engine)
|
|
42
|
+
|
|
43
|
+
| Tier | Tracks | Export |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| `free` | 4 | MIDI only |
|
|
46
|
+
| `base` | 6 | MIDI + GP8 |
|
|
47
|
+
| `pro` | unlimited (10-track layering for electro styles) | MIDI + GP8 |
|
|
48
|
+
|
|
49
|
+
Over-tier selections are clamped rather than rejected, and reported in `lineup.tier_cap`.
|
|
50
|
+
|
|
51
|
+
## Notes
|
|
52
|
+
|
|
53
|
+
- `bars` only applies to **instrumental** (club-form) arrangements: **minimum 64 bars** (8 blocks × 8), snapped to multiples of 8.
|
|
54
|
+
When clamped, the response carries `bars_requested` + `bars_note` — it never silently shrinks. With lyrics, form comes from the lyrics and `bars` is ignored.
|
|
55
|
+
- Output dir: `out_dir` argument, or env `MRITER_OUT`; default `./mriter-out`.
|
|
56
|
+
- Engine unpack cache: `~/.cache/mriter-mcp/` (override with `MRITER_CACHE`).
|
|
57
|
+
|
|
58
|
+
## Repo layout
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
bin/mriter-mcp.js launcher — picks the prebuilt binary for this platform and execs it
|
|
62
|
+
bin/<plat>/mriter-mcp prebuilt binary (not in git; produced by build.sh)
|
|
63
|
+
build.sh build the binary from the engine repo (PyInstaller onefile, injects _bundle)
|
|
64
|
+
package.json npm metadata and bin mapping
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Build it yourself:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
./build.sh # defaults to the engine repo at ~/AI_Projects/Mriter
|
|
71
|
+
MRITER_HOME=/path ./build.sh
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Requires the engine repo's `packaging/mcp-server` plus a venv with PyInstaller:
|
|
75
|
+
`python3 -m venv /tmp/mbuild && /tmp/mbuild/bin/pip install pyinstaller`.
|
|
76
|
+
|
|
77
|
+
## Other install paths
|
|
78
|
+
|
|
79
|
+
- Python: `pip install mriter-mcp` → `mriter-mcp`
|
|
80
|
+
- uvx: `uvx --from mriter-mcp mriter-mcp`
|
|
81
|
+
- Other platforms: this package only bundles `darwin-arm64`; use one of the two paths above
|
|
82
|
+
|
|
83
|
+
## License
|
|
84
|
+
|
|
85
|
+
UNLICENSED (proprietary engine). The binary is distributed via npm for normal npm-style use; no source license is granted.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
# 中文
|
|
90
|
+
|
|
3
91
|
**Mriter(我的制作人)的 MCP server** —— 本地编曲引擎,把「歌词 / 风格 / 参数」编成多轨曲,直出 `.mid` 与 `.gp8`(Guitar Pro 8)。
|
|
4
|
-
|
|
92
|
+
词与音频**不出设备**:无上传、无账号、无联网调用。
|
|
5
93
|
|
|
6
|
-
> 自带单文件二进制(含引擎与语料),**不需要本机 Python**。当前预编译平台:`darwin-arm64
|
|
94
|
+
> 自带单文件二进制(含引擎与语料),**不需要本机 Python**。当前预编译平台:`darwin-arm64`。
|
|
95
|
+
> 引擎与语料在私有仓,本仓只放打包层。
|
|
7
96
|
|
|
8
97
|
## 装
|
|
9
98
|
|
|
@@ -52,11 +141,31 @@ npm i -g @jojonadam/mriter-mcp # 或用 npx,无需全局安装
|
|
|
52
141
|
- 输出目录:参数 `out_dir`,或环境变量 `MRITER_OUT`,默认 `./mriter-out`。
|
|
53
142
|
- 引擎解包缓存:`~/.cache/mriter-mcp/`(`MRITER_CACHE` 可改)。
|
|
54
143
|
|
|
144
|
+
## 本仓结构
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
bin/mriter-mcp.js 启动器(挑本平台预编译二进制并 exec,缺平台时给出来路)
|
|
148
|
+
bin/<plat>/mriter-mcp 预编译二进制(不进 git,由 build.sh 现打)
|
|
149
|
+
build.sh 从引擎仓构建(PyInstaller onefile,注入 _bundle)
|
|
150
|
+
package.json npm 元数据与 bin 映射
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
自己构建:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
./build.sh # 默认引擎仓 ~/AI_Projects/Mriter
|
|
157
|
+
MRITER_HOME=/path ./build.sh
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
需要引擎仓的 `packaging/mcp-server` + 一个装了 PyInstaller 的 venv:
|
|
161
|
+
`python3 -m venv /tmp/mbuild && /tmp/mbuild/bin/pip install pyinstaller`。
|
|
162
|
+
|
|
55
163
|
## 其它安装方式
|
|
56
164
|
|
|
57
165
|
- Python 版:`pip install mriter-mcp` → `mriter-mcp`
|
|
58
166
|
- uvx 版:`uvx --from mriter-mcp mriter-mcp`
|
|
167
|
+
- 其它平台:本包只带 `darwin-arm64` 二进制,其它平台走上面两条
|
|
59
168
|
|
|
60
169
|
## 许可
|
|
61
170
|
|
|
62
|
-
UNLICENSED
|
|
171
|
+
UNLICENSED(引擎私有)。二进制随 npm 分发,允许按 npm 常规方式使用;不含源码授权。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jojonadam/mriter-mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Mriter
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Mriter MCP server: local arrangement engine that writes MIDI and Guitar Pro 8. Lyrics and audio never leave your machine. / Mriter(我的制作人)MCP server:本地编曲引擎,直出 MIDI 与 GP8,词与音频不出设备。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mriter-mcp": "./bin/mriter-mcp.js"
|