Skip to content

Commit 74c0cc2

Browse files
committed
docs: add server name format documentation to API types
Add descriptive documentation to the Name field in ServerJSON struct explaining the expected format 'reverse-dns-namespace/name' and allowed characters for namespace and name parts.
1 parent 800bd4c commit 74c0cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/v0/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type ServerMeta struct {
2929
// ServerJSON represents complete server information as defined in the MCP spec, with extension support
3030
type ServerJSON struct {
3131
Schema string `json:"$schema,omitempty"`
32-
Name string `json:"name" minLength:"1" maxLength:"200"`
32+
Name string `json:"name" minLength:"1" maxLength:"200" doc:"Server name in format 'reverse-dns-namespace/name' (e.g., 'com.example/server'). Namespace allows alphanumeric, dots, hyphens. Name allows alphanumeric, dots, underscores, hyphens."`
3333
Description string `json:"description" minLength:"1" maxLength:"100"`
3434
Status model.Status `json:"status,omitempty" minLength:"1"`
3535
Repository model.Repository `json:"repository,omitempty"`

0 commit comments

Comments
 (0)