MCPcopy
hub / github.com/modelcontextprotocol/registry / RegistryService

Interface RegistryService

internal/service/service.go:18–35  ·  view source on GitHub ↗

RegistryService defines the interface for registry operations

Source from the content-addressed store, hash-verified

16
17// RegistryService defines the interface for registry operations
18type RegistryService interface {
19 // ListServers retrieve all servers with optional filtering
20 ListServers(ctx context.Context, filter *database.ServerFilter, cursor string, limit int) ([]*apiv0.ServerResponse, string, error)
21 // GetServerByName retrieve latest version of a server by server name
22 GetServerByName(ctx context.Context, serverName string, includeDeleted bool) (*apiv0.ServerResponse, error)
23 // GetServerByNameAndVersion retrieve specific version of a server by server name and version
24 GetServerByNameAndVersion(ctx context.Context, serverName string, version string, includeDeleted bool) (*apiv0.ServerResponse, error)
25 // GetAllVersionsByServerName retrieve all versions of a server by server name
26 GetAllVersionsByServerName(ctx context.Context, serverName string, includeDeleted bool) ([]*apiv0.ServerResponse, error)
27 // CreateServer creates a new server version
28 CreateServer(ctx context.Context, req *apiv0.ServerJSON) (*apiv0.ServerResponse, error)
29 // UpdateServer updates an existing server and optionally its status
30 UpdateServer(ctx context.Context, serverName, version string, req *apiv0.ServerJSON, statusChange *StatusChangeRequest) (*apiv0.ServerResponse, error)
31 // UpdateServerStatus updates only the status metadata of a server version
32 UpdateServerStatus(ctx context.Context, serverName, version string, statusChange *StatusChangeRequest) (*apiv0.ServerResponse, error)
33 // UpdateAllVersionsStatus updates the status metadata of all versions of a server in a single transaction
34 UpdateAllVersionsStatus(ctx context.Context, serverName string, statusChange *StatusChangeRequest) ([]*apiv0.ServerResponse, error)
35}

Implementers 1

registryServiceImplinternal/service/registry_service.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…