openapi

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OpenAPIVersion2 openapi 2.0
	OpenAPIVersion2 = "2.0"
	// OpenAPIVersion3 openapi 3.0
	OpenAPIVersion3 = "3.0"
	// OpenAPIVersion31 openapi 3.1
	OpenAPIVersion31 = "3.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
}

Converter handles the conversion from OpenAPI to MCP configuration

func NewConverter

func NewConverter() *Converter

NewConverter creates a new Converter instance

func (*Converter) Convert

func (c *Converter) Convert(specData []byte) (*config.MCPConfig, error)

Convert converts OpenAPI specification to MCP configuration

func (*Converter) ConvertFromJSON

func (c *Converter) ConvertFromJSON(jsonData []byte) (*config.MCPConfig, error)

ConvertFromJSON converts JSON OpenAPI specification to MCP configuration

func (*Converter) ConvertFromYAML

func (c *Converter) ConvertFromYAML(yamlData []byte) (*config.MCPConfig, error)

ConvertFromYAML converts YAML OpenAPI specification to MCP configuration

Jump to

Keyboard shortcuts

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