@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 CHANGED
@@ -1,17 +1,18 @@
1
1
  # @jojonadam/mriter-mcp
2
2
 
3
- **Mriter(我的制作人)的 MCP server** —— 本地编曲引擎,把「歌词 / 风格 / 参数」编成多轨曲,直出 `.mid` 与 `.gp8`(Guitar Pro 8)。
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
- > 自带单文件二进制(含引擎与语料),**不需要本机 Python**。当前预编译平台:`darwin-arm64`(Apple Silicon)。
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 # 或用 npx,无需全局安装
12
+ npm i -g @jojonadam/mriter-mcp # or just use npx, no global install
12
13
  ```
13
14
 
14
- ## 接到 MCP 宿主(Claude Desktop / WorkBuddy / 其它)
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` | 完整编曲:歌词/风格/参数 → 多轨曲,写 `.mid` + `.gp8`,返回段落坐标、编制、可复现 seed、符号指纹、给 Suno/汽水 的落地提示词。支持 `scope` 局部重 Roll(只重生成一段的一轨);同 seed 同参数必出同一产物 |
32
- | `mriter_styles` | 33 种编曲风格(6 大家族)+ 默认风格。`id` 是其它工具 `style` 的唯一合法取值 |
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 轨 | 仅 MIDI |
43
- | `base` | 6 轨 | MIDI + GP8 |
44
- | `pro` | 不限(电子风格 10 轨分层) | MIDI + GP8 |
43
+ | `free` | 4 | MIDI only |
44
+ | `base` | 6 | MIDI + GP8 |
45
+ | `pro` | unlimited (10-track layering for electro styles) | MIDI + GP8 |
45
46
 
46
- 超档不报错、只钳制,并在返回的 `lineup.tier_cap` 里说明。
47
+ Over-tier selections are clamped rather than rejected, and reported in `lineup.tier_cap`.
47
48
 
48
- ## 注意
49
+ ## Notes
49
50
 
50
- - `bars` 只在**无词**(club 曲式)时生效:**最小 64 小节**(8 段×8),按 8 的倍数吸附;
51
- 被吸附时返回 `bars_requested` + `bars_note`,不会静默改小。有词时曲式由歌词决定,`bars` 不参与。
52
- - 输出目录:参数 `out_dir`,或环境变量 `MRITER_OUT`,默认 `./mriter-out`。
53
- - 引擎解包缓存:`~/.cache/mriter-mcp/`(`MRITER_CACHE` 可改)。
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
- - Python 版:`pip install mriter-mcp` → `mriter-mcp`
58
- - uvx 版:`uvx --from mriter-mcp mriter-mcp`
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(未开源)。仓库:https://github.com/JOJO-Adam/mriter-mcp
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.0",
4
- "description": "Mriter(我的制作人)MCP server:本地编曲引擎,直出 MIDI 与 Guitar Pro 8。词与音频不出设备,零上传。",
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"