MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / RegisterMessage

Class RegisterMessage

relay/protocol.py:99–116  ·  view source on GitHub ↗

Unity registration message

Source from the content-addressed store, hash-verified

97
98
99class RegisterMessage(Message):
100 """Unity registration message"""
101
102 model_config = ConfigDict(frozen=True)
103
104 type: Literal["REGISTER"] = "REGISTER"
105 protocol_version: str = PROTOCOL_VERSION
106 instance_id: str = ""
107 project_name: str = ""
108 unity_version: str = ""
109 bridge_version: str = ""
110 capabilities: list[str] = Field(default_factory=list)
111
112 @field_validator("instance_id")
113 @classmethod
114 def validate_instance_id(cls, v: str) -> str:
115 # Allow empty string for backwards compatibility, but validate format if provided
116 return v
117
118
119class RegisteredMessage(Message):

Calls

no outgoing calls