@mushi-mushi/mcp-ci 0.6.8 → 0.6.9
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/LICENSE +1 -1
- package/README.md +55 -60
- package/package.json +3 -3
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,51 +1,65 @@
|
|
|
1
1
|
# `@mushi-mushi/mcp-ci`
|
|
2
2
|
|
|
3
|
-
> **Your AI wrote it. Mushi tells you why it broke.**
|
|
3
|
+
> **Your AI wrote it. Mushi Mushi tells you why it broke.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
A GitHub Action for people who already use Mushi Mushi and want CI to act on
|
|
6
|
+
their bug reports: hand one report to an agent that opens a fix PR, ask
|
|
7
|
+
questions about your reports, or run Mushi Mushi's pre-release checks on a
|
|
8
|
+
commit.
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
> **Status: the `uses:` line below does not run today.** `action.yml` starts
|
|
11
|
+
> `dist/cli.js`, and the built `dist/` folder is not in the repository
|
|
12
|
+
> (checked 2026-10-29 on `master` and on the `@mushi-mushi/mcp-ci@0.6.8` tag),
|
|
13
|
+
> so the step fails before any command starts. The commands below describe
|
|
14
|
+
> what the code does once that is fixed.
|
|
12
15
|
|
|
13
16
|
```yaml
|
|
14
17
|
- uses: kensaurus/mushi-mushi/packages/mcp-ci@master
|
|
15
18
|
with:
|
|
16
19
|
api-key: ${{ secrets.MUSHI_API_KEY }}
|
|
17
20
|
project-id: ${{ secrets.MUSHI_PROJECT_ID }}
|
|
18
|
-
command:
|
|
21
|
+
command: dispatch-fix
|
|
22
|
+
report-id: <report-uuid>
|
|
19
23
|
```
|
|
20
24
|
|
|
25
|
+
**What you need**
|
|
26
|
+
|
|
27
|
+
- A Mushi Mushi project and a project API key with MCP access, saved as a
|
|
28
|
+
repo secret. An SDK key (`report:write`) is refused. `check-coverage`,
|
|
29
|
+
`query` and `discovery-status` need `mcp:read`; every other command needs
|
|
30
|
+
`mcp:write`. Mint the key on the console's **Connect** page.
|
|
31
|
+
- For `dispatch-fix`: a GitHub repo connected to the project, so the agent
|
|
32
|
+
has somewhere to open the PR.
|
|
33
|
+
- For the inventory commands (`gates`, `discover-api`, `spec-drift`,
|
|
34
|
+
`discovery-status`, `propose`, `auth-bootstrap`): the Studio or Enterprise plan on Mushi Mushi
|
|
35
|
+
Cloud. Other plans get a 402. See [pricing](https://kensaur.us/mushi-mushi/docs/pricing).
|
|
36
|
+
|
|
21
37
|
Docs: [mcp-ci reference](https://kensaur.us/mushi-mushi/docs/sdks/mcp-ci)
|
|
22
38
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
> path: short-lived CI jobs that call the same REST endpoints the MCP
|
|
27
|
-
> server exposes, with no stdio transport overhead.
|
|
39
|
+
This is not an MCP server. It calls the same REST API the MCP tools use, from
|
|
40
|
+
a short CI job. For tools inside your editor, install
|
|
41
|
+
[`@mushi-mushi/mcp`](https://www.npmjs.com/package/@mushi-mushi/mcp).
|
|
28
42
|
|
|
29
43
|
## Commands
|
|
30
44
|
|
|
31
|
-
###
|
|
45
|
+
### Reports and fixes
|
|
32
46
|
|
|
33
47
|
| `command` | What it does | Required inputs |
|
|
34
48
|
| ------------------ | ---------------------------------------------------------------------------- | ------------------------------------- |
|
|
35
|
-
| `check-coverage` |
|
|
36
|
-
| `trigger-judge` |
|
|
37
|
-
| `dispatch-fix` |
|
|
38
|
-
| `query` |
|
|
49
|
+
| `check-coverage` | Meant to fail the step when fewer than `min-coverage` (default `0.8`) of your reports are classified. **It cannot fail today:** it reads a `classified` count that `GET /v1/admin/stats` does not return, so the ratio is `NaN` and the step passes. | none |
|
|
50
|
+
| `trigger-judge` | Asks the judge to grade Mushi Mushi's diagnoses it has not graded yet. It does not classify reports (that happens on its own when a report arrives). Needs the judge switched on for the project; the grading runs in the background after the step ends. | none |
|
|
51
|
+
| `dispatch-fix` | Hands one report to a coding agent, which opens a fix PR. `inventory-action-node-id` pins the fix to one inventory action, so its `expected_outcome` goes into the agent's prompt. | `report-id` (+ optional `inventory-action-node-id`) |
|
|
52
|
+
| `query` | Asks a question about your reports in plain words and prints the answer. | `question` |
|
|
39
53
|
|
|
40
|
-
###
|
|
54
|
+
### Inventory and pre-release checks (Studio or Enterprise plan)
|
|
41
55
|
|
|
42
56
|
| `command` | What it does | Required inputs |
|
|
43
57
|
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
|
|
44
58
|
| `gates` | Runs the pre-release gates for the current commit (`all` = `dead_handler`, `mock_leak`, `api_contract`, `status_claim`, `orphan_endpoint`, `unknown_call`), prints one line per gate, and fails the step when any gate fails, errors or returns no result. `dead_handler` and `mock_leak` read your ESLint JSON report (`eslint-report`); without it the step fails. The crawl runs from Inventory → Reconcile, not here. Use `gates: 'api_contract,status_claim'` to run a subset. | `eslint-report` for the lint gates (also `commit-sha` / `pr-number` / `gates`) |
|
|
45
|
-
| `discover-api` |
|
|
46
|
-
| `spec-drift` |
|
|
59
|
+
| `discover-api` | Reads your repo for Next.js route handlers and OpenAPI files (and, optionally, your Supabase tables) and sends the list to Mushi Mushi, so the `api_contract` check has something to compare against. | — (uses `repo-root` / `openapi-file` / `supabase-*`) |
|
|
60
|
+
| `spec-drift` | Runs `oasdiff breaking` between two OpenAPI specs, records the findings as a `spec_drift` gate run and sets the `findings` output. Fails on a breaking change unless `fail-on-breaking: false`. | `base-spec`, `head-spec` (+ optional `fail-on-breaking`, `commit-sha`, `pr-number`) |
|
|
47
61
|
|
|
48
|
-
###
|
|
62
|
+
### Inventory from SDK traffic (Studio or Enterprise plan)
|
|
49
63
|
|
|
50
64
|
| `command` | What it does | Required inputs |
|
|
51
65
|
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------- |
|
|
@@ -53,41 +67,19 @@ Docs: [mcp-ci reference](https://kensaur.us/mushi-mushi/docs/sdks/mcp-ci)
|
|
|
53
67
|
| `propose` | Kicks the LLM proposer (`POST /v1/admin/inventory/:projectId/propose` → `inventory-propose` Edge Function). Emits `proposal_id`; chain it into a PR-comment job. | — |
|
|
54
68
|
| `auth-bootstrap` | Refreshes the crawler cookie via [`@mushi-mushi/inventory-auth-runner`](https://www.npmjs.com/package/@mushi-mushi/inventory-auth-runner) (shells out to `npx --yes -p @mushi-mushi/inventory-auth-runner mushi-mushi-auth refresh`). Run before any `gates` step that triggers a crawl. | `TEST_USER_*` env vars consumed by your script |
|
|
55
69
|
|
|
56
|
-
##
|
|
57
|
-
|
|
58
|
-
```yaml
|
|
59
|
-
# .github/workflows/mushi-gate.yml
|
|
60
|
-
name: Mushi CI Gate
|
|
61
|
-
on: [pull_request]
|
|
62
|
-
|
|
63
|
-
jobs:
|
|
64
|
-
classify:
|
|
65
|
-
runs-on: ubuntu-latest
|
|
66
|
-
steps:
|
|
67
|
-
- uses: kensaurus/mushi-mushi/packages/mcp-ci@master
|
|
68
|
-
with:
|
|
69
|
-
api-key: ${{ secrets.MUSHI_API_KEY }}
|
|
70
|
-
project-id: ${{ secrets.MUSHI_PROJECT_ID }}
|
|
71
|
-
command: trigger-judge
|
|
72
|
-
|
|
73
|
-
- uses: kensaurus/mushi-mushi/packages/mcp-ci@master
|
|
74
|
-
with:
|
|
75
|
-
api-key: ${{ secrets.MUSHI_API_KEY }}
|
|
76
|
-
project-id: ${{ secrets.MUSHI_PROJECT_ID }}
|
|
77
|
-
command: check-coverage
|
|
78
|
-
min-coverage: '0.9'
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Quick start — auto-dispatch fix on label
|
|
70
|
+
## Example: start a fix by hand
|
|
82
71
|
|
|
83
72
|
```yaml
|
|
73
|
+
# .github/workflows/mushi-fix.yml
|
|
84
74
|
on:
|
|
85
|
-
|
|
86
|
-
|
|
75
|
+
workflow_dispatch:
|
|
76
|
+
inputs:
|
|
77
|
+
report_id:
|
|
78
|
+
description: 'Mushi Mushi report id (UUID)'
|
|
79
|
+
required: true
|
|
87
80
|
|
|
88
81
|
jobs:
|
|
89
82
|
dispatch:
|
|
90
|
-
if: github.event.label.name == 'mushi:auto-fix'
|
|
91
83
|
runs-on: ubuntu-latest
|
|
92
84
|
steps:
|
|
93
85
|
- uses: kensaurus/mushi-mushi/packages/mcp-ci@master
|
|
@@ -95,14 +87,14 @@ jobs:
|
|
|
95
87
|
api-key: ${{ secrets.MUSHI_API_KEY }}
|
|
96
88
|
project-id: ${{ secrets.MUSHI_PROJECT_ID }}
|
|
97
89
|
command: dispatch-fix
|
|
98
|
-
report-id: ${{
|
|
90
|
+
report-id: ${{ inputs.report_id }}
|
|
99
91
|
```
|
|
100
92
|
|
|
101
|
-
##
|
|
93
|
+
## Example: pre-release checks on every PR
|
|
102
94
|
|
|
103
95
|
```yaml
|
|
104
96
|
# .github/workflows/mushi-gates.yml
|
|
105
|
-
name: Mushi
|
|
97
|
+
name: Mushi Mushi checks
|
|
106
98
|
on: [pull_request]
|
|
107
99
|
|
|
108
100
|
jobs:
|
|
@@ -111,7 +103,10 @@ jobs:
|
|
|
111
103
|
steps:
|
|
112
104
|
- uses: actions/checkout@v4
|
|
113
105
|
|
|
114
|
-
#
|
|
106
|
+
# auth-bootstrap signs in with Playwright, so the job needs a browser.
|
|
107
|
+
- run: npx playwright install --with-deps chromium
|
|
108
|
+
|
|
109
|
+
# Refresh the crawler cookie so the crawler can reach pages behind your login.
|
|
115
110
|
- uses: kensaurus/mushi-mushi/packages/mcp-ci@master
|
|
116
111
|
with:
|
|
117
112
|
api-key: ${{ secrets.MUSHI_API_KEY }}
|
|
@@ -144,7 +139,7 @@ jobs:
|
|
|
144
139
|
pr-number: ${{ github.event.pull_request.number }}
|
|
145
140
|
```
|
|
146
141
|
|
|
147
|
-
##
|
|
142
|
+
## Example: weekly inventory proposal
|
|
148
143
|
|
|
149
144
|
```yaml
|
|
150
145
|
on:
|
|
@@ -174,8 +169,8 @@ jobs:
|
|
|
174
169
|
|
|
175
170
|
| Input | Required | Default | Description |
|
|
176
171
|
| ------------------- | --------------------- | ----------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
177
|
-
| `api-key` | yes | — | Mushi project API key. Store as a repo secret.
|
|
178
|
-
| `project-id` | yes | — | Mushi project UUID.
|
|
172
|
+
| `api-key` | yes | — | Mushi Mushi project API key with `mcp:read` or `mcp:write` (see above). Store as a repo secret. |
|
|
173
|
+
| `project-id` | yes | — | Mushi Mushi project UUID. |
|
|
179
174
|
| `command` | yes | — | One of the commands above. |
|
|
180
175
|
| `api-endpoint` | no | Hosted Supabase functions URL | Override for self-hosted deployments. |
|
|
181
176
|
| `report-id` | when `dispatch-fix` | — | Report UUID to dispatch a fix for. |
|
|
@@ -199,7 +194,7 @@ jobs:
|
|
|
199
194
|
|
|
200
195
|
| Output | Description |
|
|
201
196
|
| ------------------- | -------------------------------------------------------------------------------------- |
|
|
202
|
-
| `result` | Raw JSON envelope returned by the Mushi API. |
|
|
197
|
+
| `result` | Raw JSON envelope returned by the Mushi Mushi API. |
|
|
203
198
|
| `coverage` | For `check-coverage`: observed classified ratio (0–1). |
|
|
204
199
|
| `findings` | For `spec-drift`: JSON array of the oasdiff findings. |
|
|
205
200
|
| `ready_to_propose` | For `discovery-status`: `'true'` once the project has a defensible-sized SDK sample. |
|
|
@@ -215,4 +210,4 @@ MIT
|
|
|
215
210
|
<!-- mushi-readme-stats-footer -->
|
|
216
211
|
---
|
|
217
212
|
|
|
218
|
-
<sub>Monorepo scale (July 2026):
|
|
213
|
+
<sub>Monorepo scale (July 2026): 77 edge functions · 546 SQL migrations · 13 outbound plugins · 11 inbound adapters · 19 pipeline agents. Canonical counts: <a href="https://github.com/kensaurus/mushi-mushi/blob/master/docs/stats.md">docs/stats.md</a> · <code>pnpm docs-stats</code></sub>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mushi-mushi/mcp-ci",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"description": "GitHub Action for Mushi Mushi: fail a PR while bug reports sit untriaged, have an agent open a fix PR for a report, or run pre-release checks from your workflow.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"typescript": "^6.0.3",
|
|
53
53
|
"vitest": "^4.1.9",
|
|
54
54
|
"@mushi-mushi/eslint-config": "0.0.0",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
55
|
+
"eslint-plugin-mushi-mushi": "0.3.6",
|
|
56
|
+
"@mushi-mushi/tsconfig": "0.0.0"
|
|
57
57
|
},
|
|
58
58
|
"author": "Kenji Sakuramoto <kensaurus@gmail.com> (https://github.com/kensaurus)",
|
|
59
59
|
"engines": {
|