A bearer-gated streamable-HTTP app (resource server only) on the in-process bridge.
()
| 45 | |
| 46 | @pytest.fixture |
| 47 | async def protected() -> AsyncIterator[httpx.AsyncClient]: |
| 48 | """A bearer-gated streamable-HTTP app (resource server only) on the in-process bridge.""" |
| 49 | server = Server("rs") |
| 50 | settings = auth_settings(required_scopes=[REQUIRED_SCOPE]) |
| 51 | async with mounted_app(server, auth=settings, token_verifier=StaticTokenVerifier(TOKENS)) as (http, _): |
| 52 | yield http |
| 53 | |
| 54 | |
| 55 | async def post_mcp( |
nothing calls this directly
no test coverage detected