stagebook-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 +8 -7
- package/README.pt-BR.md +8 -7
- package/dist/index.js +5 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
**English** · [Português (Brasil)](README.pt-BR.md)
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/stagebook-mcp)
|
|
6
|
+
|
|
5
7
|
Lets AI assistants read and edit the songs and setlists on your Stagebook tablet: "build a 15-song setlist for Saturday
|
|
6
8
|
without repeating artists", "move every Skank song down a half tone", "check the chords of Hazard", "import this page".
|
|
7
9
|
It's a [Model Context Protocol](https://modelcontextprotocol.io) server that runs on your computer and talks to the
|
|
@@ -34,14 +36,11 @@ Files to send (backing tracks, backups) take a full path; `~` is your home folde
|
|
|
34
36
|
|
|
35
37
|
## Install
|
|
36
38
|
|
|
37
|
-
Needs [Node.js](https://nodejs.org) 20 or newer.
|
|
39
|
+
Needs [Node.js](https://nodejs.org) 20 or newer. The server is on npm as
|
|
40
|
+
[`stagebook-mcp`](https://www.npmjs.com/package/stagebook-mcp): nothing to download from GitHub.
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
That's the server: your assistant starts it by itself with the settings below (`npx` downloads it the first time and
|
|
44
|
-
keeps it up to date), so there's nothing to run by hand.
|
|
42
|
+
You don't run it by hand: your assistant starts it by itself with the settings below (`npx` downloads it the first time and
|
|
43
|
+
keeps it up to date). Run by hand, it just waits for an assistant: Ctrl+C closes it.
|
|
45
44
|
|
|
46
45
|
## Connect your assistant
|
|
47
46
|
|
|
@@ -119,6 +118,8 @@ conversation. Lyrics are copyrighted: the server tells the assistant not to repr
|
|
|
119
118
|
|
|
120
119
|
## Development
|
|
121
120
|
|
|
121
|
+
Only to change the server itself; to use it, [Install](#install) is all you need.
|
|
122
|
+
|
|
122
123
|
```sh
|
|
123
124
|
git clone https://github.com/julianoAffonso/stagebook.git
|
|
124
125
|
cd stagebook/mcp
|
package/README.pt-BR.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) · **Português (Brasil)**
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/stagebook-mcp)
|
|
6
|
+
|
|
5
7
|
Deixa assistentes de IA lerem e editarem as músicas e os setlists do seu tablet com o Stagebook: "monta um setlist de
|
|
6
8
|
15 músicas para sábado sem repetir artista", "passa todas as do Skank meio tom abaixo", "confere os acordes de Hazard",
|
|
7
9
|
"importa esta página". É um servidor [Model Context Protocol](https://modelcontextprotocol.io) que roda no seu computador
|
|
@@ -36,14 +38,11 @@ param também.
|
|
|
36
38
|
|
|
37
39
|
## Instalar
|
|
38
40
|
|
|
39
|
-
Precisa do [Node.js](https://nodejs.org) 20 ou mais novo.
|
|
41
|
+
Precisa do [Node.js](https://nodejs.org) 20 ou mais novo. O servidor está no npm como
|
|
42
|
+
[`stagebook-mcp`](https://www.npmjs.com/package/stagebook-mcp): nada para baixar do GitHub.
|
|
40
43
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Esse é o servidor: o assistente abre ele sozinho com os ajustes abaixo (o `npx` baixa da primeira vez e mantém
|
|
46
|
-
atualizado), então não precisa rodar nada à mão.
|
|
44
|
+
Não precisa rodar à mão: o assistente abre ele sozinho com os ajustes abaixo (o `npx` baixa da primeira vez e mantém
|
|
45
|
+
atualizado). Rodado à mão, ele só fica esperando um assistente: Ctrl+C fecha.
|
|
47
46
|
|
|
48
47
|
## Ligar no seu assistente
|
|
49
48
|
|
|
@@ -122,6 +121,8 @@ têm direito autoral: o servidor orienta o assistente a não reproduzi-las intei
|
|
|
122
121
|
|
|
123
122
|
## Para quem programa
|
|
124
123
|
|
|
124
|
+
Só para mudar o próprio servidor; para usar, basta o [Instalar](#instalar).
|
|
125
|
+
|
|
125
126
|
```sh
|
|
126
127
|
git clone https://github.com/julianoAffonso/stagebook.git
|
|
127
128
|
cd stagebook/mcp
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
5
5
|
import { StagebookClient } from "./client.js";
|
|
6
6
|
import { buildServer } from "./server.js";
|
|
7
|
+
// Run by hand in a terminal it just waits for an assistant, which looks frozen: say so (stderr, never the protocol)
|
|
8
|
+
if (process.stdin.isTTY) {
|
|
9
|
+
process.stderr.write("Stagebook MCP server: running and waiting for an AI assistant. Nothing to do here: your assistant starts it by\n" +
|
|
10
|
+
"itself (setup: https://github.com/julianoAffonso/stagebook/tree/main/mcp). Press Ctrl+C to close.\n");
|
|
11
|
+
}
|
|
7
12
|
const client = await StagebookClient.fromEnv();
|
|
8
13
|
const server = buildServer(client);
|
|
9
14
|
await server.connect(new StdioServerTransport());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stagebook-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "MCP server for Stagebook: lets AI assistants (Claude Code, Claude Desktop, Cursor, VS Code, Gemini CLI, Codex…) read and edit the songs and setlists on your Stagebook tablet over the local network.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Juliano Affonso",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc",
|
|
39
|
-
"test": "npm run build && node --test test
|
|
39
|
+
"test": "npm run build && node --test \"test/*.test.mjs\"",
|
|
40
40
|
"start": "node dist/index.js",
|
|
41
41
|
"prepack": "npm run build && cp ../LICENSE.md LICENSE.md",
|
|
42
42
|
"prepublishOnly": "npm test"
|