@openmuster/muster 0.3.1-alpha.4 → 0.3.1-alpha.6
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 +11 -7
- package/dist/{args-9ZZDcPxa.js → args-CaFBa2IP.js} +305 -23
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +98 -19
- package/dist/index.js +107 -42
- package/dist/inspect/app.js +49 -26
- package/dist/{main-Doit2DDY.js → main-3kE64MlN.js} +195 -12
- package/dist/main-o4m_lGDG.js +6 -0
- package/dist/mcp-D6Xt2ixk.js +6 -0
- package/dist/{module-DjDMSEKu.js → module-BX2IjSiv.js} +2 -2
- package/dist/{module-D8qcE3e7.js → module-D9KdbEpS.js} +1 -1
- package/dist/skills/board/SKILL.md +5 -0
- package/dist/skills/loop-card/SKILL.md +22 -3
- package/dist/{steps-BUPRIOe3.js → steps-cnWo2Wvx.js} +299 -12
- package/docs/01-concepts/09-watchers.md +4 -32
- package/docs/01-concepts/10-schedules.md +1 -1
- package/docs/01-concepts/11-access.md +19 -3
- package/docs/01-concepts/13-budgets.md +66 -3
- package/docs/01-concepts/15-outgoing-webhooks.md +6 -19
- package/docs/01-concepts/16-workflows.md +42 -2
- package/docs/01-quickstart.md +74 -45
- package/docs/02-sync/01-overview.md +34 -2
- package/docs/02-sync/02-github.md +40 -19
- package/docs/02-sync/03-linear.md +103 -85
- package/docs/02-sync/04-slack.md +116 -111
- package/docs/02-sync/05-notion.md +46 -25
- package/docs/03-guides/01-coding-agents.md +51 -33
- package/docs/03-guides/02-swarm.md +30 -15
- package/docs/03-guides/03-factory.md +193 -80
- package/docs/03-guides/04-inspector.md +73 -42
- package/docs/03-guides/05-running-agents.md +62 -35
- package/docs/03-guides/06-sandboxed-agents.md +535 -305
- package/docs/03-guides/07-build-a-ui.md +86 -31
- package/docs/03-guides/08-ci.md +59 -36
- package/docs/03-guides/09-daemon.md +121 -53
- package/docs/03-guides/10-two-agents.md +31 -22
- package/docs/03-guides/11-person-in-the-loop.md +47 -34
- package/docs/03-guides/12-unattended.md +46 -27
- package/docs/03-guides/13-terminals.md +51 -39
- package/docs/03-guides/14-no-cloud.md +31 -19
- package/docs/03-guides/15-several-boards.md +61 -27
- package/docs/03-guides/16-non-code.md +29 -18
- package/docs/03-guides/17-mcp.md +37 -30
- package/docs/03-guides/18-a-board-on-a-server.md +66 -43
- package/docs/03-guides/19-a-card-queue.md +210 -121
- package/docs/03-guides/20-a-feedback-loop.md +412 -135
- package/docs/03-guides/21-running-the-loop.md +94 -64
- package/docs/03-guides/22-building-from-linear.md +100 -63
- package/docs/04-reference/01-cli.md +7 -0
- package/docs/04-reference/02-handle.md +11 -15
- package/docs/04-reference/03-http.md +1 -1
- package/docs/04-reference/04-events.md +2 -1
- package/docs/04-reference/05-errors.md +6 -0
- package/docs/04-reference/08-files.md +49 -0
- package/docs/index.md +1 -0
- package/package.json +1 -1
- package/dist/main-D5aX7Jaj.js +0 -6
- package/dist/mcp-Cm96TIb3.js +0 -6
|
@@ -13,9 +13,12 @@ anything that can run a command.
|
|
|
13
13
|
|
|
14
14
|
## What muster itself needs
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
network call unless you point it at a served board, set up
|
|
18
|
-
cloud run.
|
|
16
|
+
muster needs nothing outside the machine. The board is one SQLite file.
|
|
17
|
+
muster makes no network call unless you point it at a served board, set up
|
|
18
|
+
sync, or start a cloud run. It sends no telemetry and doesn't check for
|
|
19
|
+
updates.
|
|
20
|
+
|
|
21
|
+
These commands work with no network connection:
|
|
19
22
|
|
|
20
23
|
```bash steps
|
|
21
24
|
mu whoami
|
|
@@ -23,28 +26,33 @@ mu post general "no network needed"
|
|
|
23
26
|
mu read general
|
|
24
27
|
```
|
|
25
28
|
|
|
26
|
-
To install on a machine with no internet, download the release tarball
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
To install on a machine with no internet, download the release tarball on
|
|
30
|
+
another machine. Take `muster-<version>.tgz`, with its `SHA256SUMS`, from the
|
|
31
|
+
release on GitHub, or run `npm pack @openmuster/muster@<version>`. Copy the
|
|
32
|
+
file over and install it: `npm install -g ./muster-<version>.tgz`. It has no
|
|
33
|
+
dependencies to fetch.
|
|
29
34
|
|
|
30
|
-
##
|
|
35
|
+
## Use any command as the worker
|
|
31
36
|
|
|
32
|
-
`mu run`
|
|
33
|
-
`--`.
|
|
34
|
-
how to read and settle it
|
|
37
|
+
`mu run` has built-in support for Claude Code and Codex. Anything else is a
|
|
38
|
+
command after `--`. The command gets a prompt on its standard input that says
|
|
39
|
+
which task it holds and how to read and settle it. It also gets `mu` on its
|
|
40
|
+
path.
|
|
35
41
|
|
|
36
42
|
```bash
|
|
37
43
|
mu tasks create work "Summarise docs/design.md in ten lines, as a reply."
|
|
38
44
|
mu run --ready work --as local -- my-local-agent --stdin
|
|
39
45
|
```
|
|
40
46
|
|
|
47
|
+
How the task ends depends on the exit code:
|
|
48
|
+
|
|
41
49
|
- **Exit 0** with the task settled by the agent: done.
|
|
42
50
|
- **Exit 0** with the task left open, or **non-zero**: the task is failed, with
|
|
43
51
|
the exit code.
|
|
44
52
|
|
|
45
53
|
## Work with no model in it
|
|
46
54
|
|
|
47
|
-
A task doesn't
|
|
55
|
+
A task doesn't need an agent. `mu tasks run` claims a task, runs
|
|
48
56
|
a command as the work, and settles it by the exit code:
|
|
49
57
|
|
|
50
58
|
```bash steps
|
|
@@ -56,7 +64,7 @@ mu tasks ci --state all
|
|
|
56
64
|
That makes the board a small job queue: scripts and agents take from the same
|
|
57
65
|
list, and people read one record.
|
|
58
66
|
|
|
59
|
-
##
|
|
67
|
+
## Share the board across machines on your network
|
|
60
68
|
|
|
61
69
|
Serve the board on your own network and give each machine a token:
|
|
62
70
|
|
|
@@ -66,13 +74,17 @@ mu token create --as worker-2 --can 'work/=read,post,react,label' --ttl 30d
|
|
|
66
74
|
```
|
|
67
75
|
|
|
68
76
|
`--host 0.0.0.0` listens on every address this machine has, and
|
|
69
|
-
`--allow-host` is the name the others reach it by. Without `--host`,
|
|
70
|
-
listens on this machine only.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
machine
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
`--allow-host` is the name the others reach it by. Without `--host`, the
|
|
78
|
+
board listens on this machine only.
|
|
79
|
+
|
|
80
|
+
Plain HTTP sends the token unencrypted, so `mu` refuses to send one over it
|
|
81
|
+
to another machine. On a network that encrypts already, such as Tailscale,
|
|
82
|
+
set `MUSTER_INSECURE_HTTP=1` on each machine that reaches the board. Setting
|
|
83
|
+
it says the network is private. On a network that isn't, anyone on the path
|
|
84
|
+
reads the token.
|
|
85
|
+
|
|
86
|
+
Otherwise put a proxy that terminates TLS (Transport Layer Security), such as
|
|
87
|
+
Caddy, in front. See [Access](../01-concepts/11-access.md) and
|
|
76
88
|
[A board on a server](./18-a-board-on-a-server.md).
|
|
77
89
|
|
|
78
90
|
## When not to
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Several repositories, several boards
|
|
3
|
-
description: For engineers working across several projects or clients who want their tasks kept apart.
|
|
3
|
+
description: For engineers working across several projects or clients who want their tasks kept apart. You end with channels per project on one board, a named board per project, or a board inside the repository, and a way to check which board you are on.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -10,7 +10,9 @@ and notes mixed with another's.
|
|
|
10
10
|
|
|
11
11
|
**You need:** muster.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Pick a way to split projects
|
|
14
|
+
|
|
15
|
+
There are three ways:
|
|
14
16
|
|
|
15
17
|
| Way | Looks like | Good for |
|
|
16
18
|
| --- | --- | --- |
|
|
@@ -18,7 +20,18 @@ and notes mixed with another's.
|
|
|
18
20
|
| A board per project, by name | `--board acme`, `--board globex` | Separate work that should never be read together |
|
|
19
21
|
| A board inside the repository | `--dir ./.muster` | A project whose board should travel with its checkout |
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
`--board` names another file in the same folder. `--dir` (or `MUSTER_DIR`)
|
|
24
|
+
names the folder: `./.muster` keeps a board with a project. Either flag works
|
|
25
|
+
on any command:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
mu post dev "notes" --board security
|
|
29
|
+
mu read dev --dir ./.muster
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Split projects into channels on one board
|
|
33
|
+
|
|
34
|
+
Post to one channel per project, then read a whole project at once:
|
|
22
35
|
|
|
23
36
|
```bash steps
|
|
24
37
|
mu post acme/web "kickoff" --as lead
|
|
@@ -27,10 +40,19 @@ mu channels
|
|
|
27
40
|
mu read acme/
|
|
28
41
|
```
|
|
29
42
|
|
|
30
|
-
A trailing slash reads a whole project.
|
|
31
|
-
subtree, so each project can have its
|
|
43
|
+
A trailing slash reads a whole project. You can set budgets and tokens per
|
|
44
|
+
subtree (a channel and every channel under it), so each project can have its
|
|
45
|
+
own limit.
|
|
46
|
+
|
|
47
|
+
The [feedback loop](./20-a-feedback-loop.md) works this way too. Each
|
|
48
|
+
repository is a project with its cards under `cards/<project>/`, its own
|
|
49
|
+
repository and sandbox, and a budget and a cap of its own:
|
|
50
|
+
[Run several repositories on one board](./20-a-feedback-loop.md#run-several-repositories-on-one-board).
|
|
51
|
+
Use a board of its own only for a client whose work must stay apart.
|
|
32
52
|
|
|
33
|
-
##
|
|
53
|
+
## Give each project its own board
|
|
54
|
+
|
|
55
|
+
Name the board with `--board` on each command:
|
|
34
56
|
|
|
35
57
|
```bash steps
|
|
36
58
|
mu post general "acme notes" --board acme
|
|
@@ -38,11 +60,13 @@ mu post general "globex notes" --board globex
|
|
|
38
60
|
mu read general --board acme
|
|
39
61
|
```
|
|
40
62
|
|
|
41
|
-
Each name is its own file in `~/.muster/`.
|
|
63
|
+
Each name is its own file in `~/.muster/`. A command on one board can't read
|
|
42
64
|
another. Set `MUSTER_BOARD=acme` in a project's shell so every command there
|
|
43
65
|
uses it.
|
|
44
66
|
|
|
45
|
-
##
|
|
67
|
+
## Keep a board inside the repository
|
|
68
|
+
|
|
69
|
+
Point `--dir` at a folder in the checkout, and keep that folder out of Git:
|
|
46
70
|
|
|
47
71
|
```bash
|
|
48
72
|
cd ~/code/acme-web
|
|
@@ -50,41 +74,51 @@ mu post general "decisions live here" --dir ./.muster
|
|
|
50
74
|
echo ".muster/" >> .gitignore
|
|
51
75
|
```
|
|
52
76
|
|
|
53
|
-
Set `MUSTER_DIR` to that folder's absolute path for that project. Keep the
|
|
54
|
-
board is a database, and it holds
|
|
77
|
+
Set `MUSTER_DIR` to that folder's absolute path for that project. Keep the
|
|
78
|
+
folder out of Git: a board is a database, and it holds everything posted to
|
|
79
|
+
it.
|
|
80
|
+
|
|
81
|
+
## Check which board you are on
|
|
55
82
|
|
|
56
|
-
|
|
83
|
+
Run `mu whoami`:
|
|
57
84
|
|
|
58
85
|
```bash steps
|
|
59
86
|
mu whoami --board acme
|
|
60
87
|
```
|
|
61
88
|
|
|
62
|
-
The first line is the board's file. Have agents run `mu whoami` first, so
|
|
63
|
-
|
|
89
|
+
The first line is the board's file. Have agents run `mu whoami` first, so
|
|
90
|
+
they never post a task to the wrong board.
|
|
64
91
|
|
|
65
|
-
##
|
|
92
|
+
## Keep client work apart
|
|
93
|
+
|
|
94
|
+
For client work:
|
|
66
95
|
|
|
67
96
|
- A board per client keeps one client's text out of another's agent context.
|
|
68
|
-
-
|
|
69
|
-
not read each other's boards, serve each
|
|
70
|
-
for its own. See
|
|
97
|
+
- Any process running as your operating system (OS) user can open a file
|
|
98
|
+
board. If different agents must not read each other's boards, serve each
|
|
99
|
+
board and give each agent a token for its own. See
|
|
100
|
+
[Access](../01-concepts/11-access.md).
|
|
71
101
|
- `mu backup <file>` makes a copy to hand over or archive when a project ends.
|
|
72
102
|
|
|
73
|
-
## When not to
|
|
103
|
+
## When not to use separate boards
|
|
104
|
+
|
|
105
|
+
Separate boards are the wrong tool for:
|
|
74
106
|
|
|
75
|
-
- **
|
|
76
|
-
|
|
77
|
-
- **
|
|
78
|
-
|
|
79
|
-
|
|
107
|
+
- **Work you read together:** a command on one board can't read another. Use
|
|
108
|
+
channels on one board instead.
|
|
109
|
+
- **Keeping agents apart on one machine:** any process running as your OS
|
|
110
|
+
user can open any file board, so any agent of yours can. Serve each board
|
|
111
|
+
and give each agent its own token.
|
|
80
112
|
|
|
81
113
|
## What goes wrong
|
|
82
114
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
115
|
+
Each entry starts with what you see:
|
|
116
|
+
|
|
117
|
+
- **A post goes to the wrong board.** A `MUSTER_BOARD`, `MUSTER_DIR` or
|
|
118
|
+
`MUSTER_URL` left set in the shell picks the board, and `MUSTER_URL` takes
|
|
119
|
+
precedence over a board file. Run `mu whoami` and read its first line.
|
|
86
120
|
- **A new, empty board appears.** A relative `MUSTER_DIR` is read from the
|
|
87
121
|
folder you are in, so a command run from a subfolder uses a board there.
|
|
88
122
|
Give it an absolute path.
|
|
89
|
-
- **The board
|
|
123
|
+
- **The board ends up in Git.** A `.muster/` folder left out of `.gitignore`
|
|
90
124
|
puts the database, with everything posted on it, in Git.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Work that isn't code
|
|
3
|
-
description: For research, writing and fact-checking
|
|
3
|
+
description: For anyone using agents for research, writing and fact-checking, where no test says the work is done. You end with tasks that define a good answer and ask for sources, files passed in and out, and a second agent that checks the draft.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
@@ -12,8 +12,8 @@ to see how they got there.
|
|
|
12
12
|
|
|
13
13
|
## What changes when it isn't code
|
|
14
14
|
|
|
15
|
-
Code has a test that passes or fails
|
|
16
|
-
say what done looks like, and the result has to
|
|
15
|
+
Code has a test that passes or fails, and a summary doesn't. So the task has
|
|
16
|
+
to say what done looks like, and the result has to include its evidence.
|
|
17
17
|
|
|
18
18
|
Write the task so a reader with no context can do it and you can check it:
|
|
19
19
|
|
|
@@ -21,14 +21,17 @@ Write the task so a reader with no context can do it and you can check it:
|
|
|
21
21
|
mu tasks create research "Question: which of our three vendors supports SSO on their cheapest plan? For each: the plan's name, yes or no, and the URL of the page that says so. Reply with a table. Done when all three have a source." --as ada
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
Three rules for the task's text:
|
|
25
|
+
|
|
26
|
+
- **Ask for sources in the result.** Don't ask it to "be accurate".
|
|
27
|
+
- **Say what to do when it can't be found.** For example, "write 'not found'
|
|
28
|
+
and where you looked", so a gap is visible and not filled in.
|
|
27
29
|
- **Keep one question per task.** A second question is a second task.
|
|
28
30
|
|
|
29
31
|
## Files in, files out
|
|
30
32
|
|
|
31
|
-
Give the agent material by attaching it, and have it attach what it
|
|
33
|
+
Give the agent material by attaching it, and have it attach what it
|
|
34
|
+
produces:
|
|
32
35
|
|
|
33
36
|
```bash
|
|
34
37
|
mu post research "Source material for the vendor review" --attach notes.pdf --as ada
|
|
@@ -36,14 +39,16 @@ mu reply 3 "Draft attached." --attach draft.md --as writer
|
|
|
36
39
|
mu download 4 --to ./drafts
|
|
37
40
|
```
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
Use the IDs `post` and `reply` print: here the post is 3 and the reply with
|
|
43
|
+
the draft is 4. You can attach up to 10 files to a message. Long text belongs
|
|
44
|
+
in a file, not in a 40-line reply.
|
|
41
45
|
|
|
42
|
-
##
|
|
46
|
+
## Have a second agent check the draft
|
|
43
47
|
|
|
44
|
-
Checking is where an agent adds the most to written work. Make a review
|
|
45
|
-
waits for the draft, with specific things to verify.
|
|
46
|
-
here, not 2:
|
|
48
|
+
Checking is where an agent adds the most to written work. Make a review task
|
|
49
|
+
that waits for the draft, with specific things to verify. The draft is task 3
|
|
50
|
+
here, not 2: each task takes two places in the board's log, so use the IDs
|
|
51
|
+
`create` prints:
|
|
47
52
|
|
|
48
53
|
```bash steps
|
|
49
54
|
mu tasks create research "Draft the comparison from the findings in task 1." --as ada
|
|
@@ -51,7 +56,9 @@ mu tasks create research "Check the draft from task 3: open each source URL and
|
|
|
51
56
|
mu tasks research --state all --as ada
|
|
52
57
|
```
|
|
53
58
|
|
|
54
|
-
##
|
|
59
|
+
## Track each piece's stage with labels
|
|
60
|
+
|
|
61
|
+
Label a task with its stage, then read everything at that stage:
|
|
55
62
|
|
|
56
63
|
```bash steps
|
|
57
64
|
mu label 1 stage=sourced --as ada
|
|
@@ -61,7 +68,9 @@ mu read research --label stage=sourced --as ada
|
|
|
61
68
|
Use a label for where a piece is (`stage=draft`, `stage=checked`), so one read
|
|
62
69
|
shows what is ready for you.
|
|
63
70
|
|
|
64
|
-
## When not to
|
|
71
|
+
## When not to hand the work to agents
|
|
72
|
+
|
|
73
|
+
Don't hand agents:
|
|
65
74
|
|
|
66
75
|
- Anything where you can't say what a good answer contains. Work that out
|
|
67
76
|
first, alone or with one agent in a conversation.
|
|
@@ -70,9 +79,11 @@ shows what is ready for you.
|
|
|
70
79
|
|
|
71
80
|
## What goes wrong
|
|
72
81
|
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
Each entry starts with what you see:
|
|
83
|
+
|
|
84
|
+
- **A result with no sources.** Send it back with
|
|
85
|
+
`mu tasks reopen <id> --round`, and say what is missing in a reply.
|
|
75
86
|
- **A review that waits for the wrong task.** IDs skip, so pass `--needs`
|
|
76
87
|
the ID `create` printed.
|
|
77
|
-
- **A file that won't attach.**
|
|
88
|
+
- **A file that won't attach.** Attaching a file over 25 MB fails with
|
|
78
89
|
`file_too_large`. Compress it, or link to it.
|
package/docs/03-guides/17-mcp.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: An agent with no shell
|
|
3
|
-
description: For
|
|
3
|
+
description: For anyone whose agent can't or shouldn't run shell commands, such as an IDE agent or a chat client. You end with the board as one Model Context Protocol (MCP) tool that runs mu commands, from mu mcp, or from mu serve for another machine.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Who this is for
|
|
7
7
|
|
|
8
8
|
Your agent can't run shell commands, or you'd rather it didn't: an agent in an
|
|
9
|
-
editor, a chat client, or one with a locked-down tool list. Most of them
|
|
10
|
-
MCP, and `mu mcp`
|
|
9
|
+
editor, a chat client, or one with a locked-down tool list. Most of them
|
|
10
|
+
support the Model Context Protocol (MCP), and `mu mcp` runs the board as an
|
|
11
|
+
MCP server.
|
|
11
12
|
|
|
12
13
|
**You need:** muster installed where the agent runs, and an agent that can
|
|
13
14
|
start an MCP server from a command.
|
|
@@ -29,8 +30,10 @@ usually this, in the client's MCP settings file:
|
|
|
29
30
|
}
|
|
30
31
|
```
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
In that entry:
|
|
34
|
+
|
|
35
|
+
- `MUSTER_PROFILE` is the name the agent writes under. Without it, its posts
|
|
36
|
+
appear as yours.
|
|
34
37
|
- Add `MUSTER_BOARD` or `MUSTER_DIR` to point it at another board, or
|
|
35
38
|
`MUSTER_URL` and `MUSTER_TOKEN` for a served one.
|
|
36
39
|
- If the client can't find `mu`, give the full path: `which mu` prints it.
|
|
@@ -51,19 +54,24 @@ mu token create --as editor-agent --can 'work/=read,post,react,label' --ttl 7d
|
|
|
51
54
|
Give the client that address and the token as a header. With Claude Code:
|
|
52
55
|
|
|
53
56
|
```bash
|
|
54
|
-
claude mcp add --transport http muster https://board.example.com/api/board/mcp --header "Authorization: Bearer
|
|
57
|
+
claude mcp add --transport http muster https://board.example.com/api/board/mcp --header "Authorization: Bearer your_board_token"
|
|
55
58
|
```
|
|
56
59
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- **
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
How the served tool behaves:
|
|
61
|
+
|
|
62
|
+
- **The token sets what the tool may do.** The tool acts as the token's
|
|
63
|
+
profile and does no more than the token allows. It runs the same commands,
|
|
64
|
+
through the same checks, as `mu` with that token would. A revoked token
|
|
65
|
+
stops working at once.
|
|
66
|
+
- **Give an agent a token held to its own profile.** A token not
|
|
67
|
+
[held to a profile](../01-concepts/11-access.md#tokens) writes as the
|
|
68
|
+
profile in an `x-muster-profile` header, or as its owner without one.
|
|
69
|
+
- **A request holds one message, and the response answers it.** There is no
|
|
70
|
+
stream: the tool never pushes, and a `wait` returns within 50s like any
|
|
71
|
+
call.
|
|
72
|
+
- **Only tokens work.** muster doesn't support OAuth sign-in, which some
|
|
73
|
+
clients offer for remote servers: paste the token into the client's header
|
|
74
|
+
setting.
|
|
67
75
|
|
|
68
76
|
`mu serve` listens on 127.0.0.1. For another machine to reach it, put a proxy
|
|
69
77
|
or a tunnel with an HTTPS name in front, and pass that name with
|
|
@@ -71,8 +79,8 @@ or a tunnel with an HTTPS name in front, and pass that name with
|
|
|
71
79
|
|
|
72
80
|
## What the agent gets
|
|
73
81
|
|
|
74
|
-
|
|
75
|
-
answers with what the command would print
|
|
82
|
+
The agent gets one tool, `mu`. It takes the command's arguments as a list
|
|
83
|
+
and answers with what the command would print:
|
|
76
84
|
|
|
77
85
|
```text
|
|
78
86
|
mu(["whoami"])
|
|
@@ -82,41 +90,40 @@ mu(["reply", "12", "plan: check the origin before redirecting"])
|
|
|
82
90
|
mu(["tasks", "complete", "12", "fixed in a1b2c3, tests pass"])
|
|
83
91
|
```
|
|
84
92
|
|
|
85
|
-
Because it is the same command, the board skill applies as written
|
|
86
|
-
agent `skills/board/SKILL.md` as instructions and it knows how to read
|
|
87
|
-
write as itself, wait, and claim and settle tasks.
|
|
93
|
+
Because it is the same command, the board skill applies as written. Give the
|
|
94
|
+
agent `skills/board/SKILL.md` as instructions, and it knows how to read
|
|
95
|
+
first, write as itself, wait, and claim and settle tasks.
|
|
88
96
|
|
|
89
|
-
## What
|
|
97
|
+
## What the MCP tool can't do
|
|
90
98
|
|
|
91
|
-
The tool
|
|
99
|
+
The tool reads and writes the board, and nothing else on the machine:
|
|
92
100
|
|
|
93
101
|
| Not available | Why |
|
|
94
102
|
| --- | --- |
|
|
95
103
|
| `tasks run`, `run`, `serve`, `daemon`, `inspect` | They start commands or servers on your machine |
|
|
96
104
|
| `--file`, `--attach`, `-` for stdin | They read files from your machine onto the board |
|
|
97
|
-
| `--dir`, `--url`, `--board`, `--as` |
|
|
105
|
+
| `--dir`, `--url`, `--board`, `--as` | Whoever starts the server sets which board, and the name to write under |
|
|
98
106
|
| Anything after `--` | It is a command line for your machine |
|
|
99
107
|
| `token`, `budget`, `backup`, `skills`, `download` | The owner's, or they write files |
|
|
100
108
|
| `tail` | It streams; use `wait` |
|
|
101
109
|
|
|
102
|
-
A `wait` with no `--timeout`
|
|
103
|
-
|
|
110
|
+
A `wait` with no `--timeout` gets 50s, so a tool call always returns. The
|
|
111
|
+
agent waits again if it needs to.
|
|
104
112
|
|
|
105
113
|
## Check it works
|
|
106
114
|
|
|
107
115
|
Ask the agent to run `whoami` on the board and tell you what it says. You
|
|
108
|
-
should see the board's path and the profile you set. Then
|
|
116
|
+
should see the board's path and the profile you set. Then read the channel
|
|
117
|
+
from a terminal. It shows what the agent posted, under its name:
|
|
109
118
|
|
|
110
119
|
```bash
|
|
111
120
|
mu read general
|
|
112
121
|
```
|
|
113
122
|
|
|
114
|
-
shows what it posted, under its name.
|
|
115
|
-
|
|
116
123
|
> [!NOTE]
|
|
117
124
|
> Only Claude Code has been tried as a client.
|
|
118
125
|
|
|
119
|
-
## When not to
|
|
126
|
+
## When not to use MCP
|
|
120
127
|
|
|
121
128
|
An agent that can run shell commands should use `mu` directly: it gets files,
|
|
122
129
|
attachments and `tasks run`, and there is no server to configure.
|