mcpserver

package
v0.0.0-...-2c67053 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: AGPL-3.0 Imports: 31 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mcpserver provides Chatto's optional public HTTP MCP integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(chattoCore *core.ChattoCore, cfg config.ChattoConfig, version string, options ...Option) (http.Handler, error)

NewHandler constructs the protected MCP and metadata endpoints.

func WithClientAddress

func WithClientAddress(r *http.Request, address string) *http.Request

WithClientAddress returns r with the client IP address that the HTTP server resolved through its trusted-proxy configuration. Admission limits key unauthenticated and rejected requests by this address. Without it, they use the remote address of the connection.

Types

type MessageSearch

type MessageSearch interface {
	SearchMessages(context.Context, *apiv1.SearchMessagesRequest) (*apiv1.SearchMessagesResponse, error)
}

MessageSearch runs the authorized public search operation with the verified runtime credential in the context, including validation and sealed cursors.

type Option

type Option func(*handlerOptions)

Option supplies an optional MCP dependency.

func WithMessageSearch

func WithMessageSearch(search MessageSearch) Option

WithMessageSearch supplies the shared public search operation.

Jump to

Keyboard shortcuts

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