v0.4.0
ModelScope-Hub v0.4.0 Release Notes
Feature
- Agent-IDP: full OpenAPI coverage for Ed25519 agent identities — create/get/update/delete, key reset, pause/resume, issued-token records, OIDC discovery + JWKS, and locally signed JWT issuance. Available on
HubApiand via the newms-hub agent-idpcommand. Private JWKs are written0600, and only to an explicitly requested path. - Studios: the eight remaining published operations —
list_studios, the hardware / base-image / SDK-version catalogs, and the four plaintext-variable operations. New CLI:ms-hub studio list|variable|hardware|base-images|sdk-versions, plusms-hub list --repo-type studio. - MCP:
HubApi.list_operational_mcp_servers()andms-hub mcp list --hostedsurface hosted servers with their live URLs. - Studio
protectedvisibility: app public, code hidden — previously inexpressible because visibility was folded into aprivatebool. - Token permission tiers:
TokenScope(read/write/admin) annotations. A read-scoped token can log in with a warning, and a rejected write names the tier it requires. RepoInfonow carries Studio runtime fields (sdk_type,sdk_version,base_image,hardware,mcp_support,runtime) instead of discarding them.
Enhance
- MCP deployment discovery sends
PUTfirst — the only verb the spec defines — and remembers which verb a deployment serves, so the other is tried at most once. - Listing Studios by owner now requests every status; the endpoint keeps filtering to running spaces even with an owner set, so "list my spaces" returned nothing.
Fix
- Studio compat shims forwarded
token/endpointinto request bodies, serialising the caller's API token into thePATCHbody ofupdate_studio_settings. Control kwargs are now split from business fields on every Studio shim. get_studio_logs(..., token=...)raisedTypeErrorand could never succeed; a per-calltoken=was silently ignored on every Studio shim.cover_imagewas renamed tocoverImageon the way out and dropped by the server, so Studio cover images never applied.- Error mapping: 403 now separates insufficient permission from an exhausted quota (new
QuotaExceededError, deliberately not retryable), 409 maps toAlreadyExistsError, and the OpenAPI string error codes are recognised at all. get_studiodemanded a token for spaces the spec declares public.ms-hub studio logsread atotalfield the response never had, so its pagination footer never printed.
Documentation
- README: the new Studio / MCP /
agent-idpcommand surface, a Token permission levels section, and the SDK method reference. Back-filled the missing 0.3.0 and 0.3.1 News entries and collapsed older releases.
Quality
- The OpenAPI spec is vendored under
tests/data/and checked againstOPERATION_REGISTRY, so an unimplemented published Agent-IDP / MCP / Studios endpoint fails the suite instead of drifting unnoticed.
What's Changed
- feat: Complete MCP and Studio OpenAPI support by @wangxingjun778 in #61
- [Feature] Add Agent-IDP, MCP, studio for new openapi by @wangxingjun778 in #62
Full Changelog: v0.3.1...v0.4.0