MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / get

Method get

uncommon_route/artifacts.py:111–118  ·  view source on GitHub ↗
(self, artifact_id: str)

Source from the content-addressed store, hash-verified

109 return artifact
110
111 def get(self, artifact_id: str) -> dict[str, Any] | None:
112 meta_path = self._meta_path(artifact_id)
113 content_path = self._content_path(artifact_id)
114 if not meta_path.exists() or not content_path.exists():
115 return None
116 meta = json.loads(meta_path.read_text())
117 meta["content"] = content_path.read_text()
118 return meta
119
120 def list(self, limit: int = 50) -> list[dict[str, Any]]:
121 items: list[dict[str, Any]] = []

Calls 2

_meta_pathMethod · 0.95
_content_pathMethod · 0.95