Repository navigation
Add network-level MCP elicitation callback test with context - #1883
Merged
Merged
Conversation
Un-ignore McpServerIT.shouldCallToolElicitCompletedWithContext (was deferred per issue #1810) and complete its supporting scripts for the broker OAuth-callback elicitation flow: - Add network/tools.call.elicit.completed.context/client.rpt and its peer server.rpt driving the broker flow: the URL-mode elicitation/create carries a prefixed state <session>.<elicit>.<state> and redirect_uri = binding callback; the client GETs /mcp/auth/callback?code=xyz&state=... then reads the completion notification and tool result. - Add the NetworkIT.shouldCallToolElicitCompletedWithContext peer method so the two network scripts are proven complementary without the runtime. - Fix the application context scripts' elicitCreate redirect_uri from the https://replace.me/callback placeholder to the binding's resolved callback https://localhost:8080/mcp/auth/callback, so isBrokerElicit is satisfied, the elicitation registers, and the callback correlates (matching the tools.call.elicit.declined broker pattern). Verified: full 'mvnw clean verify' on runtime/binding-mcp (233 ITs, 0 skipped) and specs/binding-mcp.spec (NetworkIT + ApplicationIT) pass. https://claude.ai/code/session_01EL1ihZrSH7R4DjmJtnDJLW
jfallows
force-pushed
the
claude/exciting-tesla-u9hmcz
branch
from
June 15, 2026 18:12
7b3663d to
b73c334
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This change adds a new network-level test specification for the MCP binding that validates the complete elicitation flow with OAuth callback handling at the transport layer.
Changes
Added
tools.call.elicit.completed.context/client.rpt: New network-level test script that exercises the full MCP elicitation workflow, including:Updated application-level test scripts to use transport-scoped state parameters:
tools.call.elicit.completed.context/client.rptandserver.rptto includetransport-1prefix in the state parameter, enabling proper session correlation between the network and application layersEnabled previously ignored test
shouldCallToolElicitCompletedWithContext()inMcpServerIT.javaby:@Ignoreannotationtools.call.elicit.completed.context/clientinstead oftools.call.elicit.completed/client)Motivation
This completes the implementation of OAuth-callback-based elicitation at the broker level, enabling proper handling of authorization flows where the MCP binding acts as an intermediary between clients and servers. The transport-scoped state parameters ensure secure correlation of elicitation requests across multiple HTTP connections.
Fixes #1810
https://claude.ai/code/session_01EL1ihZrSH7R4DjmJtnDJLW