()
| 355 | |
| 356 | @mcp.tool() |
| 357 | def read_files() -> str: |
| 358 | raise UrlElicitationRequiredError( |
| 359 | [ |
| 360 | ElicitRequestURLParams( |
| 361 | message="Authorization required for your files.", |
| 362 | url="https://example.com/oauth/authorize", |
| 363 | elicitation_id="auth-001", |
| 364 | ) |
| 365 | ] |
| 366 | ) |
| 367 | |
| 368 | async with connect(mcp) as client: |
| 369 | with pytest.raises(MCPError) as exc_info: |
nothing calls this directly
no test coverage detected