Repository navigation
Releases
v4.0.1
Tracks the uapi 4.0 wire surface, as 4.0.0 does: the catalog and the vendored spec do
not change. An error result now shows every field of uapi's error envelope, such as
reload_error, the cause of a failed reload.
Fixed
- An error result dropped every field of uapi's error envelope other than
code,
message, the field errors andrequest_id. The lost fields includereload_error,
the only cause that uapi gives for a failed reload, andrestore_error, which names
the package that a failed restore left in an unknown state. Each other top-level
field now follows as onename: valueline, sorted by name, so a field that a uapi
4.x minor adds needs no release of uapi-mcp. The instructions tell the agent not to
retry a write whose error holdsrestore_error, and to tell the user. These fields can
quote the output of a daemon or a command, and that output can quote a write-only key:
the README says where the host keeps the text. (#14)
v4.0.0
Tracks uapi 4.0.0, from the spec of the uapi v4.0.0 tag. uapi 4.0.0 needs OpenWrt main,
so a router on OpenWrt 25.12 stays on uapi 3.5 and uapi-mcp 3.5. Set UAPI_ENDPOINT to
the /api/v4 path of the router. Before you upgrade a router from uapi 3.x, read the
uapi guide
docs/migration-v3-to-v4.md.
Changed
- BREAKING: uapi-mcp tracks uapi 4.0.0, which needs OpenWrt main. The catalog comes
from the uapi 4.0.0 spec and holds 258 tools.UAPI_ENDPOINTends in/api/v4. The
tools of/tokens,/auth/whoami,/diagnostics,/metricsand/batchmove under
/uapi/, such asuapi_tokens_listanduapi_whoami_read.dhcp_leases6_listand
dhcp_leases6_readgo: calldhcp_leases_listanddhcp_lease_readwith
family: "v6". The 7openvpn_instance*tools go: an openvpn tunnel is a
network_interface*section withproto: "openvpn". A router on OpenWrt 25.12 stays
on uapi 3.5 and uapi-mcp 3.5. The openvpn fields add about 11 KB to each
network_interfacewrite tool. uapi-mcp takes no action for it. (#10) - The footer passes every advisory header. It holds each
X-Reload-*and
X-Kernel-*header andX-Mgmt-Path-Warning, sorted by name, soX-Reload-Stopped
andX-Kernel-Blockedof uapi 4.0.0 reach the agent. A header that a uapi 4.x minor
adds under these prefixes needs no release of uapi-mcp, as uapidocs/versioning.md
promises. The instructions tell the agent to calluapi_service_recoverfor each
service inX-Reload-Stopped, and to ask the user before it changes a WireGuard peer
thatX-Kernel-Blockednames and the task does not. (#10) - The
Idempotency-Keyof a POST goes only in the header, which uapi 4.x reads. (#10) - The instructions send the agent to the merge tool to change some fields of a section.
Before, they told it to read, edit and send the object back with the replace tool. A
replace removes each option that uapi does not model, so a replace of the stock sqm
queue removed the 7 advanced options that LuCI writes on it. (#10)
Added
- The sqm queue tools take the 20 options that LuCI's sqm form writes, such as
ingress_ecn,use_mqandiqdisc_opts(uapi #481). A replace of the read keeps
them. An absent option of a queue reads the default of sqm-scripts, and the field
descriptions give it. (#11) uapi_service_recover, forPOST /uapi/services/{name}/recover. In the generator, a
POST on a literal segment after an item parameter takes that segment as its verb, as
adoptdoes. (#10)- A list walk reads the list again from the first page when uapi answers 400 to a
cursor after the first page, because the list changed under it. It does this at most
3 times, then returns the 400. (#10) - Schema defaults fold into the field descriptions, as
Reads <value> when unset.,
on the create, replace and merge tools. The softening drops thedefaultkeyword, so
the agent did not see what an absent field means. uapi defines a default as the value
that a field reads while its uci option is unset. (#10)
Fixed
- A DELETE that answers 204 lost its footer, so the reload headers of a delete did not
reach the agent. (#10) - A merge field with an enum lost the description of its replace field since 3.3.0,
such asnetwork_interface_merge.ovpnprotoandfirewall_rule_merge.target(26
fields on uapi 4.0.0). The generator now takes the description of the Request field
before it folds the enum of the Patch field,nullincluded. (#10) - A query argument that the agent sent as a bool or a number, such as
"managed": true, was dropped, and the list answered every section. It is now sent as
its text. (#10) - The generator resolves
$refparameters, and hidesrequest_idby name. Before, it
ignored every$refparameter. (#10)
v3.5.0
Tracks uapi 3.5.0. There is no uapi-mcp 3.4: uapi 3.4 published only the v4
announcements. The X-Kernel-Unread footer needs uapi 3.5.0 or later. Everything
else works against uapi 3.0 to 3.4, where a tool for an endpoint that the router
does not serve answers 404.
Added
- A host-eye test layer in
internal/server: an SDK client over the in-memory
transport asserts what a host receives, the layer that would have caught both
defects of the first live run before any release.main.gonow only owns the
process;internal/server.Newassembles the server. Addedmake smoke
(scripts/smoke.py), the one-command run against a real router that gates
every tag, and wrote the three testing layers down in AGENTS.md. (#5) - The WireGuard kernel peer tools carry the
X-Kernel-Unreadheader of uapi
3.5.0 (uapi #380) in the footer block, merged over every page of the list.
The header names the up interfaces whose kernel uapi could not read. The
payload holds no peer for them, so an empty list beside the footer does not
mean that the kernel holds no drift. An older router never sends the header.
(#6)
Changed
- The vendored spec is the one of the uapi v3.5.0 tag. There is no uapi-mcp
3.4: uapi 3.4 published only the v4 announcements. The catalog keeps its 266
tools, with no tool added or removed. Descriptions and folded enum values
follow 3.5.0, for examplesae-compatonwireless/interfaces.encryption.
uapi 3.5.0 declareslimitandcursoron every list (uapi #385). The
generator hides them: the client walks every page itself, and an agent cursor
would answer a partial list that reads as the whole collection. (#6)
Fixed
- Write results glued the transaction-header footer to the payload text, so
hosts could not parse them as JSON: writes answered a raw string while reads
answered an object. The payload now rides as its own content block and the
footer follows as a second block, byte for byte unchanged otherwise. (#4)
v3.3.0
First release, tracking uapi 3.3.0.
Added
- Initial project: a stdio MCP server that exposes one OpenWrt router's uapi REST
API to an agent session. Credentials come fromUAPI_ENDPOINT,UAPI_TOKENand
UAPI_INSECURE, same names and semantics as the Terraform provider. The tool
catalog is generated from uapi's vendored OpenAPI spec (3.3.0) by
internal/gen: 266 tools, one per curated endpoint, /raw excluded. Input
schemas are the spec's request schemas softened so the client never rejects a
payload the server accepts: enums fold into property descriptions, patterns and
bounds are dropped, objects accept unknown properties. (#2) - CI in the provider's shape (build, vet, gofmt, race tests, golangci-lint,
catalog freshness) plus uapi's changelog entry check, and a GoReleaser release
workflow: a signedv*tag, verified against.github/release-signers.asc,
builds multi-platform binaries and publishes them with notes extracted from
this changelog. The artifacts are not signed; the signed tag is the trust
anchor. (#2)
Fixed
- An empty collection answered
nullinstead of[]: the list tools
marshalled a nil slice. Found on a real router, where an empty collection is
the normal case, such as the WireGuard kernel peers on a router without a
WireGuard interface. (#3)