Documentation
¶
Overview ¶
Package api provides the REST API server for MCP Registry access.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
LoggingMiddleware logs HTTP requests
func NewServer ¶
func NewServer(svc service.RegistryService, opts ...ServerOption) *chi.Mux
NewServer creates and configures the HTTP router with the given service and options
Types ¶
type ServerOption ¶
type ServerOption func(*serverConfig)
ServerOption configures the registry API server
func WithMiddlewares ¶
func WithMiddlewares(mw ...func(http.Handler) http.Handler) ServerOption
WithMiddlewares adds middleware to the server
Directories
¶
| Path | Synopsis |
|---|---|
|
Package common provides shared HTTP utility functions for API handlers.
|
Package common provides shared HTTP utility functions for API handlers. |
|
extension
|
|
|
v0
Package v0 provides extension API v0 endpoints for server management.
|
Package v0 provides extension API v0 endpoints for server management. |
|
registry
|
|
|
v01
Package v01 provides registry API v0.1 endpoints for MCP server discovery.
|
Package v01 provides registry API v0.1 endpoints for MCP server discovery. |
|
Package v0 provides the REST API handlers for MCP Registry access.
|
Package v0 provides the REST API handlers for MCP Registry access. |
Click to show internal directories.
Click to hide internal directories.