Skip to content

Subscribe to MCP catalog notifications - #1860

Merged
Aaronontheweb merged 2 commits into
netclaw-dev:devfrom
Aaronontheweb:investigate/issue-1808
Aug 11, 2026
Merged

Subscribe to MCP catalog notifications#1860
Aaronontheweb merged 2 commits into
netclaw-dev:devfrom
Aaronontheweb:investigate/issue-1808

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Collaborator

Summary

  • Add modern MCP tool and prompt catalog notifications through subscriptions/listen.
  • Use direct notifications for older servers that declare listChanged support.
  • Keep the existing catalog poll as the compatibility and repair path.
  • Tie each notification lease to one client generation.
  • Coalesce notification bursts into one active refresh and one queued refresh.
  • Keep usable connections after malformed acknowledgements or listener failures.
  • Defer MCP resource behavior to Expose MCP resources through bounded list and read operations #1807.

Verification

  • dotnet restore Netclaw.slnx
  • dotnet test src/Netclaw.Daemon.Tests/Netclaw.Daemon.Tests.csproj --no-restore — 1,012 tests passed.
  • ./scripts/smoke/run-smoke.sh mcp-setup — 5 checks passed.
  • dotnet slopwatch analyze — 0 issues.
  • pwsh ./scripts/Add-FileHeaders.ps1 -Verify
  • openspec validate subscribe-mcp-catalog-notifications --strict
  • Focused coverage reached 88.8% line coverage and 81.8% branch coverage for the notification lease.

The behavioral eval did not run because this shell lacks the required provider credentials.

Closes #1808

@Aaronontheweb Aaronontheweb added the mcp Model context protocol server / client issues. label Aug 10, 2026
@Aaronontheweb
Aaronontheweb force-pushed the investigate/issue-1808 branch from 90e09de to dba0d96 Compare August 10, 2026 22:27
@Aaronontheweb
Aaronontheweb force-pushed the investigate/issue-1808 branch from dba0d96 to 8e8ac3d Compare August 10, 2026 22:29
@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) August 11, 2026 00:02
@Aaronontheweb
Aaronontheweb merged commit 71bb610 into netclaw-dev:dev Aug 11, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mcp Model context protocol server / client issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subscribe to MCP tool and prompt catalog change notifications

1 participant