Skip to content

Releases

v4.0.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 06:54
v4.0.1
2c5dd41

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 and request_id. The lost fields include reload_error,
    the only cause that uapi gives for a failed reload, and restore_error, which names
    the package that a failed restore left in an unknown state. Each other top-level
    field now follows as one name: value line, 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 holds restore_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

Choose a tag to compare

@github-actions github-actions released this 24 Nov 07:51
v4.0.0
32e1bd8

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_ENDPOINT ends in /api/v4. The
    tools of /tokens, /auth/whoami, /diagnostics, /metrics and /batch move under
    /uapi/, such as uapi_tokens_list and uapi_whoami_read. dhcp_leases6_list and
    dhcp_leases6_read go: call dhcp_leases_list and dhcp_lease_read with
    family: "v6". The 7 openvpn_instance* tools go: an openvpn tunnel is a
    network_interface* section with proto: "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_interface write tool. uapi-mcp takes no action for it. (#10)
  • The footer passes every advisory header. It holds each X-Reload-* and
    X-Kernel-* header and X-Mgmt-Path-Warning, sorted by name, so X-Reload-Stopped
    and X-Kernel-Blocked of 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 uapi docs/versioning.md
    promises. The instructions tell the agent to call uapi_service_recover for each
    service in X-Reload-Stopped, and to ask the user before it changes a WireGuard peer
    that X-Kernel-Blocked names and the task does not. (#10)
  • The Idempotency-Key of 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_mq and iqdisc_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, for POST /uapi/services/{name}/recover. In the generator, a
    POST on a literal segment after an item parameter takes that segment as its verb, as
    adopt does. (#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 the default keyword, 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 as network_interface_merge.ovpnproto and firewall_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, null included. (#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 $ref parameters, and hides request_id by name. Before, it
    ignored every $ref parameter. (#10)

v3.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 14:03
v3.5.0
1d2384c

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.go now only owns the
    process; internal/server.New assembles the server. Added make 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-Unread header 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 example sae-compat on wireless/interfaces.encryption.
    uapi 3.5.0 declares limit and cursor on 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

Choose a tag to compare

@github-actions github-actions released this 04 Nov 11:58
v3.3.0
54dd7f1

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 from UAPI_ENDPOINT, UAPI_TOKEN and
    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 signed v* 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 null instead 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)