@jojonadam/mriter-mcp 0.1.0 → 0.1.2
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 +56 -30
- package/docs/connect-prompt.zh.md +47 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
# @jojonadam/mriter-mcp
|
|
2
2
|
|
|
3
|
-
**Mriter
|
|
4
|
-
|
|
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
5
|
|
|
6
|
-
>
|
|
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.
|
|
7
8
|
|
|
8
|
-
##
|
|
9
|
+
## Install
|
|
9
10
|
|
|
10
11
|
```bash
|
|
11
|
-
npm i -g @jojonadam/mriter-mcp #
|
|
12
|
+
npm i -g @jojonadam/mriter-mcp # or just use npx, no global install
|
|
12
13
|
```
|
|
13
14
|
|
|
14
|
-
##
|
|
15
|
+
## Wire it into an MCP host (Claude Desktop / Cursor / WorkBuddy / others)
|
|
15
16
|
|
|
16
17
|
```json
|
|
17
18
|
{
|
|
@@ -24,39 +25,64 @@ npm i -g @jojonadam/mriter-mcp # 或用 npx,无需全局安装
|
|
|
24
25
|
}
|
|
25
26
|
```
|
|
26
27
|
|
|
27
|
-
##
|
|
28
|
+
## Tools
|
|
28
29
|
|
|
29
|
-
|
|
|
30
|
+
| Tool | What it does |
|
|
30
31
|
|---|---|
|
|
31
|
-
| `mriter_compose` |
|
|
32
|
-
| `mriter_styles` | 33
|
|
33
|
-
| `mriter_sources` |
|
|
34
|
-
| `mriter_random` |
|
|
35
|
-
| `mriter_suggest` |
|
|
36
|
-
| `mriter_diagnose` |
|
|
32
|
+
| `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-style vocal platforms. Supports `scope` partial re-roll (regenerate one track of one section); same seed + same params = identical output |
|
|
33
|
+
| `mriter_styles` | 33 arrangement styles across 6 families + the default. Its `id` is the only legal value for the `style` argument elsewhere |
|
|
34
|
+
| `mriter_sources` | Sound-source panel for a style: acoustic/synth options per seat, defaults, switching cost (timbre only — never touches notes) |
|
|
35
|
+
| `mriter_random` | Draw a reproducible parameter set for a style |
|
|
36
|
+
| `mriter_suggest` | Suggest style and direction from a line of lyrics or a short text |
|
|
37
|
+
| `mriter_diagnose` | Lyrics health check: rhyme, clichés, line-length spread, particle/adverb density (suggestions only, never rewrites) |
|
|
37
38
|
|
|
38
|
-
##
|
|
39
|
+
## Tiers (gates are enforced inside the engine)
|
|
39
40
|
|
|
40
|
-
|
|
|
41
|
+
| Tier | Tracks | Export |
|
|
41
42
|
|---|---|---|
|
|
42
|
-
| `free` | 4
|
|
43
|
-
| `base` | 6
|
|
44
|
-
| `pro` |
|
|
43
|
+
| `free` | 4 | MIDI only |
|
|
44
|
+
| `base` | 6 | MIDI + GP8 |
|
|
45
|
+
| `pro` | unlimited (10-track layering for electro styles) | MIDI + GP8 |
|
|
45
46
|
|
|
46
|
-
|
|
47
|
+
Over-tier selections are clamped rather than rejected, and reported in `lineup.tier_cap`.
|
|
47
48
|
|
|
48
|
-
##
|
|
49
|
+
## Notes
|
|
49
50
|
|
|
50
|
-
- `bars`
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
51
|
+
- `bars` only applies to **instrumental** (club-form) arrangements: **minimum 64 bars** (8 blocks × 8), snapped to multiples of 8.
|
|
52
|
+
When clamped, the response carries `bars_requested` + `bars_note` — it never silently shrinks. With lyrics, form comes from the lyrics and `bars` is ignored.
|
|
53
|
+
- Output dir: `out_dir` argument, or env `MRITER_OUT`; default `./mriter-out`.
|
|
54
|
+
- Engine unpack cache: `~/.cache/mriter-mcp/` (override with `MRITER_CACHE`).
|
|
54
55
|
|
|
55
|
-
##
|
|
56
|
+
## Repo layout
|
|
56
57
|
|
|
57
|
-
|
|
58
|
-
-
|
|
58
|
+
```
|
|
59
|
+
bin/mriter-mcp.js launcher — picks the prebuilt binary for this platform and execs it
|
|
60
|
+
bin/<plat>/mriter-mcp prebuilt binary (not in git; produced by build.sh)
|
|
61
|
+
build.sh build the binary from the engine repo (PyInstaller onefile, injects _bundle)
|
|
62
|
+
package.json npm metadata and bin mapping
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Build it yourself:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
./build.sh # defaults to the engine repo at ~/AI_Projects/Mriter
|
|
69
|
+
MRITER_HOME=/path ./build.sh
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Requires the engine repo's `packaging/mcp-server` plus a venv with PyInstaller:
|
|
73
|
+
`python3 -m venv /tmp/mbuild && /tmp/mbuild/bin/pip install pyinstaller`.
|
|
74
|
+
|
|
75
|
+
## Other install paths
|
|
76
|
+
|
|
77
|
+
- Python: `pip install mriter-mcp` → `mriter-mcp`
|
|
78
|
+
- uvx: `uvx --from mriter-mcp mriter-mcp`
|
|
79
|
+
- Other platforms: this package only bundles `darwin-arm64`; use one of the two paths above
|
|
80
|
+
|
|
81
|
+
## 中文用户 / Chinese users
|
|
82
|
+
|
|
83
|
+
This README is English-first. Onboarding in Chinese is done on the website: copy the connect prompt at
|
|
84
|
+
[mriter.com](https://mriter.com) and paste it to your own agent — it will write the MCP config for you.
|
|
59
85
|
|
|
60
|
-
##
|
|
86
|
+
## License
|
|
61
87
|
|
|
62
|
-
UNLICENSED
|
|
88
|
+
UNLICENSED (proprietary engine). The binary is distributed via npm for normal npm-style use; no source license is granted.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# 官网用:中文接入提示词(复制给你的 Agent)
|
|
2
|
+
|
|
3
|
+
> 用途:中文用户不读英文 README,直接在官网复制这段发给自己的 Agent,让 Agent 自己配好 MCP。
|
|
4
|
+
> 放在 `mriter.com` 的「接入」区块,或 README 的中文入口页。
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
请帮我把 **Mriter(我的制作人)** 的 MCP server 接进来。
|
|
9
|
+
|
|
10
|
+
**1. 写入 MCP 配置**
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{
|
|
14
|
+
"mcpServers": {
|
|
15
|
+
"mriter": {
|
|
16
|
+
"command": "npx",
|
|
17
|
+
"args": ["-y", "@jojonadam/mriter-mcp"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
配置位置按你所在的宿主来定:Claude Desktop 是 `claude_desktop_config.json`;WorkBuddy 在「连接器 / MCP」里加自定义 server;其它宿主按各自文档。写好后需要重启宿主。
|
|
24
|
+
|
|
25
|
+
**2. 确认连通**
|
|
26
|
+
|
|
27
|
+
重启后你应该能看到 6 个工具:
|
|
28
|
+
`mriter_compose`、`mriter_styles`、`mriter_sources`、`mriter_random`、`mriter_suggest`、`mriter_diagnose`。
|
|
29
|
+
|
|
30
|
+
先用 `mriter_styles` 列一次风格清单(应有 33 个),再用 `mriter_compose` 生成一条 64 小节的样例。
|
|
31
|
+
|
|
32
|
+
**3. 告诉我产物在哪**
|
|
33
|
+
|
|
34
|
+
生成会写出 `.mid` 与 `.gp8`(Guitar Pro 8)文件,默认在 `./mriter-out`,把实际路径列给我。
|
|
35
|
+
|
|
36
|
+
**4. 边界**
|
|
37
|
+
|
|
38
|
+
- 词与音频**不出本机**,不需要联网、不需要账号。
|
|
39
|
+
- 只装了 `darwin-arm64`(Apple Silicon)的预编译二进制;如果是其它平台,改走 `pip install mriter-mcp` 或 `uvx --from mriter-mcp mriter-mcp`。
|
|
40
|
+
- `bars` 只在无歌词时生效,最小 64 小节、按 8 的倍数吸附。
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 备用短版(放在按钮旁的一行提示)
|
|
45
|
+
|
|
46
|
+
> 把这段话发给你自己的 Agent,它会帮你接好 Mriter:
|
|
47
|
+
> 「请把 `@jojonadam/mriter-mcp` 加进你的 MCP 配置(command=npx,args=-y @jojonadam/mriter-mcp),重启后确认能看到 6 个 mriter_* 工具,并用 mriter_styles 列出 33 个风格验证连通。」
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jojonadam/mriter-mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Mriter
|
|
3
|
+
"version": "0.1.2",
|
|
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"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin",
|
|
11
|
-
"README.md"
|
|
11
|
+
"README.md",
|
|
12
|
+
"docs"
|
|
12
13
|
],
|
|
13
14
|
"engines": {
|
|
14
15
|
"node": ">=18"
|