@jojonadam/mriter-mcp 0.1.1 → 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
@@ -6,15 +6,13 @@ Lyrics and audio **never leave your machine**: no upload, no account, no network
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
7
  > The engine and corpus live in a private repo; this repo is the packaging layer only.
8
8
 
9
- [中文说明 ↓](#中文)
10
-
11
9
  ## Install
12
10
 
13
11
  ```bash
14
12
  npm i -g @jojonadam/mriter-mcp # or just use npx, no global install
15
13
  ```
16
14
 
17
- ## Wire it into an MCP host (Claude Desktop / WorkBuddy / others)
15
+ ## Wire it into an MCP host (Claude Desktop / Cursor / WorkBuddy / others)
18
16
 
19
17
  ```json
20
18
  {
@@ -31,7 +29,7 @@ npm i -g @jojonadam/mriter-mcp # or just use npx, no global install
31
29
 
32
30
  | Tool | What it does |
33
31
  |---|---|
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 |
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 |
35
33
  | `mriter_styles` | 33 arrangement styles across 6 families + the default. Its `id` is the only legal value for the `style` argument elsewhere |
36
34
  | `mriter_sources` | Sound-source panel for a style: acoustic/synth options per seat, defaults, switching cost (timbre only — never touches notes) |
37
35
  | `mriter_random` | Draw a reproducible parameter set for a style |
@@ -80,92 +78,11 @@ Requires the engine repo's `packaging/mcp-server` plus a venv with PyInstaller:
80
78
  - uvx: `uvx --from mriter-mcp mriter-mcp`
81
79
  - Other platforms: this package only bundles `darwin-arm64`; use one of the two paths above
82
80
 
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
-
91
- **Mriter(我的制作人)的 MCP server** —— 本地编曲引擎,把「歌词 / 风格 / 参数」编成多轨曲,直出 `.mid` 与 `.gp8`(Guitar Pro 8)。
92
- 词与音频**不出设备**:无上传、无账号、无联网调用。
93
-
94
- > 自带单文件二进制(含引擎与语料),**不需要本机 Python**。当前预编译平台:`darwin-arm64`。
95
- > 引擎与语料在私有仓,本仓只放打包层。
96
-
97
- ## 装
98
-
99
- ```bash
100
- npm i -g @jojonadam/mriter-mcp # 或用 npx,无需全局安装
101
- ```
102
-
103
- ## 接到 MCP 宿主(Claude Desktop / WorkBuddy / 其它)
104
-
105
- ```json
106
- {
107
- "mcpServers": {
108
- "mriter": {
109
- "command": "npx",
110
- "args": ["-y", "@jojonadam/mriter-mcp"]
111
- }
112
- }
113
- }
114
- ```
115
-
116
- ## 工具
117
-
118
- | 工具 | 做什么 |
119
- |---|---|
120
- | `mriter_compose` | 完整编曲:歌词/风格/参数 → 多轨曲,写 `.mid` + `.gp8`,返回段落坐标、编制、可复现 seed、符号指纹、给 Suno/汽水 的落地提示词。支持 `scope` 局部重 Roll(只重生成一段的一轨);同 seed 同参数必出同一产物 |
121
- | `mriter_styles` | 33 种编曲风格(6 大家族)+ 默认风格。`id` 是其它工具 `style` 的唯一合法取值 |
122
- | `mriter_sources` | 某风格的声源面板:每席位原声/合成器选项、默认声源、切换代价(只改音色不改音符) |
123
- | `mriter_random` | 按风格随机给一组可复现参数(抽签) |
124
- | `mriter_suggest` | 从一句词/一段文本推风格与方向建议 |
125
- | `mriter_diagnose` | 歌词体检:韵脚、套话、句长落差、助词/副词密度(只建议不改词) |
126
-
127
- ## 计费与档位(引擎内置闸门)
128
-
129
- | 档 | 轨数 | 可导出 |
130
- |---|---|---|
131
- | `free` | 4 轨 | 仅 MIDI |
132
- | `base` | 6 轨 | MIDI + GP8 |
133
- | `pro` | 不限(电子风格 10 轨分层) | MIDI + GP8 |
134
-
135
- 超档不报错、只钳制,并在返回的 `lineup.tier_cap` 里说明。
136
-
137
- ## 注意
81
+ ## 中文用户 / Chinese users
138
82
 
139
- - `bars` 只在**无词**(club 曲式)时生效:**最小 64 小节**(8 段×8),按 8 的倍数吸附;
140
- 被吸附时返回 `bars_requested` + `bars_note`,不会静默改小。有词时曲式由歌词决定,`bars` 不参与。
141
- - 输出目录:参数 `out_dir`,或环境变量 `MRITER_OUT`,默认 `./mriter-out`。
142
- - 引擎解包缓存:`~/.cache/mriter-mcp/`(`MRITER_CACHE` 可改)。
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.
143
85
 
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
-
163
- ## 其它安装方式
164
-
165
- - Python 版:`pip install mriter-mcp` → `mriter-mcp`
166
- - uvx 版:`uvx --from mriter-mcp mriter-mcp`
167
- - 其它平台:本包只带 `darwin-arm64` 二进制,其它平台走上面两条
168
-
169
- ## 许可
86
+ ## License
170
87
 
171
- UNLICENSED(引擎私有)。二进制随 npm 分发,允许按 npm 常规方式使用;不含源码授权。
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@jojonadam/mriter-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
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": {
@@ -8,7 +8,8 @@
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"