Documentation
¶
Index ¶
- Constants
- type Converter
- func (c *Converter) Convert(specData []byte) (*config.MCPConfig, error)
- func (c *Converter) ConvertFromJSON(jsonData []byte) (*config.MCPConfig, error)
- func (c *Converter) ConvertFromYAML(yamlData []byte) (*config.MCPConfig, error)
- func (c *Converter) ConvertWithOptions(specData []byte, tenant, prefix string) (*config.MCPConfig, error)
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 (*Converter) ConvertFromJSON ¶
ConvertFromJSON converts JSON OpenAPI specification to MCP configuration
func (*Converter) ConvertFromYAML ¶
ConvertFromYAML converts YAML OpenAPI specification to MCP configuration
Click to show internal directories.
Click to hide internal directories.