Repository navigation
fix/4305-gateway-federation-prompts - #4864
Closed
Nayana-R-Gowda wants to merge 1 commit into
Closed
Nayana-R-Gowda wants to merge 1 commit into
Nayana-R-Gowda wants to merge 1 commit into
Conversation
Signed-off-by: NAYANA.R <nayana.r7813@gmail.com>
Nayana-R-Gowda
force-pushed
the
fix/4305-gateway-federation-prompts
branch
from
June 29, 2026 06:11
08ba273 to
37d544c
Compare
Nayana-R-Gowda
requested review from
Lang-Akshay,
ja8zyjits and
msureshkumar88
as code owners
June 29, 2026 06:11
Collaborator
|
Closing this PR. Issue #4305 was closed as NOT_PLANNED, and the compliance test suite this PR modifies ( |
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.
Signed-off-by: NAYANA.R nayana.r7813@gmail.com
closes #4305
What Was Fixed
tests/live_gateway/protocol_compliance/helpers/compliance.py to handle both bare and slug-prefixed prompt names
prompts
code changes
Line 129-130: Fetches prompts via GET /prompts?gateway_id=... — this calls the REST API which calls prompt_service.list_prompts() with a gateway_id filter. Since gateway registration already syncs prompts into the DB (via _update_or_create_prompts() at gateway_service.py:4924), this will return the federated prompts.
Line 141: Adds associated_prompts to the server creation payload — this populates the server_prompt_association table so list_server_prompts() finds them.
resolve_prompt() mirrors resolve_tool() exactly — checks for bare name "greet" first (reference target), then slug-prefixed "compliance-reference-greet" (gateway targets). This is needed because the test was previously checking for a hardcoded "greet" name.
test_prompt_listed: Removed gateway_proxy from xfail (it should now pass via DB cache mode for the global /mcp/ path → prompt_service.list_prompts()). Uses resolve_prompt() for slug-agnostic matching.
test_prompt_renders_argument: Same xfail narrowing. Added resolve_prompt() + graceful skip. The get_prompt handler at streamablehttp_transport.py:2325 already calls prompt_service.get_prompt() which handles federated prompts with gateway_id set (it delegates to _fetch_gateway_prompt_result() at prompt_service.py:2070).