interceptors

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockSecretsMiddleware added in v0.14.0

func BlockSecretsMiddleware() mcp.Middleware[*mcp.ServerSession]

func Callbacks

func Callbacks(logCalls, blockSecrets bool, interceptors []Interceptor) []mcp.Middleware[*mcp.ServerSession]

func LogCallsMiddleware added in v0.14.0

func LogCallsMiddleware() mcp.Middleware[*mcp.ServerSession]

Types

type Interceptor

type Interceptor struct {
	When     string
	Type     string
	Argument string
}

func Parse

func Parse(specs []string) ([]Interceptor, error)

--interceptor=before:exec:/bin/path --interceptor=after:docker:image --interceptor=around:http:localhost:8080/url

func (*Interceptor) ToMiddleware added in v0.14.0

func (i *Interceptor) ToMiddleware() mcp.Middleware[*mcp.ServerSession]

Jump to

Keyboard shortcuts

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