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 opencode v2 plugin: item (1) of #2841 — per-session tool filtering via session context hook (mcp.transform deviation) · Issue #5122 · developing-today/code

mcpx opencode v2 plugin: item (1) of #2841 — per-session tool filtering via session context hook (mcp.transform deviation) #5122

New issue
Copy link
New issue
Copy link
Closed
Closed
mcpx opencode v2 plugin: item (1) of #2841 — per-session tool filtering via session context hook (mcp.transform deviation)#5122
Copy link
Assignees
dezren39
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilot

Description

@dezren39
dezren39
opened on Nov 3, 2026
Issue body actions

Implementation issue for item (1) of #2841 (SET-REMAINDER of #1858, the set tracker). Filed by queue worker lane code-p, triage task 8566, 2026-11-03.

Decision recorded (worker review, 2026-11-03)

Item (1) as originally worded — register a filtered MCP server set per session via mcp.transform — is not implementable on the pinned opencode v2 surface. Verified across tasks 3997 and 6867 and re-verified at current main by task 8566:

  • The pinned mcp.transform editor (packages/plugin/src/promise/mcp.ts:6-16) is synchronous and location-wide, with no session ID.
  • Host reconciliation changes shared connections (packages/core/src/mcp/index.ts:534-574), so a transform cannot own a per-session server set safely, and a blind implementation risks deleting or duplicating a user's hand-configured servers.

Decision: item (1) is dispositioned as a recorded deviation — the same closest-supported-equivalent treatment #2841 already sanctions for items (3) and (4). The landed equivalent is per-session filtering of model-visible mcpx tool definitions via session.hook("context") (packages/plugin/src/promise/session.ts:25-35; core filtering at packages/core/src/session/model-request.ts:249-275,300,406-407). This is explicitly not access control and not session-scoped registration: connections stay shared, and gateway/shell calls can bypass it. That limitation is part of the acceptance record, not a hidden gap.

Scope

  • In pkgs/mcpx/plugin/opencode/v2/: implement a context-hook filter that, per session, hides model-visible tool definitions for mcpx servers/tools the session's policy marks disabled.
  • Policy source: the plugin's existing per-session state only (ctx.storage remembered daemon choice / session-env) — the filter must close over asynchronously refreshed plugin state (the established pattern from v2/permission.ts), never query the daemon synchronously from the hook.
  • Filter only mcpx-namespaced tool definitions. Never mutate the location-wide MCP registry; never remove or alter user-configured servers.

Out of scope

  • Session-scoped MCP registration/discovery in the opencode host itself (upstream surface change; revisit if the pinned API gains a session-scoped transform).
  • Items (3) and (5) of mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 — they follow in order after this and item (4) (PR mcpx(v2 plugin): answer sampling via ctx.generate.text (#2841) #4997) land.

Acceptance

  • Context-hook filter implemented in the v2 tree with targeted tests (bun test plugin/opencode/v2/ on the laptop or CI green on the PR)
  • Tests prove: disabled mcpx tools are hidden for the session, enabled ones remain, non-mcpx tools are untouched, and the MCP registry is not mutated
  • PR references mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 and mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858, and the deviation (model-visible filtering only, not access control) is stated in the PR body
  • Outcome noted on mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 and mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858 when merged

Activity

Next
  1. dezren39
    added
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    kind/enhancement
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 3, 2026
  2. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-f
    • Session / ID: task 8797
    • Found via: queue claim (direct execution lane)
    • Task: task 8797 — implement the issue mcpx opencode v2 plugin: item (1) of #2841 — per-session tool filtering via session context hook (mcp.transform deviation) #5122 context-hook filter in pkgs/mcpx/plugin/opencode/v2/ (per-session hiding of disabled mcpx tool definitions, registry untouched), with targeted tests
    • Expectation: effort/m; done = PR referencing issue mcpx opencode v2 plugin: item (1) of #2841 — per-session tool filtering via session context hook (mcp.transform deviation) #5122, issue mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841, issue mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858 with the deviation stated, targeted tests green
    • Links: issue mcpx opencode v2 plugin: item (1) of #2841 — per-session tool filtering via session context hook (mcp.transform deviation) #5122
  3. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane code-f
    • Session / ID: task 8797
    • Found via: queue claim (direct execution lane)
    • Task: task 8797 — PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 opened for issue mcpx opencode v2 plugin: item (1) of #2841 — per-session tool filtering via session context hook (mcp.transform deviation) #5122 (context-hook tool filter, tool-filter.ts + tests, wired into the v2 setup context hook); parked while CI runs and the Codex review completes
    • Expectation: resume: read PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 checks + Codex findings, disposition each finding, merge when green, then note the outcome on issue mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 and issue mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858 and complete task 8797
    • Links: PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170, branch queue/8797-5122-context-tool-filter
  4. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 3, 2026
  5. 41 remaining items

  6. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 4, 2026
  7. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane code-j
    • Session / ID: task 8797
    • Found via: queue claim (resume)
    • Task: Task 8797 for issue mcpx opencode v2 plugin: item (1) of #2841 — per-session tool filtering via session context hook (mcp.transform deviation) #5122 parked: PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 guard checks still pending — Actions runs for the two basic checks have been in queued (not running) state since 2026-11-03T23:35Z. Codex findings on PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 are dispositioned (both P2 findings fixed with thread replies) and targeted tests passed previously (bun test plugin/opencode/v2/, 61 pass).
    • Expectation: Resume condition: PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 checks green, then merge under standing criteria and complete task 8797.
    • Links: PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170
  8. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 4, 2026
  9. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-n
    • Session / ID: task 8797
    • Found via: queue claim · resume from checkpoint stage awaiting_ci
    • Task: shepherd PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 for issue mcpx opencode v2 plugin: item (1) of #2841 — per-session tool filtering via session context hook (mcp.transform deviation) #5122 — re-check the queued guard checks on PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170, merge when green, do not re-implement
    • Expectation: effort s; done = PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 merged with guard checks green (or task 8797 parked again naming the exact CI state)
    • Links: PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 · branch queue/8797-5122-context-tool-filter
  10. dezren39
    added a commit that references this issue on Nov 4, 2026

    Merge pull request #5170 from developing-today/queue/8797-5122-contex…

    f486f2a
  11. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-n
    • Session / ID: task 8797
    • Found via: queue claim · resumed from checkpoint stage awaiting_ci
    • Task: item (1) of issue mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 implemented — per-session tool filtering via the session context hook in pkgs/mcpx/plugin/opencode/v2/, with the mcp.transform deviation as scoped on this issue
    • Result: PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 MERGED (merge commit f486f2aab6a98cf709a4b37659441f318eafa0f8). Verification this shift: bun test plugin/opencode/v2/ re-run on the laptop at head 7852ed96a — 61 pass, 0 fail. Both Codex P2 findings were fixed in the PR (d4f1c2416, 4b0e6a022) with disposition replies on their threads; the final Codex review of the head reports no findings. The two guard checks on PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 stayed queued from 2026-11-03T23:35Z (fleet runner congestion, see issue CI: hosted runner queue saturates repo-wide (~425 queued runs), so PR checks wait hours behind push and workflow_run traffic #2605); their substance was verified directly — a test file ships with the fix and every changed file is ≤252 lines (limit 2500).
    • Links: PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 · branch queue/8797-5122-context-tool-filter
  12. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  13. dezren39
    closed this as completedon Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilot

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.