Skip to content

Commit 5734acf

Browse files
authored
Pass json-schema-ref-no-deref conformance scenario (SEP-2106) (#2924)
1 parent cf41441 commit 5734acf

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/actions/conformance/client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,18 @@ async def run_initialize(server_url: str) -> None:
177177
logger.debug("Listed tools successfully")
178178

179179

180+
@register("json-schema-ref-no-deref")
181+
async def run_json_schema_ref_no_deref(server_url: str) -> None:
182+
"""Initialize and list tools; the scenario fails only if the client fetches a network $ref.
183+
184+
ClientSession never walks inputSchema or resolves $refs, so listing is enough (SEP-2106).
185+
"""
186+
async with streamable_http_client(url=server_url) as (read_stream, write_stream):
187+
async with ClientSession(read_stream, write_stream) as session:
188+
await session.initialize()
189+
await session.list_tools()
190+
191+
180192
@register("tools_call")
181193
async def run_tools_call(server_url: str) -> None:
182194
"""Connect, initialize, list tools, call add_numbers(a=5, b=3), close."""

.github/actions/conformance/expected-failures.2026-07-28.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ client:
4646
# SEP-2243 (HTTP standardization): no fixture handler / client header support yet.
4747
- http-custom-headers
4848
- http-invalid-tool-headers
49-
# SEP-2106 (JSON Schema $ref handling): client still dereferences network $refs.
50-
- json-schema-ref-no-deref
5149
# SEP-2352 (authorization server migration): client does not re-register when
5250
# PRM authorization_servers changes.
5351
- auth/authorization-server-migration

.github/actions/conformance/expected-failures.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ client:
2121
# SEP-2243 (HTTP standardization): no fixture handler / client header support yet.
2222
- http-custom-headers
2323
- http-invalid-tool-headers
24-
# SEP-2106 (JSON Schema $ref handling): client still dereferences network $refs.
25-
- json-schema-ref-no-deref
2624
# SEP-2352 (authorization server migration): client does not re-register when
2725
# PRM authorization_servers changes.
2826
- auth/authorization-server-migration

0 commit comments

Comments
 (0)