server

package
v0.0.0-...-6e52582 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTools

func GenerateTools(srv *mcp.Server, endpoints []spec.Endpoint, httpClient *client.Client, authResolver *auth.Resolver, cfg Config)

GenerateTools registers the lightweight navigator/executor tool surface.

func Run

func Run(cfg Config, extraHeaders map[string]string) error

Run loads the spec, generates tools, and starts the MCP stdio server.

Types

type Config

type Config struct {
	SpecSource        string
	BaseURL           string
	ToolPrefix        string
	ExcludeDeprecated bool
	AllowInsecureHTTP bool
	MaxBodyBytes      int64
	AuthProfile       string
}

Config controls runtime behavior for the MCP proxy.

Jump to

Keyboard shortcuts

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