Skip to content

Remove non-spec progress/update method from MCP parser#4188

Open
majiayu000 wants to merge 1 commit intostacklok:mainfrom
majiayu000:fix/issue-4170-remove-non-spec-progress-update
Open

Remove non-spec progress/update method from MCP parser#4188
majiayu000 wants to merge 1 commit intostacklok:mainfrom
majiayu000:fix/issue-4170-remove-non-spec-progress-update

Conversation

@majiayu000
Copy link
Contributor

Summary

The MCP parser included a progress/update method handler that is not part of the MCP specification. This conflicts with the spec-compliant notifications/progress handler that already exists and works correctly. Removing the non-spec method to align with the protocol specification.

  • Remove progress/update map entry and dead handleProgressMethod function from parser
  • Remove two related test cases from parser tests
  • Remove progress/update from authorization middleware (method map and skip-auth condition)

Fixes #4170

Type of change

  • Bug fix

Test plan

  • Unit tests (task test)
  • Linting (task lint-fix)

Ran go test ./pkg/mcp/... ./pkg/authz/... — all tests pass. Verified go build ./... compiles cleanly.

@github-actions github-actions bot added the size/XS Extra small PR: < 100 lines changed label Mar 17, 2026
@codecov
Copy link

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.19%. Comparing base (a684b55) to head (d046133).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4188      +/-   ##
==========================================
- Coverage   69.28%   69.19%   -0.10%     
==========================================
  Files         464      464              
  Lines       46639    46641       +2     
==========================================
- Hits        32312    32271      -41     
- Misses      11851    11856       +5     
- Partials     2476     2514      +38     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The 'progress/update' method is not part of the MCP specification.
The spec-compliant 'notifications/progress' handler already exists
and correctly handles progress notifications. Remove 'progress/update'
from the parser method handlers, authz middleware method map, and
the authorization skip list, along with its dead handler function
and associated test cases.

Closes stacklok#4170

Signed-off-by: majiayu000 <1835304752@qq.com>
@majiayu000 majiayu000 force-pushed the fix/issue-4170-remove-non-spec-progress-update branch from 310273a to d046133 Compare March 17, 2026 09:28
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Mar 17, 2026
@majiayu000 majiayu000 marked this pull request as ready for review March 17, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove non-spec progress/update method from MCP parser

1 participant