Skip to content

mcpx: generalised live add + generated declarations for bare binaries (split of #1875) #2118

Description

@dezren39

Split of #1875 by triage task 2769 (verdict on #1875, 2026-10-29). Slices 4+5 of the parent, plus one verification:

  1. Generalised live add. /v1 has servers_add/servers_remove only (internal/api/ops_settings.go at 42796be). Add POST/DELETE equivalents for adapters, API specs and recipes with the same persist-to-config + reload semantics as /v1/servers, with CLI parity.
  2. Generated declarations for bare binaries. One-shot generation into an editable declaration file recording the binary name + version it was written against (runtime --help parsing is rejected in the parent — generation is one-shot, human-edited after). mcpx adapter check validates the result.
  3. Verify OpenAPI's place on the tool-source interface: adapters became first-class via mcpx adapter serve; confirm OpenAPI-produced tools ride the same namespace path, or bring them onto it, and record the finding on mcpx: anything as an MCP server -- scripts, bare binaries, recipes, plugins, as first-class namespaces #1875.

Acceptance: a live-added adapter/spec/recipe is callable immediately and persists across restart; a generated declaration for a fixture binary serves and records its version; pkgs/mcpx go test ./... green in CI. Parent: #1875. Tracker: #1885.

Acceptance criteria

  • A live-added adapter, API spec, or recipe (POST/DELETE /v1 equivalents with persist-to-config + reload semantics, CLI parity) is callable immediately and persists across restart.
  • A generated declaration for a fixture binary serves via the adapter path, records the binary name + version it was written against, and validates with mcpx adapter check.
  • OpenAPI's place on the tool-source interface is verified and the finding recorded on mcpx: anything as an MCP server -- scripts, bare binaries, recipes, plugins, as first-class namespaces #1875.
  • pkgs/mcpx go test ./... is green in CI.

Activity

  1. developing-today commented on Oct 29, 2026

    @developing-today
    Contributor
  2. added
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Intake review

    🤖 Fleet monitor intake enrichment, 2026-10-29. Acceptance criteria appended to the body (original preserved verbatim above it); labels normalized.

  4. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

    Overlap notice (from triage of #1962, task 2862): slice 2 of this issue — "generated declarations for bare binaries: one-shot generation into an editable declaration file recording the binary name + version; mcpx adapter check validates" — overlaps the core of #1962 (mcpx adapter import: a declaration generated deterministically from completions/man/--help, with provenance incl. the binary's version, and check doing the version-drift comparison). #1962 is the older, fully-designed issue (relocated from dezren39/darwin-nix#295; source ladder, provenance fields, and the check comparison are specified there).

    Recommended split of ownership, recorded on #1962's triage verdict: #1962 is canonical for declaration generation (its ship steps 2–5: --help source, provenance + check version comparison, completion parser/extraction, man); this issue keeps slice 1 (generalised live add) and slice 3 (OpenAPI verification), and slice 2 should be satisfied by #1962's generation work rather than a second generator. #1962's own step 1 (--bare passthrough) does not overlap this issue and is already enqueued separately (task 3260).

  5. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Correction (queue worker, lane C, task 2862): the --bare follow-up for #1962 was enqueued as queue task 3258, not 3260 as stated in my cross-link above. Everything else in that note stands.

  6. added
    queue/claimedQueue worker lifecycle state
    and removed on Oct 30, 2026
  7. 403 remaining items

  8. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Agent note — picked up and handed off

    • Agent: OpenChamber scheduled lane (repo-worker-code, any-o)
    • Session / ID: ses_e5e36e13797ffe09S0c3ZoN3UB, queue task 6260
    • Finding: canonical PR feat(mcpx): live API-spec add/remove over /v1 + CLI parity (#2118 item a) #4637 remains open and Drew-owned, so this lane must not modify it or create competing work.
    • Disposition: released claim via park; resume by revalidating PR ownership and state. No code changed.
  9. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — state: parked — lane any-b, task 6260 (issue #2118 item a, PR #4637).

    Fresh revalidation 2026-11-11: PR #4637 OPEN, head 6f26f0e, NO labels (no held / user/owned / do-not-merge / do-not-auto-edit — authorship by the fleet account is not a hold per the 2026-11-07 rule, so the older Drew-owned verdict in the task progress is superseded on that point). But the PR is not mergeable: mergeStateStatus DIRTY / CONFLICTING against current main, and the Codex review on head 6f26f0e reports has_unresolved_findings: true. It needs a rebase plus Codex disposition, not a merge.
    Coordination: the task lane row (fleet queue lane 6260) is assigned opencode with bound session ses_e5e37c941faffe30SE1EyCOtU3, and the assignment does not flip to direct — per runbook 1b that session owns the task. Parked 30 minutes naming the bound session; resume = that session (or a lane after the row clears) rebases PR #4637, dispositions the Codex findings, and merges on green.

  10. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Parked by lane code-c (task 6260): this task has a bound opencode execution session — lane row 319, session ses_e5e37c941faffe30SE1EyCOtU3, executed_at 2026-11-11T01:34:47Z — which owns the task under the #8187 bound-session rule. Not flipping it direct and not creating competing work.

    Fresh state for the owner session's resume:

    Resume: bound session rebases PR #4637 onto current main, dispositions the 2026-11-08T19:12Z Codex round, runs pkgs/mcpx tests, merges when verified.


    🤖 agent-note:v1 — queue task 6260 (lane code-c), parked 30m; bound opencode session owns the task.

  11. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    state: parked (bound opencode session owns task 6260)
    task 6260 (small_fix) — issue #2118 — lane any-d, 2026-11-11

    Claimed task 6260 and ran the lane assignment: the assignment row (id 319) is assigned_lane=opencode with a session already bound — session ses_e5e37c941faffe30SE1EyCOtU3, executed_at 2026-11-11T01:34:47Z. Per runbook 1b a bound session owns the task and the assignment never flips; PR #4637 (queue/6260-2118-apis-live-add, head 6f26f0e) is that work's artifact and stays untouched by this lane — no competing work, no duplicate PR.

    Terminal for this claim: task 6260 parked 30 minutes naming the bound session. Resume: if the bound session's claim lapses and PR #4637 is still open/unmerged, the next claimant verifies it against current main (rebase + mcpx go tests) and merges, or closes it as superseded with evidence.

  12. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Agent note — picked up, then parked

  13. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Agent note — lane code-c, task 6260

  14. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Agent note — lane code-c, task 6260

  15. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Agent note — lane code-c, task 6260

  16. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Agent note — task 6260 blocked session-bound (lane code-d)

  17. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Agent note — task 13398 PARKED (lane code-d): PR #4637 is owned by a bound opencode session and carries 4 unresolved Codex findings

    The authorship blocker in this task's packet was answered by Drew's 2026-11-11 #7297 ruling, so the PR was revalidated per-item. It is not mergeable, for reasons that have nothing to do with authorship:

    Parked 30 minutes naming the bound session. Resume: the bound session (or the steward acting on task 6260) dispositions the four Codex findings and lands CI; a shepherd claim then merges PR #4637 under the standing criteria.

  18. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    90-day closed-item review — WRONGLY_CLOSED, reopening with evidence (batch 104).

    This issue was auto-closed on 2026-11-11T10:31:53Z, 2 seconds after PR #4637 merged. PR #4637's body says "Closes #2118 item (a)" — it implements only the API-spec write side of item 1 — and states in the same paragraph: "bare-binary generated declarations remain with the sibling packet coordinating with #1962." GitHub's keyword scan closed the whole issue on the scoped phrase "Closes #2118 item (a)" (the #787 mechanism: a closing keyword attached to a partial scope).

    The remaining acceptance is not met:

    Classification in the review ledger: WRONGLY_CLOSED. Reopening so the item-2 remainder stays tracked here alongside #1962; when #1962's declaration work lands, this issue can close on that evidence.

  19. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — state: triaged · task 18198, lane code-c

  20. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · verification — task 19695

    • State: mcpx: generalised live add + generated declarations for bare binaries (split of #1875) #2118 verified criterion by criterion against main 8046b00102 (2026-11-17). Three of four acceptance criteria verify complete; criterion 1 verifies for adapters and API specs but NOT for recipes. The issue stays OPEN for that one piece; a follow-on fix packet is filed (below).
    • Criterion 1 — generalised live add: servers_add (internal/api/ops_settings.go:109), adapters_add/adapters_remove (:155) and apis_add/apis_remove (:204) all exist, with daemon handlers in internal/daemon/routes_settings.go (handleAdaptersAdd :876, handleApisAdd) that persist the declaration to the first paths.adapters/paths.apis file and reload, plus CLI parity (adapter add, api add). Recipes gap (verified absent): no recipes_add/recipes_remove anywhere in pkgs/mcpx/internal/; the daemon exposes only GET /v1/recipes (routes_consumer.go:30). Recipes are .ts script files scanned by recipes.Load over recipes.Dirs() (internal/recipes/dirs.go) and re-scanned on every list/run via Server.loadRecipes() (consumer.go:904), so a live-add writes a file rather than a config declaration — its own design, now packeted.
    • Criterion 2 — generated declarations: buildGeneratedImport (internal/cli/adapter_import.go:419) generates the declaration, records the binary name and the version it was written against (:30, :519-521) so mcpx adapter check reports drift; the generation test suite passes (below).
    • Criterion 3 — OpenAPI on the tool-source interface: already recorded on parent mcpx: anything as an MCP server -- scripts, bare binaries, recipes, plugins, as first-class namespaces #1875 by task 3104 — augmentAPIs registers every paths.apis declaration as a first-class server (PR feat(mcpx): declared OpenAPI APIs are first-class servers (#2118) #2514), riding the same pool/ls/search/catalog path as configured servers and adapters. Nothing further owed.
    • Criterion 4 — tests: targeted suite green locally at this main: internal/cli ok (44.1s, includes the generation and add-command tests), internal/api ok, internal/recipes ok, internal/adapter ok. Full go test ./... exceeds a 15-minute local run (e2e legs), and recent main CI is cancellation-dominated (last 30 mcpx-test runs all cancelled), so no fresh green CI run exists to cite; the packet's follow-on re-checks CI.
    • Follow-on: recipes live add (POST/DELETE /v1/recipes + handlers + CLI parity) is packeted as a small_fix (packet: packet-2118-recipes-fix.json, dedupe repo-health:v1:fix:developing-today/code:issue:2118) and enqueued as this task completes. When it lands, every criterion verifies and mcpx: generalised live add + generated declarations for bare binaries (split of #1875) #2118 can close.
  21. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note — task 20701 parked after revalidation

    • Agent: OpenChamber scheduled lane (repo-worker-code, oc-code-01)
    • Task: 20701, follow-on for mcpx: generalised live add + generated declarations for bare binaries (split of #1875) #2118 recipes live add/remove
    • Finding: mcpx: generalised live add + generated declarations for bare binaries (split of #1875) #2118 remains OPEN and assigned to dezren39. The packet's premise that recipes have no POST route is stale: POST /v1/recipes/{name} is registered in pkgs/mcpx/internal/daemon/routes_consumer.go:32; handleRecipeSave writes via recipes.SaveDir (line 195+); API op recipe_save is in internal/api/ops_consumer.go:73; CLI parity currently is mcpx recipes save (internal/cli/consumer.go:352).
    • Remaining: implement DELETE /v1/recipes/{name} and CLI remove parity; audit cross-directory duplicate detection, overwrite/replace behavior and project/user scope against recipes.Dirs() and the packet. Existing save only checks the target file and does not cover that full contract.
    • Disposition: parked for a dedicated mcpx implementation session; no code changed. Resume from the narrower missing slice above. Queue task 20701 parked for 30 minutes. backlog_updated: false.
  22. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/claimedQueue worker lifecycle statesource/queue-workerFiled or worked by the queue/worker pilotstatus/in-progressQueue worker lifecycle statestatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions