DRF Serializers

MCPClient serializers.

class smarter.apps.mcpclient.serializers.MCPClientSerializer(*args, **kwargs)[source]

Bases: MetaDataWithOwnershipModelSerializer

Serializer for the smarter.apps.mcpclient.models.MCPClient model.

All fields are read only. credentials is rendered as the Secret’s name, never its value.

credentials: SlugRelatedField
get_fields()[source]

Return the serializer’s fields, all of them read-only.

Returns:

The fields, by name.

get_manifest_url(obj)[source]

The URL of the MCPClient’s detail view, which renders its manifest.

Return type:

str