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 — feat(mcp): surface tool progress by Nomadcxx · Pull Request #32480 · anomalyco/opencode

Conversation

@Nomadcxx

@Nomadcxx Nomadcxx commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Refs #28567
Depends on #32477

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Builds on #32477 by turning MCP progress notifications into opencode's existing running-tool progress surface.

The MCP catalog now forwards SDK progress notifications to a caller-provided progress callback. The session MCP tool wrapper uses that callback to publish session.next.tool.progress, which is already consumed by the session state/TUI path.

I kept this intentionally small:

  • no new UI component
  • no tool cancellation changes
  • no generic MCP notification framework yet
  • no resources/updated handling

This is just the first progress/status surface slice: MCP progress now has a real tool/session event path instead of only acting as a timeout keepalive.

How did you verify your code works?

Added tests for:

  • forwarding MCP SDK progress through the converted MCP tool
  • mapping MCP progress into standard running-tool progress state

Ran:

bun test --timeout 30000 test/mcp/lifecycle.test.ts --only-failures
bun test --timeout 30000 test/session/tools.test.ts --only-failures
bun test --timeout 30000 test/mcp --only-failures
bun test --timeout 30000 test/session --only-failures
bun run typecheck

Notes

This PR is stacked on #32477. Until #32477 merges, GitHub may show the progress keepalive commit in this diff as well.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added the contributor label Jun 15, 2026
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one related PR (not a duplicate):

Related PR:

  • fix(mcp): enable progress timeout resets #32477: fix(mcp): enable progress timeout resets - This PR is the direct dependency that the current PR (32480) builds upon, as noted in the PR description.

The current PR (#32480) is the only one that specifically implements "surface tool progress" for MCP. The search results show other MCP-related fixes and features, but none are duplicating the specific functionality of turning MCP progress notifications into opencode's running-tool progress surface.

No duplicate PRs found

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Nomadcxx Nomadcxx mentioned this pull request Jun 15, 2026
[FEATURE]: Full MCP client capabilities #28567
Closed
1 task done
@claui

claui commented Jun 18, 2026

Copy link
Copy Markdown

The session MCP tool wrapper uses that callback to publish session.next.tool.progress, which is already consumed by the session state/TUI path.

Isn't session.next.tool.progress already (misleadingly) concerned with partial tool output rather than tool progress? IIRC tool progress and partial output are entirely unrelated events, triggered independently from each other, and also carry different kinds of payload. I'm not convinced both should be lumped into the same event type.

Have you considered earmarking a whole new event type for tool progress, such as session.next.tool.progress.report?

See also #26328.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Nomadcxx

Nomadcxx commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

yeah fair point.

I used session.next.tool.progress because the core event is described as bounded running-tool state, but looking through the cli/tui path I can see the ambiguity here. bash/tool output already uses this progress phase as streamed output, while mcp progress is more of a status report.

Since #32477 already landed the timeout fix, I’ll rework this follow-up rather than force the UI shape here. I think the cleaner version is probably a dedicated progress report shape, or whatever fits the video/status surface you had in mind for #26328.

claui reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Nomadcxx
Nomadcxx force-pushed the rama/mcp-progress-status-surface branch 2 times, most recently from e3a4862 to 84748d3 Compare June 25, 2026 00:26
@github-actions github-actions Bot mentioned this pull request Jun 25, 2026
📊 AI CLI 工具社区动态日报 2026-06-25 zx0828/big_model_radar#174
Open
@Nomadcxx
Nomadcxx force-pushed the rama/mcp-progress-status-surface branch from 84748d3 to b466502 Compare June 25, 2026 03:22
Nomadcxx added 2 commits June 26, 2026 22:36
@Nomadcxx
feat(mcp): surface tool progress
dd00929
@Nomadcxx
fix(mcp): separate progress reports
668f57d
@Nomadcxx
Nomadcxx force-pushed the rama/mcp-progress-status-surface branch from b466502 to 668f57d Compare June 26, 2026 12:37
@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot closed this Jul 15, 2026
@github-actions github-actions Bot added the automated-pr-cleanup label Jul 15, 2026
@gareag gareag mentioned this pull request Sep 19, 2026
[FEATURE]: Surface MCP tool progress in the TUI (revive #32480 with a dedicated progress event) #49929
Open
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

automated-pr-cleanup contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Nomadcxx @claui
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.