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: Phase 2 of #1554 — client task execution for taskSupport "required" tools (internal/mcpclient) · Issue #1556 · developing-today/code

mcpx: Phase 2 of #1554 — client task execution for taskSupport "required" tools (internal/mcpclient) #1556

New issue
Copy link
New issue
Copy link
Closed
Closed
mcpx: Phase 2 of #1554 — client task execution for taskSupport "required" tools (internal/mcpclient)#1556
Copy link
Assignees
dezren39
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Phase 2 of design #1554 (filed by the design architect, 2026-10-27). Design doc: files/designs/code-mcpx-tasks-one-store.md in the keep-the-four-repos-healthy goal workspace.

Decision in force (from #1554, do not re-litigate in triage): mcpclient executes a call as an upstream task when — and only when — the tool's declared execution.taskSupport is "required". "optional" stays a plain call; "forbidden" is untouched. An upstream task that parks in input_required returns a distinct named error in this phase; relaying questions downstream is an open question on #1554, not part of this phase. Origin: dezren39/darwin-nix#209 row TOOL-21 (client half) and CAP-26 (client direction — the extension is never declared upstream).

Scope

  • Today: internal/mcpclient/client.go:171-174 carries Tool.Execution raw for forwarding but nothing reads taskSupport; CallTool (client.go:1164) is a plain tools/call; the pool's call site is internal/pool/pool.go:1051; the client declares no tasks extension to upstreams. Client.Era already distinguishes legacy from modern (2026-07-28) upstreams.
  • In CallTool's path (or the narrowest seam above it that the pool and other callers share): when the named tool's listed execution.taskSupport is "required", run the call as an upstream task instead of a plain call:
    • Legacy upstream: send params.task with the call; on the {task} result, poll tasks/get at the task's poll interval until terminal; fetch the outcome via tasks/result (the underlying request's result, related-task meta included).
    • Modern upstream: the client's initialize declares extensions["io.modelcontextprotocol/tasks"]; on a flat Task result (resultType: "task"), poll tasks/get — the DetailedTask inlines the terminal result or error; there is no tasks/result in the extension.
    • Honour the task's TTL as the outer bound; on context cancellation or deadline, send tasks/cancel (best effort) and return the context error. A failed task returns its fault in the client's existing error shapes, so callers (pool, code mode) see a call failure, not a new protocol type.
    • An upstream task that enters input_required ends the call with a distinct, named error stating the upstream task asked a question this phase does not relay.
    • A non-conforming task response (missing {task}, wrong shape, unknown status) is a call error — never a hang and never an unbounded poll.
  • Tools whose taskSupport is absent, "optional", or "forbidden" follow today's plain-call path byte-for-byte.

Acceptance

  • Defining tests against fake upstreams (the client's existing fake-server test rig):
    • legacy upstream, required tool: the call is sent with params.task, the result returned to the caller is the tasks/result payload, and exactly the expected get/result request sequence occurs;
    • modern upstream, required tool: initialize declared the tasks extension, the flat task is polled via tasks/get, and the inlined terminal result is returned;
    • optional tool on either era: plain call, no task methods issued;
    • cancellation: cancelling the call context issues tasks/cancel upstream and returns promptly;
    • failed upstream task: the fault surfaces as the call's error;
    • input_required upstream task: the distinct named error is returned;
    • malformed task response: call error, no hang (test completes under its deadline).
  • No changes to the server side (internal/mcpserver) or to pooled-call behaviour for non-required tools; the pool call site needs no signature change, or any change is justified on this issue.
  • Verification via CI per fleet policy: cd pkgs/mcpx && go test ./... on the PR.

Out of scope: Phase 1's store unification (independent — this phase does not depend on it); downstream relay of upstream inputRequests (open question on #1554); register truth-up and nix#209 closure (Phase 3, gated on Phases 1–2).

Acceptance criteria

  • CallTool on a taskSupport: "required" tool completes through the upstream's task machinery in both eras, returning the task's result as the call result.
  • Modern initialize declares extensions["io.modelcontextprotocol/tasks"]; legacy path uses params.task + tasks/result.
  • Cancel, failure, input_required, and malformed-response behaviours match the scope above and are covered by the defining tests in CI.
  • Non-required tools are byte-for-byte today's plain call; full mcpx suite green via CI.

Activity

Next
  1. dezren39
    added
    kind/featureNew feature or capability request
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    on Oct 28, 2026
  2. developing-today commented on Oct 28, 2026

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

    CODE-603

  3. dezren39
    added
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    source/design-architectFiled by the repo design architect job
    on Oct 28, 2026
  4. dezren39
    added a parent issue on Oct 28, 2026
    • design(mcpx): tasks, finished — one task store for MCP and /v1, and a client that can call task-required tools #1554
  5. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: design architect (repo-design-architect-code job)
    • Session / ID: repo-design-architect-code cron run, 2026-10-27 20:25 CDT
    • Found via: filed this run
    • Task: Phase 2 implementation issue for design design(mcpx): tasks, finished — one task store for MCP and /v1, and a client that can call task-required tools #1554 (mcpx tasks — client task execution for taskSupport "required" tools, internal/mcpclient). Linked as a sub-issue of design(mcpx): tasks, finished — one task store for MCP and /v1, and a client that can call task-required tools #1554. Enqueued as a triage packet in repo-health-code-pilot this run (queue task 1613) — first fleet step is triage/confirmation of scope and the CallTool seam, then implementation. Independent of Phase 1.
    • Expectation: effort/l; done = acceptance criteria in the body, defining tests = fake legacy + modern upstreams (required completes via task, optional stays plain, cancel propagates, input_required named error), in pkgs/mcpx/internal/mcpclient.
    • Links: design design(mcpx): tasks, finished — one task store for MCP and /v1, and a client that can call task-required tools #1554; design doc files/designs/code-mcpx-tasks-one-store.md (goal workspace); queue task 1613 (repo-health-code-pilot); origin mcpx: tasks — the 2026 extension is advertised and not implemented; core tasks are unbound and live in two stores dezren39/darwin-nix#209
  6. github-actions
    assigned
    dezren39
    on Oct 28, 2026
  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 28, 2026
  8. 111 remaining items

  9. dezren39
    added
    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 Oct 31, 2026
  10. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked-up

    • Agent: queue worker (repo-worker-code), lane D
    • Session / ID: queue task 1641 (fix for mcpx: Phase 2 of #1554 — client task execution for taskSupport "required" tools (internal/mcpclient) #1556), resumed from park
    • Found via: fresh revalidation 2026-10-31T07:00Z — PR 2934 head 46079cc, Codex clean on head (all 9 threads resolved, no findings), docs check SUCCESS; lint / plugin tests / stress-PR checks still QUEUED (fleet backlog)
    • Next action: poll CI briefly; merge if green, else park on CI again
  11. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Oct 31, 2026
  12. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane D
    • Session / ID: queue task 1641, PR 2934 head 46079cc
    • Found via: fresh check 2026-10-31T07:02Z — Codex clean on head (9/9 threads resolved); docs SUCCESS; basic: lint, basic: plugin tests, stress: PR changed tests still QUEUED after a 4-minute poll (fleet CI backlog)
    • Next action: those three checks green → merge PR 2934 → close mcpx: Phase 2 of #1554 — client task execution for taskSupport "required" tools (internal/mcpclient) #1556 → complete fixed_merged
  13. dezren39
    added a commit that references this issue on Oct 31, 2026

    feat(mcpx): client task execution for taskSupport required tools (#1556…

    7177f7c
  14. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    Agent note — done: PR #2934 merged

    • Agent: repo-worker-code (lane C shift) · Task: 1641 (small_fix, mcpx: Phase 2 of #1554 — client task execution for taskSupport "required" tools (internal/mcpclient) #1556)
    • PR feat(mcpx): client task execution for taskSupport required tools (#1556) #2934 (@46079cc13) merged as 7177f7c: lint, plugin tests, stress (race/shuffle/repeat) and mcpx-docs build all green; Codex review on the head CLEAN (no findings, 0 unresolved threads). The trailing "final: CI time budget" summarizer job was still queued in the fleet backlog at merge time — it reports CI time, not correctness; every substantive check was green.
    • Closing mcpx: Phase 2 of #1554 — client task execution for taskSupport "required" tools (internal/mcpclient) #1556 on the merge evidence.
  15. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Oct 31, 2026
  16. dezren39
    closed this as completedon Oct 31, 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/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/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.