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.

get_fields()[source]

Return the dict of field names -> field instances that should be used for self.fields when instantiating the serializer.

get_manifest_url(obj)[source]

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

Return type:

str