GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations · Issue #1933 · developing-today/code

mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933

New issue
Copy link
New issue
Copy link
Closed
#8317
Closed
mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations#1933
#8317
Copy link
Assignees
dezren39
Labels
enhancementNew feature or requestsource/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 28, 2026
Issue body actions

Relocated from dezren39/darwin-nix#114 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering).

Parent: #176

Summary

Four related asks: compose new tools out of existing ones, add tools to a server that does not have them, turn an arbitrary executable into a server by generating its spec, and make a restricted renamed view of a server. The user's framing is "generate" for all four — a model produces them.

The finding of this issue is that three of the four are better as declared, deterministic features, with generation as an optional author-time convenience on top, and that mcpx is roughly 70% of the way there already: aliasOf + tool filtering + prelude (aliases, docs/story.md §"Profiles and aliases"), internal/adapter (CLI programs as servers), internal/openapi + mcpx api --spec (OpenAPI documents as servers). What is missing is small and specific: pinned arguments, tool renaming, cross-server composition, and script-backed tools.

The distinction that matters: a generated artefact is a file a human reviews and checks in; a runtime behaviour is a thing that must be correct every time. Generation belongs to the first and never to the second.

Original notes

  • mcp-owned opencode api support
    • generate OpenAPI.fromSpec for a binary or script or any executable/whatever and add it as an mcp, save the openapi json for reuse by hash or similarity
    • generate new mcp commands out of existing 1 or more
    • generate new mcp commands that trigger its own prompts/scripts/binaries
    • generate new x_commands for an mcp and add them into the given mcp
      • doesn't have to just be merging transforming filtering limiting existing
      • can extract the creds pull the api and add endpoints from sdk missing in mcp using the sdk descriptions
    • please make an alias for the tailscaleMcp except it should not require auth it should accept the creds i already used to connect to it and the only skill it should provide is listTailnet and listHostnames

Current state (what mcpx does today, with file refs)

Aliases already do most of the tailscale request. From docs/story.md §"Profiles and aliases" and internal/config/config.go:148-152:

"tailscale-peek": {
  "aliasOf": "tailscale",
  "mcpx": {
    "tools": ["list_devices", "list_tailnets"],
    "description": "read-only view of the same tailnet"
  }
}

An alias is "a second view — its own namespace, tool subset, prelude and description — over the same command". Tool filtering is not part of pool identity, "because filtering is presentation", so the alias shares the target's running process and therefore its already-established credentials — which is precisely the note's "it should accept the creds i already used to connect to it". Filtering is applied by visibleTools (internal/daemon/registry.go:183) against Resolved.Tools/ExcludeTools. Alias chains are rejected.

What the alias mechanism cannot do, and the note asks for:

gap detail
rename a tool the note wants listTailnet and listHostnames; the view exposes whatever the server named them. Tools/ExcludeTools select, never rename.
pin or default an argument no way to say "this view always passes readonly: true" or "drop the tailnet parameter from the schema and always send -". docs/proposals.md §"Per-instance argument templating" proposes templating argv, not tool arguments — different layer. (An adapter parameter already has a Default, internal/adapter/adapter.go:86-87; a view over an MCP server has nothing.)
compose across servers a view is over exactly one target.
add a tool that the server does not have nothing can inject a tool into a namespace.
narrow a schema no way to remove or constrain a property in the exposed inputSchema.

Executables as servers already exists, declaratively. internal/adapter turns a command-line program into a server from a JSON declaration — paths.adapters, Spec{Name, Command, Args, Env, Dir, Description, Instructions, Timeout, Tools[]}, each ToolSpec{Name, Args, Params[], Stdin, JSON, Timeout} with Param{Name, Type, Required, Flag, Repeat, Default, Enum}. Its tests encode the sharp edges: a boolean becomes the flag's presence not --loud true, a repeated flag is sent once per value, a missing required parameter is refused before the process starts. Its package doc states the boundary explicitly: "This is deliberately not a general shell escape. A tool here is a named subcommand with declared parameters, so a model cannot invent a command line, and what is reachable is exactly what somebody wrote down." Two limits at 05c78b2: adapter tools are loose MCP tools, not namespaces — absent from mcpx ls, the generated TypeScript and scripts (#83, #102) — and mcpx adapter today offers only list, check and call (internal/cli/adapter.go).

OpenAPI documents as servers already exists. internal/openapi + APISpec{Name, Spec, BaseURL, Include, Exclude, Methods, IncludeDeprecated, Headers, Description} + paths.apis + mcpx api tools|call --spec <path-or-url>. Headers expand ${VAR} from the environment "so a declaration can be checked in and a token cannot" (internal/cli/openapi_tools.go:64-68).

Scripts as reusable units already exist. Recipes (#41): a script on the search path declaring @param holes in a header comment, matched by a deterministic scorer, runnable via POST /v1/recipes/{name}/run. What a recipe is not is a tool: it does not appear in tools/list, has no inputSchema, and is not callable as namespace.tool.

MCP tools are generated from the ops table (internal/api/ops*.go), and GET /v1/openapi.json is generated from the same declarations — the precedent that one declaration should drive every surface.

Approaches

Approach A — least recommended: a model generates tools at runtime

mcpx is asked for a tool it does not have; a model composes one on the fly from the catalogue and it becomes callable.

Why not:

  • A tool is an interface, and an interface that changes shape is not one. MCP clients cache tools/list; 2026-07-28 adds ttlMs/cacheScope specifically to make that caching reliable, and asks servers to return tools in deterministic order for prompt-cache hits. A catalogue that varies run to run breaks all of it.
  • It defeats the reason mcpx exists. The pitch is that tool schemas stay out of the model's context. Generating a tool requires sending schemas to a model — on a path that was supposed to avoid exactly that.
  • internal/adapter's stated boundary is the thing being given up. "A model cannot invent a command line" is the property that makes adapters safe. Runtime generation is that property removed, reintroduced as a feature.
  • Unreviewable and unversionable. Nobody can diff it, check it in, or say why it changed.

Approach B — middle: extend views to be real transforms, declared in config

Generalise aliasOf from "a filtered view of one server" to a declared tool view that can rename, pin, narrow, and compose:

"tailscale-peek": {
  "aliasOf": "tailscale",
  "mcpx": {
    "description": "read-only tailnet listing",
    "toolViews": {
      "listTailnet":   { "from": "list_tailnets" },
      "listHostnames": { "from": "list_devices",
                         "pin": { "fields": ["hostname"] },
                         "hide": ["tailnet"],
                         "description": "hostnames on the current tailnet" }
    }
  }
}
  • from renames; pin supplies fixed arguments the caller cannot set; hide removes pinned properties from the exposed inputSchema so the tool looks like what it is; description overrides. Selection (tools/excludeTools) stays as it is and a toolViews map implies the allowlist.

  • Composition across servers needs one more thing: a view whose from is a fully-qualified server.tool rather than a bare name, and a server entry with no aliasOf at all — a virtual namespace assembled from several targets. Registry.views is already map[string]*config.Resolved keyed independently of pools (internal/daemon/registry.go:41-45, "pools may be shared between names; views never are"), so this is a natural extension rather than a new concept. Namespaces and collision rules are chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83's (Phase 3: sync, blob gate, and relays #181 collision 4). chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83's tool-source interface defines what a namespace is and what happens when two sources claim one name; virtual namespaces, views and script-backed tools here are built on those rules and do not define their own. The shapes in this section are input to chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83.

  • Sequencing two tools into one ("out of existing 1 or more" where more than one must run) is not a schema transform — it is a script. Which is the next item.

  • Script-backed tools are the highest-value missing piece and the smallest: let a config declare a script as a tool.

    "ops": { "scripts": { "staleIssues": { "file": "close-stale.ts", "description": "...", "params": "auto" } } }

    The script's @param header already declares its holes with types — the same header recipes use — so inputSchema generates from it with no new authoring format. This single feature covers "generate new mcp commands that trigger its own prompts/scripts/binaries" entirely: a script can call several tools, shell out, run a prompt, or invoke a binary, and it appears as one ordinary tool. It also promotes recipes from a side channel to first-class, which they should be. This is the same feature as chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83's first ship step ("recipes as tools, since the schemas already exist"), so it lands as a chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83 tool source; the config spelling above is a proposal for that, not a second mechanism.

  • Scope and profiles apply unchanged, so a view can be default: false and pulled in by --profile.

This is deterministic, diffable, reviewable, testable, cacheable, and it is what the runtime should be built on regardless of whether anything ever generates it. It also answers the tailscale request exactly and completely.

The cost is authoring: someone has to write the JSON, and for the SDK-mining case ("extract the creds pull the api and add endpoints from sdk missing in mcp using the sdk descriptions") that is a lot of JSON. Which is where generation earns its place — but as an author-time tool, not a runtime.

Approach C — recommended: B as the runtime, plus generators that emit declarations

Build Approach B. Then add generators whose only output is a file in one of the formats mcpx already consumes — an adapter Spec, an APISpec, an OpenAPI document, or a toolViews block. The generator is a mcpx subcommand a human runs; the daemon at runtime reads only declarations, exactly as it does today.

mcpx adapter generate <binary>       # --help scraping + a model -> adapter Spec JSON (beside today's list/check/call)
mcpx api generate <binary|script>    # -> an OpenAPI document
mcpx view generate <server> "<ask>"  # -> a toolViews block

Each prints to stdout or writes to a path, is reviewed, and is checked in. The runtime is unchanged and cannot be surprised.

OpenAPI.fromSpec for an arbitrary executable, concretely. The deterministic first pass is substantial and should come first: run --help, help, -h, --help=full; parse the common conventions (a usage line, an indented flag block, subcommand tables); many modern CLIs also expose --json/completion output, and Cobra/clap/argparse produce highly regular help text. That gets a usable adapter Spec for a large fraction of programs with no model at all, and a model's job becomes filling in descriptions and types the help text left ambiguous — which is exactly the job a model is good at and the one where being wrong costs a bad description, not a wrong command line.

On the note's "save the openapi json for reuse by hash or similarity": hash, yes; similarity, no. Cache on the binary's content hash plus its --version output. A content hash is exact and a stale entry is impossible. Similarity matching on binaries ("this looks like a tool I have a spec for") would hand one program another program's command-line interface, which fails by constructing a plausible, wrong invocation — the worst failure mode available. If a similarity notion is wanted at all it should surface as a suggestion to a human ("this looks like rg 14.x, reuse that spec?"), never as an automatic resolution. Note also that the natural intermediate here is the adapter Spec, not OpenAPI: a local executable is not an HTTP service, and internal/adapter already models argv, flags, stdin and JSON output, which OpenAPI does not. Generate the adapter spec; generate OpenAPI only for things that really are HTTP services.

Adding endpoints an MCP server omits, from its SDK. This is the most ambitious item and the most valuable when it lands, because the common complaint about vendor MCP servers is that they expose a fraction of their own API. The route with the best ratio: many vendors publish an OpenAPI document for the service the MCP server wraps, and mcpx can already turn one of those into tools (mcpx api --spec). So the deterministic path is: point APISpec at the vendor's published document, Include the operations the MCP server lacks, expand the auth header from the environment — and merge that into the same namespace with a virtual view. No model, no SDK parsing, no credential extraction. Mining an SDK's source for undocumented endpoints is a much larger and much more fragile project, and should only be considered where no document exists. "Extract the creds" is out of scope here — reusing a credential means naming an environment variable in the declaration, which APISpec.Headers already supports with ${VAR} expansion; anything that reads a credential out of a running server's process is a security design and deferred.

On the nested "doesn't have to just be merging transforming filtering limiting existing" — agreed, and that is what script-backed tools are for. Once a script can be a tool, "new" has no ceiling: a tool can call three servers, run a binary, transform the result and return something none of its inputs could produce. The declarative view layer handles the cheap 80% (rename, pin, hide, select, compose schemas) and scripts handle everything else, which is a cleaner split than trying to make a declarative transform language Turing-complete.

Recommended because the runtime stays declarative and reviewable, because every generated artefact lands in a format that already has a loader and a test suite, because the highest-value single feature (script-backed tools) needs no model at all, and because it answers the user's concrete request — the tailscale alias — today, in config, with one small addition to a mechanism that already exists.

What the tailscale request needs, specifically

requirement status
a second namespace over the same server exists (aliasOf)
reuse the credentials already in use exists — the alias shares the pool, hence the process, hence its auth; also Headers ${VAR} expansion for the HTTP case
expose only two skills exists (mcpx.tools allowlist)
name them listTailnet and listHostnames missing — needs toolViews.from
"should not require auth" ambiguous: reusing the target's session is what the alias does; genuinely removing an auth requirement is deferred

So this is roughly a one-field change away from working. Worth doing first, on its own, as proof the view layer is the right shape.

Open questions

  • Do renamed tools break anything that assumes a tool name is the server's name? codegen.ToolFuncName, catalog-history.json keying, diagnostics, and internal/diagnose's namespace filter all key on names — the view's name must be what the caller sees and the target's name what history records, and those must not be confused.
  • Should pin be invisible or merely defaulted? Invisible (hide) is what the tailscale case wants; defaulted-but-overridable is friendlier. Probably both, as separate fields.
  • Virtual namespaces and profiles: does a virtual view belong to the profiles of its targets, or declare its own?
  • Where do generated declarations live by default — paths.adapters/paths.apis targets, a state directory, or stdout only? Stdout only is safest; a --write flag is the convenience.
  • Does a script-backed tool run through POST /v1/exec with the caller's ExecOptions, or with fixed options from its declaration? Fixed, probably, or a tool's behaviour depends on who called it.
  • Should tools/list mark a view-derived tool as such in _meta, so a client can tell it is not the server's own?
  • How does a script-backed tool declare destructiveHint/readOnlyHint? It must, or the confirmation policy has nothing to work with.
  • Is there a path to contributing generated adapter specs back — a shared repository of specs by binary hash? Useful, and a distribution question rather than a code one.

Ease · Impact · Related

Ease L overall; the tailscale-unblocking toolViews.from/pin/hide is S–M, script-backed tools M, virtual cross-server namespaces M–L, spec generation L · Impact high — it turns mcpx from a router into a place where a personal tool surface is composed, and script-backed tools alone make recipes first-class.

Depends on / related: #83 (owns namespaces, collision rules and the tool-source interface this builds on — #181 collision 4; its step 1 is script-backed tools and its step 5 generated declarations), #102 (an adapted binary is not script-callable — in flight), #7 (launcher placeholders — same @ substitution family), #41 (closed, fixed in #58: recipes and their @param headers are the input format for script-backed tools), #40 (closed, fixed in #57: artifacts, for generator output), #5 (config chain — views must layer), #76/#77 (ops table and protocol; _meta marking and annotation plumbing), docs/proposals.md §"Protocol adapters, including OpenAPI" and §"Per-instance argument templating". Siblings: #110 (generators' model), #115 (the tailscale/Dropbox/Drive/Outlook servers this would view), #111 (shared schema-validation code).

Security/auth deferred; see tracker.

Activity

Next
  1. developing-today commented on Oct 28, 2026

    @developing-today
    developing-todayBot
    on Oct 28, 2026 – with developing.today
    Contributor
    More actions

    CODE-859

  2. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    History carried over from dezren39/darwin-nix#114 (verbatim, oldest first):


    @dezren39 · 2026-09-30T07:21:53Z

    Integration pass. Placed in the DAG rooted at #181.

    • Tracker: Nix Playwright E2E suite fails after vendoring dependencies #176 (the AI layer and search)
    • Siblings under that tracker: Bump build/buck/preludes/buck2-prelude from d956689 to d460fcc #109 Bump build/buck/preludes/buck2-prelude from d956689 to 52604b1 #110 Bump checkmarx/ast-github-action from 2.0.19 to 2.0.23 #111 Update module gopkg.in/go-jose/go-jose.v2 to v2.6.3 [SECURITY] - autoclosed #112 Update module github.com/jackc/pgx/v5 to v5.5.4 [SECURITY] - autoclosed #113 Update github.com/charmbracelet/promwish digest to 6c16e8f - autoclosed #115
    • Root: Phase 3: sync, blob gate, and relays #181
    • Proposed order: phase 6 -- the big bets, in dependency order

    @dezren39 · 2026-09-30T07:27:58Z

    Integration pass -- cross-theme collision. Surfaced only when the themes were put side by side; the authors of these issues could not see each other's work. Recorded at the root in #181.

    Namespacing and collision rules are being designed twice

    #83's tool-source interface and #114's cross-server namespaces, script-backed tools and generated declarations are substantially the same problem, in two different themes (#173 and #176). Two namespace schemes that must later be merged.

    Also on: #83. Nobody currently owns this.


    @dezren39 · 2026-09-30T11:06:10Z

    Collision ownership (issues pass, 2026-09-30, at 05c78b2). #181 listed these cross-theme collisions with no owner. Each now has one:

    #181 row Collision Owner What the owner decides
    4 namespacing and collision rules designed twice #83 #83's tool-source interface defines namespaces and collision rules; #114's views, cross-server namespaces and script-backed tools are built on those rules and do not define their own.

    Where this issue is the owner, the decision is made here; where it is not, it adopts the owner's decision rather than making its own.


    @dezren39 · 2026-09-30T11:57:48Z

    Issues pass (2026-09-30, at 05c78b2).

    • Added Parent: #176.
    • Collision 4: namespaces and collision rules are chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83's. The body now says virtual namespaces, views and script-backed tools build on chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83's tool-source rules and do not define their own. It also notes that script-backed tools are chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83's first ship step (recipes as tools) and that its fifth step overlaps the generators. The design text is kept as input to chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83.
    • Facts added at 05c78b2:
      • An adapter Param already has Default and Enum (internal/adapter/adapter.go:86-89); a view over an MCP server has nothing like it.
      • Adapter tools are loose MCP tools, absent from mcpx ls, codegen and scripts (chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83, Bump build/buck/preludes/buck2-prelude from d956689 to f12c8d1 #102).
      • mcpx adapter today is list/check/call only, and adapter generate would sit beside them.
    • Related: adds chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 36464cf #83 and Bump build/buck/preludes/buck2-prelude from d956689 to f12c8d1 #102, marks Bump openssl from 0.10.54 to 0.10.55 in /sources/pavex/examples/realworld #40 and Bump build/buck/preludes/buck2-prelude from d956689 to 6f75473 #41 as closed (fixed in chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 677e9eb #57 and chore(deps): bump rustix from 0.38.3 to 0.38.21 in /build/nix/setup #58), and names siblings by number. Label design added. Ease/Impact unchanged (L / high).

    @dezren39 · 2026-09-30T16:58:21Z

    Decided (SURFACES, 0002-autonomy-dial, merged in #228). Generators are propose by construction: they print a declaration and a human writes it into config. That is not a setting and cannot be raised; --write <path> is the human's own act. No change to approach C. Namespaces and collision rules stay #83's (#181 collision 4).


    @dezren39 · 2026-10-28T22:31:07Z

    Triage verdict (task 2159, repo-health-nix-pilot): CONFIRMED + RELOCATED — the alias/filtering foundation is intact in the new home, and all five specific gaps this issue names are still gaps. Implementation routes in developing-today/code; no fix packet in this repo.

    Verified against current main on both sides (nix 224c7b738e88c7a8e5d406987a7d88257e229db2, code d2cb60fe8e08cd6fee149b930187b610299c1fa7):

    • Update checkmarx/ast-github-action digest to 6c56658 - autoclosed #114 is OPEN with labels enhancement, design — no hard-stop labels. Parent tracker Nix Playwright E2E suite fails after vendoring dependencies #176 is OPEN.
    • The mcpx source no longer lives in dezren39/nix: no pkgs/mcpx at HEAD; the extraction plan (planning/plans/mcpx-extraction.md, steps 4–5, lab-ops-hub container crawler accepts inet_aton IPv4 spellings (127.1, 2130706433, 0x7f.1) — loopback SSRF bypass in validate_crawl_url #468) records the build switch and deletion done 2026-10-19, and this repo now only builds mcpx from the pinned code rev.
    • In developing-today/code the foundation this issue builds on is present and unchanged in shape: aliasOf (pkgs/mcpx/internal/config/config.go:177-181), per-view allow/deny via Tools/ExtraIncludeTools/ExcludeTools (config.go:134-141), applied by visibleTools (internal/daemon/registry.go:227-228), and a per-view Namespace override (config.go:102-103). Hide and namespace-rename of a whole view therefore work, exactly as the issue's current-state section said.
    • The five gaps it names are still gaps at code HEAD — no rename, pin, compose or schema-narrowing machinery exists in internal/config or internal/daemon:
      • Rename a tool: Tools/ExcludeTools select only; there is no rename map on a view.
      • Pin or default an argument: no pinned-args/defaults field on a server view (the adapter Param.Default the issue cited is a different layer and still the only one).
      • Compose across servers: a view/alias is still over exactly one target (AliasOf names one server).
      • Add a tool the server does not have: nothing injects a tool into an existing namespace.
      • Narrow a schema: no mechanism removes or constrains a property of the exposed inputSchema.
    • No re-homed equivalent of Update checkmarx/ast-github-action digest to 6c56658 - autoclosed #114 exists in developing-today/code; the relocation pass for the Nix Playwright E2E suite fails after vendoring dependencies #176 tree is still owed under mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309, OPEN.

    Route: no small_fix packet in dezren39/nix — this repo holds no mcpx source to fix. The gaps are small and specific, in the issue's own assessment, and belong with the source in developing-today/code, referencing #114, via the #309 relocation pass; per the cross-repo rule, do not re-file it there. #114 stays open on the nix side until implemented there or transferred.

  3. dezren39
    added
    enhancementNew feature or request
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    on Oct 28, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  5. dezren39
    added a parent issue on Oct 29, 2026
    • mcpx: the AI layer and search -- where a model comes from, and everything that would use one (tracker) #1891
  6. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane B shift
    • Session / ID: queue task 2829 (triage)
    • Found via: queue claim
    • Task: Triage relocated mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 (was mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations dezren39/darwin-nix#114): dedupe against code issues, confirm scope against current pkgs/mcpx main, enqueue implementation follow-up(s) with acceptance criteria intact. No implementation in this task.
    • Expectation: effort s triage — done = findings comment posted, follow-up task(s) enqueued or duplicate closed, labels synced.
  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 29, 2026
  8. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (triage)

    • Agent: queue worker (repo-worker-code), lane B shift
    • Session / ID: queue task 2829 (triage)
    • Found via: queue claim
    • Task: Triage of relocated mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 (was mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations dezren39/darwin-nix#114) complete. Verdict: not a duplicate; scope confirmed; split into slices, slice 1 enqueued.
    • Links: follow-up task 3230 (slice 1) · related mcpx: anything as an MCP server -- scripts, bare binaries, recipes, plugins, as first-class namespaces #1875, mcpx: recipes as MCP tools + runtime on adapter declarations (split of #1875) #2117, mcpx: generalised live add + generated declarations for bare binaries (split of #1875) #2118, mcpx: the AI layer and search -- where a model comes from, and everything that would use one (tracker) #1891

    Triage verdict

    Dedupe. The four asks split across existing work more than the issue (written pre-relocation) could know:

    #1933 slice Where it lives
    Script-backed tools ("new commands that trigger its own scripts") Already covered by #2117 (split of #1875, triage task 2769): recipes as individual MCP tools with typed @param schemas. Same feature this issue calls "#83's first ship step" — #83 relocated here as #1875. Not re-enqueued.
    Generators emitting declarations for bare binaries Already covered by #2118 (split of #1875): one-shot generation into an editable declaration recording binary name + version — Approach C's model with runtime --help scraping rejected in the parent.
    Adding endpoints a vendor MCP omits, from its OpenAPI document Substantially the #2118 slice-3 verification (OpenAPI tools on the same namespace path) plus existing APISpec.Include. Credential extraction stays out of scope (this issue agrees).
    Declared tool views: rename / pin / hide / schema narrowing Unique to #1933. No other open issue covers it.
    Cross-server virtual namespaces (view from = server.tool, views with no aliasOf) Unique to #1933, but builds on #1875's namespace/collision rules — sequenced as slice 2.
    Generators emitting toolViews blocks (mcpx view generate) Recorded, not enqueued: the model half belongs to tracker #1891 (the AI layer). The deterministic runtime below is what such a generator would emit.

    Scope confirmed on current main (c58507a, 2026-10-29). aliasOf exists (internal/config/config.go:177-181, resolved :556) and aliases share the target's pool/process, so credential reuse already works as the tailscale note asks. visibleTools (internal/daemon/registry.go:227) applies allow/deny lists only. Grep across pkgs/mcpx/internal + docs: no toolViews, no rename, no argument pinning for views. The gap table in this issue is accurate as of today.

    Enqueued — task 3230 (slice 1, small_fix): toolViews on alias views — from (rename), pin (fixed args the caller cannot set), hide (pinned properties removed from the exposed inputSchema), description override; a toolViews map implies the allowlist; calls invoke the target with pinned args merged while history/diagnostics keep the target's real name; config validation rejects unknown targets, duplicate view names, and pins of non-schema arguments. Defining test is this issue's tailscale shape (view exposing exactly listTailnet + listHostnames, one property pinned + hidden). Acceptance criteria are in the packet; the PR must reference, not close, this issue.

    Remaining on this issue (slice 2, not enqueued): cross-server virtual namespaces, gated on #1875's collision rules landing with its splits (#2117/#2118 in flight). Once slice 1 merges, slice 2 is a clean follow-up packet against this issue.

  9. dezren39
    added
    queue/queuedHas a queued queue task
    on Oct 29, 2026
  10. 476 remaining items

    Load more actions
  11. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Agent note — task 14190 parked (Codex fix pass required on PR #8317), lane code-h

    • Worker: repo-worker-code, lane code-h (shift 2026-11-10 16:35 CST)
    • Task: task 14190 (small_fix) for issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 slice 2 — mcpx script-backed tools
    • State: implementation verified and PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 opened (branch queue/14190-1933-scripttools at bc6d18c, worktree /tmp/opencode/task-14190-scripttools). Suites at that head: go test ./internal/daemon/ ok; go test ./internal/config/ fails only on TestServerKeysAnotherHostWritesAreRecordedNotRefused, proven identical on clean main and already tracked as issue mcpx: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop (host-dependent) #8007.
    • Blocker: the Codex review of PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 completed with six findings (3 P1, 3 P2), every one dispositioned on its thread as ACCEPTED after reading the code: (1) P1 shell injection through recipes.Render substitution into shell-backed scripts; (2) P1 write-ledger bypass — uncertain script writes are not recorded, so retries can double-apply; (3) P1 nested script execution releases the caller's session leases; (4) P2 declared .py language lost when no shebang (misrouted to the TypeScript runtime); (5) P2 command-backed tools ignore the resolved pool CallTimeout; (6) P2 emit(...) values dropped from tool results. Per the Codex gate the PR must not merge with undispositioned findings; all six need a real fix pass, which is the resume work.
    • Resume: fix the six findings on PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 (each thread names the required change), re-run the config + daemon suites, confirm a clean Codex re-review, merge, and complete task 14190. Issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 stays open for slices 3 (virtual namespaces) and 4 (generators) regardless.
    • Task 14190 parked as a PR/Codex wait on PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317.
  12. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: parked
    task: 14190
    lane: code-j
    summary: Codex fix pass landed on PR #8317 in c59cfbf (branch queue/14190-1933-scripttools, worktree /tmp/opencode/task-14190-scripttools). Five of six accepted findings fixed, each with an oracle-named test, and their review threads replied to and resolved: (2) P1 write-ledger bypass — callScriptWithLedger on all three surfaces + mcpclient.NoteToolCallDispatched; (3) P1 session release — execsvc Options.BorrowSession; (4) P2 language — runner/execsvc SourceName evidence (plus a recipes.Render fix: a #-style @PARAM line was consumed with a // prefix, breaking Python scripts); (5) P2 pool timeout — pool.CallTimeout exported and inherited; (6) P2 emits — Result.Emits included in tool results. Suites at c59cfbf: daemon, recipes, execsvc, runner, pool, mcpclient all pass; config fails only on TestServerKeysAnotherHostWritesAreRecordedNotRefused, proven identical on clean main and already tracked as #8007.
    blocker: ONE finding remains, left open on its thread: (1) P1 shell-safe argument handling for shell-backed scripts — recipes.Render substitutes JSON literals (not shell-escaped) and its scanner is JS-oriented; the fix needs a shell-aware literal encoder/scanner or out-of-band value passing, without regressing the TypeScript recipe path.
    next: fix finding (1) on PR #8317, re-run the mcpx suites, confirm the Codex re-review is clean, merge, and complete task 14190. Issue #1933 stays open for slices 3-4 regardless.

  13. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note — parked

    • Worker: repo-worker-code; lane 7b47536b-c162-444c-be8a-3a9538cc4cb5; task 14190.
    • PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 remains open at c59cfbf; CI checks are queued. Five Codex findings remain unresolved: shell injection, Python literals, relative imports, configured environment, and preflight of unavailable secrets.
    • Resume: address those findings and verify tests and CI before merge; preserve existing branch and worktree. Task parked for 20 minutes.
  14. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note — task 14190 resumed, fourth Codex fix pass landed (lane code-w)

    • Task: task 14190 (small_fix), issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 slice 2, PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 (branch queue/14190-1933-scripttools).
    • Resumed from the parked CI/Codex wait at head f072747. The fresh Codex review of that head raised four new P2 findings (comments 4533459289, 4533459293, 4533459297, 4533459301), all undispositioned, so the PR was not mergeable under the Codex gate.
    • Fourth fix pass 7794bcb (plus main merge, head d2e9eef): (1) Python decorators are no longer discovered as required parameters or substituted in rendering; (2) the script write-ledger exemption honors server-level readOnlyTools; (3) script-only catalogs are marked initialized (Warm seeds the timestamp, Namespaces reports Cached); (4) CallAsk/CallReporting register script calls and the declared-script exec run is associated with the ask owner (askTable.attachRun/attachRunToRun), including nested file-backed calls.
    • Each finding was replied to on its review thread and the thread resolved. Oracle tests added for all four.
    • Verification (laptop, this branch): go test ./internal/recipes/ pass; ./internal/daemon/ pass (97.7s, full suite); ./internal/execsvc/ and ./internal/pool/ pass; ./internal/config/ has only the pre-existing host-dependent failure TestServerKeysAnotherHostWritesAreRecordedNotRefused (tracked as issue mcpx: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop (host-dependent) #8007, documented on PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 as failing identically on clean main). gofmt clean.
    • Next: fresh Codex review of head d2e9eef, then merge under the standing criteria (CI checks remain queued in the fleet CI stall; merges proceed on laptop targeted tests per standing criteria).
  15. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note — task 14190 parked (Codex review wait on PR #8317), lane code-w

    • PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 head d2e9eef (fourth Codex fix pass 7794bcb + main merge) is MERGEABLE; all four P2 findings from the previous round were fixed with oracle tests, replied to on their threads, and the threads resolved.
    • Laptop verification on this branch: recipes, daemon (full), execsvc, pool suites pass; config has only the pre-existing mcpx: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop (host-dependent) #8007 host-dependent failure.
    • Park reason: the fresh Codex review of head d2e9eef was still in "running" state after the full 5-minute active poll window, and the PR's CI checks remain queued in the fleet CI stall. No new review comments had been posted on the new head at park time.
    • Resume condition: Codex review of d2e9eef completes with no undispositioned findings (any new finding gets a fix pass first, per the Codex gate), then merge PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 under the standing criteria, keep issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 open (slices 2 of 3 remain: cross-server virtual namespaces, then generators), and complete task 14190 as pr_opened/fixed_merged as appropriate.
  16. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note — task 14190 picked up (lane code-d), PR #8317 fifth Codex fix pass

    • Task: task 14190 (small_fix), issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 slice 2, PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 (branch queue/14190-1933-scripttools, head d2e9eef).
    • Revalidated fresh: issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 OPEN, no hard-stop labels; PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 OPEN, not draft. Labels synced to queue/claimed + status/in-progress (stale queue/parked / status/parked removed).
    • Snapshot lead saved re-deriving the PR state; the parked resume condition was re-verified anyway: the Codex review of head d2e9eef DID complete at 2026-11-11T03:42:00Z (after the previous lane's poll window) with ONE new undispositioned P2 finding, review comment 4533745388 — dispatch is noted before the command starts in the command-backed script path, so a start failure (missing executable / permission) wrongly records an unknown write outcome and blocks later writes in the namespace.
    • CI on PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 is still pending (fleet CI stall); that does not block the local fix.
    • Next: fix the finding (start the command first, note dispatch only after a successful start, then wait), add an oracle test, reply on the review thread, push, then park on the new head's CI/Codex wait if still pending.
  17. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note — task 14190 parked (CI + Codex wait on PR #8317, fifth fix pass), lane code-d

    • PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 head is now 1c98e64 (fifth Codex fix pass, committed and pushed this shift); PR state OPEN, MERGEABLE.
    • The one undispositioned Codex finding on the previous head d2e9eef — P2 review comment 4533745388, dispatch noted before the command starts in callScriptView, so an unstartable non-read-only command wrongly recorded an unknown write outcome and blocked later writes — is FIXED: the program is started with cmd.Start() first, dispatch is noted only after a successful start, then cmd.Wait(). Replied on the thread (reply 4534234185) and resolved it; verified fresh that all 18 review threads on PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 are now resolved.
    • Oracle test added: TestScriptViewUnstartableCommandRecordsNothing (write-ledger contract: a program that never started performed no write, so its outcome is known — plain could-not-run error, no ledger record, retry not refused).
    • Verification (laptop, this branch): targeted TestScriptView* passes; full daemon, recipes, config, execsvc, and pool suites all pass; gofmt clean.
    • Park reason: after the full 5-minute active poll, the fresh Codex review of head 1c98e64 had not landed (re-review requested in PR comment 6787601895) and every CI check on the new head remains pending in the fleet CI stall (10 pending, 3 skipping at last check).
    • Resume condition: Codex review of 1c98e64 completes with no undispositioned findings (any new finding gets a fix pass first, per the Codex gate) and CI completes green, then merge PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 under the standing criteria, keep issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 OPEN (later slices remain: cross-server virtual namespaces, then generators), and complete task 14190.
  18. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up / resumed (task 14190)

    • Agent: repo-worker lane any-d, resuming lane code-d's park (note 6787690412)
    • Fresh state: PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 OPEN at head 1c98e64 (unchanged), worktree clean at that head; PR checks still QUEUED repo-wide (CI stall, none failed).
    • Resume condition NOT met: the Codex re-review requested at park time completed on 1c98e64 with 2 new P2 findings, both unresolved:
      1. consumer.go:612 — ledger preflight blocks server-declared read-only script tools; include r.declaredReadOnly(server, tool) in the script exemption (comment 4534270978).
      2. scriptview.go:304 — file-backed script tools return original stdout instead of the hook-replaced final result (comment 4534270982).
    • Next: fix both in this claim, add/extend oracle tests, push, reply + resolve threads, request re-review; merge only when Codex is clean on the new head.
  19. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked — Codex re-review pending (task 14190)

    • Agent: repo-worker lane any-d
    • Progress this claim: three Codex fix rounds on PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317, all with oracle tests verified to fail on the previous head and pass on the new one, all threads replied + resolved at each round:
      • Round 6 (9caab68): ledger preflight honors server-level readOnlyTools for script tools; file-backed tools return the hook-replaced final result.
      • Round 7 (19f3bc8): Python placeholders inside continued expressions substitute (not decorators); command-backed tools terminate their process group on cancellation; file-backed executions forward CallSettings.
      • Round 8 (c7b2ef4, current head): file-backed tools inherit the pool's resolved call timeout; parent-session identity carried through script execution on all three call surfaces (MCPX_PARENT_SESSION_ID).
    • Suites (laptop): daemon PASS (two consecutive full runs after one flaky full-run failure whose test name was not captured), execsvc PASS, recipes PASS. internal/config failure TestServerKeysAnotherHostWritesAreRecordedNotRefused is pre-existing on clean main (mcpx: TestServerKeysAnotherHostWritesAreRecordedNotRefused fails on clean main on the laptop (host-dependent) #8007).
    • Resume condition: Codex review of c7b2ef4 completes — if clean, merge PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 (checks remain QUEUED in the repo-wide CI stall; merge under standing authority on the laptop-verified suites), keep mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 open for slices 3–4, and complete task 14190 as fixed_merged. If it returns findings, fix them in the same worktree (/tmp/opencode/task-14190-scripttools, branch queue/14190-1933-scripttools).
  20. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up / resumed (task 14190)

    • Agent: repo-worker lane any-c
    • Fresh state: issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 OPEN, no hard-stop labels; PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 OPEN at head c7b2ef4, mergeable, worktree clean at that head.
    • Resume condition met: the Codex re-review pending at park time completed on c7b2ef4 — "Didn't find any major issues" (comment 6789703634); 0 unresolved review threads on PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317.
    • CI: PR checks all failed at ~33m in the repo-wide Actions stall pattern; verifying the mcpx suite locally on the laptop at the PR head instead, per standing merge authority (CI runs on main).
    • Next: local mcpx tests at head → merge PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 if green → complete task 14190 as fixed_merged; issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 stays open for slices 3 (cross-server namespaces) and 4 (generators).
  21. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — slice 2 fixed_merged (task 14190)

    • Agent: repo-worker lane any-c (resumed lane any-d's park; Codex re-review was the resume condition)
    • Outcome: PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 MERGED at 2026-11-11T08:52:15Z, merge commit 2f76cfb. mcpx script-backed tools (slice 2 of mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933) are on main.
    • Codex gate: round-8 review on head c7b2ef4 clean — "Didn't find any major issues" (comment 6789703634); 0 unresolved threads; all 8 rounds' findings fixed/replied/resolved in-PR.
    • Tests (oracle: the mcpx Go suites): go test -count=1 PASS on the PR head for every PR-touched package — daemon (83.6s), config, recipes, execsvc, mcpclient, pool, runner. Script tests PASS on merged main. Pre-existing failures proven identical on clean main e648d70: internal/defaults, internal/conformance (expiresAt schema strictness) — not this PR. One config test flaked once under parallel full-suite load and passes standalone on branch and main.
    • CI: PR checks were cancelled with 0 steps run in the repo-wide Actions stall (e.g. job 130380057181, cancelled after 33m) — not test failures; merged under standing merge authority after local verification.
    • Follow-on: slice 3 (cross-server virtual namespaces) enqueued as task 14957; slice 4 (generators emitting declarations) remains on this issue after it. Issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 stays OPEN.
  22. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up — slice 3: cross-server virtual namespaces (task 14957, lane any-d)

    • State correction: this issue was auto-closed by PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317's merge at 08:52:16Z (closing keyword), although task 14190's completion note on this issue records "Issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 stays OPEN" with slices 3 and 4 remaining. I have reopened it and restored in-progress labels; the closure was a merge side effect, not a completion verdict.
    • Revalidated: PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317 (slice 2) is merged (2f76cfb); no hard-stop labels. Assignment direct.
    • Scope: slice 3 only — a config-declared virtual namespace mounts tools from multiple upstream servers under one namespace in tools/list; calls route to the owning server; name collisions deterministic and test-documented. Generators emitting declarations stay out of scope (slice 4, still on this issue after this slice).
    • Links: issue mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933, PR feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317, task 14957
  23. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note (lane any-d, task 14957): slice 3 — cross-server virtual namespaces — is landed. PR #8632 merged 2026-11-11T11:28:39Z, merge commit 91417be.

    What shipped (pkgs/mcpx): a server entry with no command/url/aliasOf is a virtual namespace; its toolViews mount tools by qualified server.tool (split at the longest configured server name), with slice 1's rename/pin/hide semantics. Exposed names are the view keys, so collisions are impossible by construction and the same tool may mount twice. Calls delegate one hop to the home server through a shared mount path used by Call, CallAsk and CallReporting — the addressed namespace's blocked/visibility/precondition gate and its own argument rules (keyed by the qualified From) run first, pins merge, then the home server's views/policies/process see the call as if addressed there. Validation defers per source cache and judges mount existence against each source's declared presentation (renames applied, transient secret/precondition gates not), so gated tools are blocked, not unknown. Readiness (Namespaces cached, DiagnoseTools) derives from the mount sources.

    Verification: go test ./internal/daemon/ passes in full on the final head; ./internal/config/ passes except TestServerKeysAnotherHostWritesAreRecordedNotRefused, which fails identically on clean main and is already filed as #8007. Fourteen new daemon tests and six new config tests cover composition, routing, gating, validation and the dotted-name collision case. Codex review ran eight rounds: twelve findings (plus one CodeRabbit finding on a test) were each fixed with a regression test and answered in-thread; the final round completed with no findings.

    State correction recorded: this issue was auto-closed by PR #8317's merge keyword at 08:52Z today despite slices 3–4 remaining; it was reopened at this task's pickup and stays open — correctly, since slice 4 remains.

    Next: slice 4 (generators emitting declarations) is enqueued as queue task 14968, chained from this completion under triage task 13827's ordering. It is the final slice on this issue.

  24. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Correction to the note above: completing queue task 14957 auto-closed this issue and applied status:done (the same class of accident as PR #8317's merge keyword this morning). That closure was wrong — slice 4 remains, enqueued as task 14968 — so the issue has been reopened, status:done removed, and queue/queued set for the follow-on. Slice 3's landing (PR #8632) stands as reported.

  25. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note — task 14968 done (lane any-a): slice 4 landed via PR #8671; #1933 is complete

    • PR feat(mcpx): generator emitting tool-view and virtual-namespace declarations (#1933 slice 4) #8671 merged 2026-11-11T12:31:37Z, merge 538d98ba3429582c7adea2552f1016fe40fe11a0: adds the deterministic declaration generator in pkgs/mcpx/internal/config (generate.go — ViewSpec/ViewToolSpec, GenerateViewServers, GenerateViewsJSON) plus its oracle tests (generate_test.go). The generator emits alias-view, virtual-namespace and script-backed declarations in the exact hand-written config shape and refuses compositions the loader would refuse (nine refusal cases).
    • Evidence: 4/4 new tests pass (hand-written shape oracle; round-trip through parse + Resolve yielding the identical resolved catalogue, mounts split included; script-view round-trip; determinism). go test ./internal/config/ ./internal/daemon/: daemon ok; config fails only on TestServerKeysAnotherHostWritesAreRecordedNotRefused, proven pre-existing by running it on a pristine origin/main worktree (identical failure with no changes applied).
    • With slices 1–3 already landed (PRs feat(mcpx): toolViews slice 1 — rename/pin/hide on alias views (#1933) #2976, feat(mcpx): script-backed tools with @param schemas (#1933 slice 2, task 14190) #8317, mcpx: cross-server virtual namespaces (#1933 slice 3) #8632) and slice 4 now merged, mcpx: tool views and composed tool sets — rename/pin/hide, cross-server namespaces, script-backed tools, and generators that emit declarations #1933 has no remaining slices and is closed with this note. The mcpx view generate CLI verb from the issue's Approach C can wrap this generator unchanged when wanted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

enhancementNew feature or requestsource/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.