fix: address rpc and mcp review followups

This commit is contained in:
lda
2026-06-08 22:53:34 +07:00 Verified
parent 44407e8de2
commit 7043866259
29 changed files with 272 additions and 95 deletions
@@ -26,11 +26,12 @@ def _require_source_registry_admin(
) -> WorkflowSourceRegistrySurface:
admin = server.source_registry_admin
if admin is None:
verb = "are" if operation in {"reads", "mutations"} else "is"
raise WorkflowRpcError(
data={
"code": "source_registry_unavailable",
"message": (
f"source registry admin {operation} are not available "
f"source registry admin {operation} {verb} not available "
"for this server"
),
}