Compare commits

..

1 commit

Author SHA1 Message Date
36690ee292
docs: ship native Mozilla Go SDK plugin setup and v2.3.0 notes
Some checks are pending
CI / vet-build-test (push) Waiting to run
2026-11-27 23:01:43 -06:00
5 changed files with 158 additions and 8 deletions

View file

@ -91,8 +91,11 @@ flowchart LR
Client -->|"regular Tailscale app"| Hub["Hub with embedded Tailscale"]
```
**Mozilla AI mcpd supported:** use the [tested daemon configuration](examples/mcpd/README.md)
to manage devbox through mcpd, with optional Go or PHP middleware plugins.
**Mozilla AI integration, native Go:** v2.3.0 ships an optional
`devbox-mcpd-plugin` built with Mozilla's official Go plugin SDK. It records
tool-request metadata without logging arguments or file contents. Use the
[tested mcpd setup](examples/mcpd/README.md) to enable it alongside devbox's
built-in MCP server; Go and PHP plugins share mcpd's middleware protocol.
Read the [MCP setup guide](docs/MCP.md) for tool names, configuration, execution
limits, and errors, or the [implementation plan](docs/MCP-PLAN.md) for scope.
@ -134,6 +137,10 @@ curl -fsSL https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/late
sh install.sh --hub --no-service
```
For the optional native Mozilla mcpd plugin (v2.3.0+), run
`sh install.sh --mcpd-plugin --no-service`; see the
[mcpd guide](examples/mcpd/README.md) for registration.
`--service` installs a keep-alive service for the **client sync daemon**. Run the
hub separately, or configure its own service with the `serve` arguments below.
@ -148,6 +155,7 @@ the [Forgejo distribution mirror](https://git.shoemoney.ai/shoemoney/devbox-dist
Both are public. Release downloads include `devbox` and `devbox-hub` for Linux amd64/arm64/arm,
macOS amd64/arm64, and Windows amd64, plus `SHA256SUMS`. The shell installer
supports amd64 and arm64; download the Linux arm binaries directly for 32-bit Pi OS.
The optional `devbox-mcpd-plugin` has matching platform binaries.
Use `--release-url` / `DEVBOX_RELEASE_URL` to select a versioned release.
## 🚀 Tailscale quick start
@ -345,10 +353,10 @@ pinned Tailscale dependency. Downloading prebuilt binaries needs no Go toolchain
go build ./cmd/devbox ./cmd/devbox-hub
go vet ./...
go test -race ./...
VERSION=v2.2.0 ./scripts/build-release.sh
VERSION=v2.3.0 ./scripts/build-release.sh
```
The release script cross-compiles both binaries for six platform/architecture
The release script cross-compiles the client, hub, and optional mcpd plugin for six platform/architecture
combinations and generates checksums. Public binaries are available through
[GitHub Releases](https://github.com/shoemoney/devbox/releases) and the Forgejo
[`devbox-dist`](https://git.shoemoney.ai/shoemoney/devbox-dist) mirror. The default

View file

@ -71,8 +71,11 @@ mcpd v0.7.0 and devbox v2.2.0 on Linux, including authenticated snapshot history
Mozilla's [Go plugin SDK](https://github.com/mozilla-ai/mcpd-plugins-sdk-go) and
the community [PHP plugin SDK](https://github.com/shoemoney/mcpd-plugins-sdk-php)
provide optional middleware around daemon requests/responses. Devbox's native
MCP tools work through mcpd without adding a plugin dependency.
provide middleware around daemon requests/responses. In v2.3.0, the optional
`devbox-mcpd-plugin` uses Mozilla's Go SDK to record metadata for devbox tool
requests without logging payloads. Install it with `--mcpd-plugin` and follow
the [native plugin setup](../examples/mcpd/README.md#use-the-native-mozilla-go-sdk-plugin-v230).
The daemon can also manage the tool server without enabling this plugin.
## Available tools

60
docs/releases/v2.3.0.md Normal file
View file

@ -0,0 +1,60 @@
# v2.3.0 — Native Mozilla AI Go SDK integration
Devbox now ships an optional **native mcpd middleware plugin**, built with
Mozilla AI's official [`mcpd-plugins-sdk-go`](https://github.com/mozilla-ai/mcpd-plugins-sdk-go).
## Install the plugin
```bash
curl -fsSL https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/latest/install.sh -o install.sh
sh install.sh --mcpd-plugin --no-service
```
The PowerShell installer supports `-McpdPlugin`. Releases include the plugin
alongside the client and hub for Linux amd64/arm64/arm, macOS amd64/arm64,
and Windows amd64.
Register `devbox-mcpd-plugin` in mcpd's plugin directory and enable its optional
request observability flow. The [tested setup guide](https://github.com/shoemoney/devbox/tree/main/examples/mcpd)
includes complete configuration and a PHP HTTP example.
The plugin records the tool name, HTTP method, event, and plugin version for
recognized devbox tool requests. It leaves the request unchanged and excludes
arguments, bodies, headers, queries, identities, addresses, filenames, and file
contents from audit records. It is request telemetry, not a durable transaction
history or proof an operation completed. Existing tool permissions still apply.
## Built-in MCP and Tailscale remain available
```bash
codex mcp add devbox -- /absolute/path/to/devbox mcp
devbox-hub serve --data ./hub-data --tailscale
```
The client serves structured agent tools over local stdio. The hub embeds
Tailscale, while client machines use their regular Tailscale connection. mcpd
can manage the tool server with or without the optional plugin.
![Actual Tailscale CLI help](https://raw.githubusercontent.com/shoemoney/devbox/main/docs/images/tailscale-help.png)
![MCP discovery and selected status fields](https://raw.githubusercontent.com/shoemoney/devbox/main/docs/images/mcp-tools.png)
The CLI/MCP screenshots were captured from v2.2.0; that tool surface remains in
v2.3.0. The live dashboard capture uses an isolated local demo, not production
Tailscale enrollment.
## Downloads
Each release provides **18 binaries**, both installers, and `SHA256SUMS`:
21 assets, with hashes for all 20 payloads. Public downloads are on GitHub and
Forgejo. Prebuilt binaries require no Go toolchain; source builds require Go
1.27.4 or newer. Mozilla's Go plugin SDK is pinned to v0.1.1.
## Verification
Passed vet and the full race suite, SDK gRPC lifecycle and request tests,
concurrent audit tests, payload-exclusion checks, installer smoke, and nine
publication tests. A real mcpd v0.7.0 instance loaded the native plugin, served
devbox tool calls, emitted metadata records without header/query/body sentinels,
kept the write allowlist enforced, and stopped the plugin without a forced kill.
PowerShell installer execution was not available in the validation environment.

View file

@ -17,8 +17,9 @@ snapshot history through mcpd's HTTP API.
serves that same middleware role. `status.php` here is a plain HTTP consumer;
it does not require a plugin SDK.
The plugin SDK and the MCP tool server are separate integration points. No new
Go dependency is required in devbox for mcpd to manage it.
The plugin SDK and the MCP tool server are separate integration points. Basic
mcpd management works without a plugin. **v2.3.0 also ships an optional native
`devbox-mcpd-plugin` built with Mozilla's official Go plugin SDK.**
## 1. Install the prerequisites
@ -124,3 +125,59 @@ config and hub, but filesystem diagnostics cannot inspect the actual files.
This example does not enable mutation tools. Enabling them also requires writable
mounts, appropriate container ownership, and an updated mcpd tool allowlist.
Use the [native MCP guide](../../docs/MCP.md) for the tool permission model.
## Use the native Mozilla Go SDK plugin (v2.3.0)
Install the optional plugin along with the client:
```bash
curl -fsSL https://git.shoemoney.ai/shoemoney/devbox-dist/releases/download/latest/install.sh -o install.sh
sh install.sh --mcpd-plugin --no-service
```
On Windows the PowerShell installer supports `-McpdPlugin`. Select the plugin
binary matching the machine running **mcpd**, which may be different from
Docker's Linux architecture. The Linux binary requirement above applies to the
MCP server inside the container, not the native middleware process.
Create a dedicated plugin directory and place the executable inside it:
```bash
mkdir -p ./plugins
cp /absolute/path/to/devbox-mcpd-plugin ./plugins/devbox-mcpd-plugin
chmod 755 ./plugins/devbox-mcpd-plugin
```
Copy `mcpd-with-plugin.toml` and set `[plugins].dir` to that directory's absolute
path. The configured plugin name must match the executable filename. Start the
daemon with that configuration and your existing runtime file:
```bash
mcpd daemon --config-file ./mcpd-with-plugin.toml --runtime-file /absolute/path/to/runtime.local.toml --addr 127.0.0.1:8090 --timeout-mcp-request 150s --log-level INFO --log-path ./mcpd.log
```
mcpd launches the native plugin over its standard gRPC socket protocol. The
plugin is written against `mozilla-ai/mcpd-plugins-sdk-go`; it is a separate
native executable included in devbox releases, not a replacement for
`devbox mcp`.
The plugin records **request metadata only** for recognized devbox tool-call
routes: the event, plugin version, HTTP method, and tool name. It leaves the
request unchanged. Audit records exclude arguments, request/response bodies,
headers, query strings, user identities, network addresses, filenames, and file
contents. It does not change tool permissions or authorize a write. The
observability category is optional; these records are operational telemetry,
not a durable transaction history or proof an operation completed.
Only the request flow is advertised. Other daemon routes pass through without
a devbox audit event. mcpd captures the plugin's stderr and forwards it into its
logs. Its normal startup/lifecycle logs are separate from the audit records.
### Verified behavior
The v2.3.0 plugin was exercised in a real mcpd v0.7.0 process. It registered,
received tool requests, emitted `devbox.tool.request` records, and left
header/query/body sentinels out of those records. An unlisted write tool still
received HTTP 403. On daemon shutdown the native plugin exited without a
forced-kill warning. Unit tests also exercise the official SDK's metadata,
capability, health, readiness, request, and Stop RPCs over real gRPC.

View file

@ -0,0 +1,22 @@
[[servers]]
name = "devbox"
package = "docker::alpine@3.22"
tools = ["devbox_status", "devbox_doctor", "devbox_conflicts", "devbox_history", "devbox_members"]
[servers.volumes.binary]
path = "/opt/devbox/devbox:ro"
required = true
[servers.volumes.config]
path = "/config/devbox:ro"
required = true
[servers.volumes.certificates]
path = "/etc/ssl/certs:ro"
required = true
# Install the v2.3.0 native plugin into this directory, then set its absolute path.
[plugins]
dir = "/absolute/path/to/mcpd/plugins"
[[plugins.observability]]
name = "devbox-mcpd-plugin"
flows = ["request"]
required = false