MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / read_files

Function read_files

tests/interaction/mcpserver/test_tools.py:357–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected