convert

package
v0.0.0-...-3c631c4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PathParamRegex = regexp.MustCompile(`[:\*]([a-zA-Z0-9_]+)`)

PathParamRegex is used to find path parameters like :id or *action

Functions

func ConvertRoutesToTools

func ConvertRoutesToTools(routes gin.RoutesInfo, registeredSchemas map[string]types.RegisteredSchemaInfo) ([]types.Tool, map[string]types.Operation)

ConvertRoutesToTools converts Gin routes into a list of MCP Tools and an operation map.

Types

type HandlerDoc

type HandlerDoc struct {
	Summary     string
	Description string
	Params      map[string]string
	Returns     string
	Tags        []string
	OperationID string
}

HandlerDoc stores function documentation

Jump to

Keyboard shortcuts

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