registryserver

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg *config.Config, registry service.RegistryService) *mcp.Server

NewServer constructs an MCP server that exposes read-only discovery tools backed by the registry service. All endpoints are restricted to published content to keep the surface area safe for unauthenticated agents.

Types

type ServerReadmePayload

type ServerReadmePayload struct {
	Server      string    `json:"server"`
	Version     string    `json:"version"`
	Content     string    `json:"content"`
	ContentType string    `json:"content_type"`
	SizeBytes   int       `json:"size_bytes"`
	SHA256      string    `json:"sha256"`
	FetchedAt   time.Time `json:"fetched_at"`
}

ServerReadmePayload is a compact representation of a server README blob.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL