mcpserver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 16 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

Index

Constants

View Source
const (
	Path = "/mcp"
)

Variables

View Source
var Version = "dev"

Functions

This section is empty.

Types

type Deps

type Deps struct {
	Store     *store.Store
	Tools     *tools.Registry
	Audit     *audit.Logger
	Clock     clock.Clock
	PublicURL string
	Log       *slog.Logger

	ApprovalTimeout time.Duration
	ApprovalPing    time.Duration
}

type Endpoint

type Endpoint struct {
	// contains filtered or unexported fields
}

func New

func New(deps Deps) *Endpoint

func (*Endpoint) AccountsChanged

func (e *Endpoint) AccountsChanged(ctx context.Context)

func (*Endpoint) Close

func (e *Endpoint) Close()

func (*Endpoint) GrantChanged

func (e *Endpoint) GrantChanged(ctx context.Context, grantID int64)

func (*Endpoint) GrantRevoked

func (e *Endpoint) GrantRevoked(grantID int64)

func (*Endpoint) Handler

func (e *Endpoint) Handler() http.Handler

func (*Endpoint) RequireBearer

func (e *Endpoint) RequireBearer(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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