api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

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

func LoggingMiddleware(next http.Handler) http.Handler

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.

Jump to

Keyboard shortcuts

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