Skip to content

feat: add ProfileMetadata type and update ServerAnnouncement parsing (CEP-6)#77

Merged
ContextVM-org merged 1 commit into
ContextVM:mainfrom
harsh04044:feat/cep6-pr1-types-and-parsing
May 15, 2026
Merged

feat: add ProfileMetadata type and update ServerAnnouncement parsing (CEP-6)#77
ContextVM-org merged 1 commit into
ContextVM:mainfrom
harsh04044:feat/cep6-pr1-types-and-parsing

Conversation

@harsh04044
Copy link
Copy Markdown

Part of #76 (CEP-6).

Two changes:

Added ProfileMetadata struct for CEP-23 server identity - name, about, picture, banner, website, nip05, lud16, plus a flatten field for custom properties. Follows the same builder pattern as the rest of the codebase.

Updated ServerAnnouncement to handle both the legacy format (plain ServerInfo) and the new format (full rmcp InitializeResult with protocolVersion, capabilities, server_info, instructions). Falls back to legacy parsing for backward compatibility.

@ContextVM-org ContextVM-org merged commit 7fb7679 into ContextVM:main May 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants