chore(docs): model registry (hub) client support for kubeflow-mcp-server (kep#181) #264
All Vouch review confidence checks passed
Residual risk 0.40 = Change Risk (0.73) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.73 · 351 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.351
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.073
Real PR Conversation Timeline
1 comments
"Review active on #264"
general
weight: 0.35
myselfkunal
Summary
This KEP proposes implementing the Hub client module for
kubeflow-mcp-server,wrapping
kubeflow.hub.ModelRegistryClientas 7 MCP tools: 5 read-only discoverytools and 2 mutating tools behind the standard confirm gate.
It fills the Phase 3
hubnode already present inCLIENT_MODULES(stub modulekubeflow_mcp.hub) and closes the dead end after "job complete": an agent canregister the trained model, then look it up again with the artifact URI, format and
storage fields a serving layer needs.
Note on the SDK client
The issue references
kubeflow.hub.ModelRegistryClient, and that is what this KEPtargets. Verified against
kubeflow==0.5.0on PyPI andkubeflow/sdkmain:kubeflow.hubexportsModelRegistryClient,StorageConfig,S3UploadParams,OCIUploadParamsandupload_artifact. There is noHubClient. #201 also keepssdk_client: kubeflow.hub.ModelRegistryClient.0.5.0 still matters: it adds
storage_configtoregister_model(), without whichthe tool cannot record how KServe should fetch the artifact. Implementation therefore
waits for #195 / #201.
Tools
list_models,get_model,list_model_versions,get_model_version,compare_modelsregister_modelupdate_model_metadataKey decisions
promote_modeldropped from scope (agreed on #181), since the registry has nostage/environment concept and a
custom_properties["stage"]convention wouldbecome de facto API on merge.
update_model_metadatatargets the model or a specific version via an optionalversionparam; get-mutate-update, with the confirm gate wrapping the final writeand an optional stale-write check.
get_model_versionrather than a separateget_model_artifacttool, keeping the count at the 7 agreed in the issue.HubConfig(URL/port/author/CA/token) instead of using kubeconfig. No tool accepts credentials.
Non-Goals
promote_model, archiving/state changes,upload_artifact(needs raw storage keys),editing artifacts, serving, lineage tracking.
Plan
Two PRs: read-only half first (easier to review, unblocks the schema snapshot), then
the mutating half, per @abhijeet-dhumal's suggestion on #181. #201 has landed, and PR 1
also depends on kubeflow/sdk#862 for the
async_runnerpassthrough.Status
Open for review. Both review rounds are resolved and recorded in a Decision Log at the
end of the KEP.
Context
#181, #195, #201, and #48 (KEP-34) for the format.
cc: @abhijeet-dhumal @Krishna-kg732