MCPcopy Create free account
hub / github.com/plotly/dash / read_resource

Function read_resource

dash/mcp/primitives/resources/__init__.py:43–48  ·  view source on GitHub ↗

Route a resources/read request by URI prefix match.

(uri: str)

Source from the content-addressed store, hash-verified

41
42
43def read_resource(uri: str) -> ReadResourceResult:
44 """Route a resources/read request by URI prefix match."""
45 for p in _RESOURCE_PROVIDERS:
46 if uri.startswith(p.uri):
47 return p.read_resource(uri)
48 raise ValueError(f"Unknown resource URI: {uri}")

Calls 1

read_resourceMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…