@brickkit/cli 0.16.0-beta.2 → 0.16.0-beta.3

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.
Files changed (43) hide show
  1. package/README.md +22 -0
  2. package/dashboard-dist/{api-reference-FojtkYBA.js → api-reference-ZQs4Z4Yd.js} +71 -71
  3. package/dashboard-dist/app.css +1 -1
  4. package/dashboard-dist/app.js +12 -12
  5. package/dashboard-dist/{client-Cnm0Im6o.js → client-CFM1S4Xv.js} +1 -1
  6. package/dashboard-dist/{core-SiSejpN2.js → core-VNHGFYB7.js} +1 -1
  7. package/dashboard-dist/{docs-D1HrRL0z.js → docs-CM2krp6H.js} +2 -2
  8. package/dashboard-dist/kit.js +1 -1
  9. package/dashboard-dist/popover-CVY1eRNY.js +1 -0
  10. package/dashboard-dist/theme.css +48 -39
  11. package/dist/bin.js +2 -1
  12. package/dist/bin.js.map +1 -1
  13. package/dist/build.js +6 -1
  14. package/dist/build.js.map +1 -1
  15. package/dist/dashboard-host.js +2594 -898
  16. package/dist/dashboard-host.js.map +1 -1
  17. package/dist/dashboard-protocol.js +4 -0
  18. package/dist/dashboard-protocol.js.map +1 -1
  19. package/dist/dashboard.d.ts +3 -3
  20. package/dist/package.js +5 -0
  21. package/dist/package.js.map +1 -0
  22. package/dist/production-dashboard.js +1 -0
  23. package/dist/production-dashboard.js.map +1 -1
  24. package/dist/project.js +2 -3
  25. package/dist/project.js.map +1 -1
  26. package/dist/vite.js +1 -0
  27. package/dist/vite.js.map +1 -1
  28. package/inspector-dist/client/assets/{app-Wfnqu2Ic.css → app-PJHZvcxl.css} +49 -40
  29. package/inspector-dist/client/assets/{manifest-cfc09adc.js → manifest-274ef876.js} +1 -1
  30. package/inspector-dist/client/assets/{root-CVescmwt.css → root-CPvk93Fe.css} +49 -40
  31. package/inspector-dist/server/assets/{app-DUrMEdTr.js → app-DdYuYhBk.js} +51 -17
  32. package/inspector-dist/server/assets/{functions-CvYRS9L5.js → functions-BebJWj30.js} +2 -2
  33. package/inspector-dist/server/assets/{serialization-BMjuH1Dy.js → serialization-Cgu5b7aC.js} +1 -1
  34. package/inspector-dist/server/assets/{token-B03I2FMb.js → token-3-nUtxO2.js} +1 -1
  35. package/inspector-dist/server/assets/{token-CXQG49kq.js → token-DH652a7D.js} +1 -1
  36. package/inspector-dist/server/assets/token-util-wQgchIHA.js +3 -0
  37. package/inspector-dist/server/assets/{ws-transport-CMidAEKi.js → ws-transport-7nLI4Gq9.js} +1 -1
  38. package/inspector-dist/server/index.js +1 -1
  39. package/package.json +2 -2
  40. package/dashboard-dist/PopoverPopup-CiI2avT_.js +0 -1
  41. package/dashboard-dist/popover-Da7zBKDq.js +0 -1
  42. package/inspector-dist/server/assets/token-util-DQqrmFHy.js +0 -3
  43. /package/inspector-dist/client/assets/{root-CVhM1JOR.js → root-2KbsWt-J.js} +0 -0
package/README.md CHANGED
@@ -181,6 +181,23 @@ delete `.brick/` to start over.
181
181
  Requests that send a W3C `traceparent` header join the caller's trace, and the
182
182
  dashboard shows them under that trace id.
183
183
 
184
+ `brick dev` also serves `/mcp` on the dashboard's port, an MCP endpoint
185
+ for coding agents (Claude Code, Cursor, Codex) with read-only tools for every
186
+ view: `summary`, `list_requests`, `get_trace`, `search_logs`, `list_errors`,
187
+ `list_reloads` and `app_overview`; `list_schedules`, `list_runs` and `get_run`
188
+ while the workflow inspector is served; and, under `brick dev` only,
189
+ `get_openapi`, `list_docs` and `read_doc`. A tool whose data is not there is left
190
+ out of the list. It prints the address on start; connect with
191
+ `claude mcp add --transport http brick http://127.0.0.1:9400/mcp`. They only
192
+ read, a hook's token is never sent, there is no live stream (each call is a
193
+ plain request and response), and a request from another origin is refused. Tools of
194
+ the app's own marked `dashboard: true` (`service.tool`, or a plugin's) are
195
+ listed beside them; one without `readOnlyHint: true` can change data and is
196
+ advertised as destructive. `list_errors` reads only the failures held in memory
197
+ since the process started (the last 200), even when history is kept on disk;
198
+ older ones are found with `list_requests` and `outcome: "server"`. What an agent reads (paths, errors, SQL text, log lines) goes to its
199
+ model provider.
200
+
184
201
  ### Monitoring dashboard for production
185
202
 
186
203
  `brick start` serves a read-only dashboard of the running app when the app,
@@ -203,6 +220,11 @@ address, and it answers while the app's routes do not. It shows Requests, Logs,
203
220
  Errors, Overview, and Reloads; there is no restart, API proxy, APIs, or Docs, and
204
221
  OpenAPI documents are not served. `dashboard: { inspector: true }` adds
205
222
  Schedules and Workflows, where only a signed-in user can change anything.
223
+ `dashboard: { mcp: true }` serves `/mcp` for coding agents behind the same
224
+ `auth` (agents send `Authorization: Bearer <token>`); it is off otherwise. The
225
+ dashboard's own tools only read; the app's `dashboard: true` tools that can
226
+ change data are offered only to a signed-in user (`authorize` returned
227
+ `{ user }`).
206
228
  Setting it turns `telemetry` on, and from then `ctx.logger` and `console`
207
229
  lines written during a request go to the dashboard and not to the container's
208
230
  console.