| 18 | } |
| 19 | |
| 20 | type API struct { |
| 21 | Path string `json:"path"` |
| 22 | Method string `json:"method"` |
| 23 | ContentType string `json:"content_type"` |
| 24 | Summary string `json:"summary"` |
| 25 | Description string `json:"description"` |
| 26 | Params []*openapi3.Parameter `json:"params"` |
| 27 | Body map[string]interface{} `json:"body"` |
| 28 | } |
| 29 | |
| 30 | func ConvertMCPFromOpenAPI3Data(data []byte) (*MCPInfo, error) { |
| 31 | spec, err := openapi3Loader.LoadFromData(data) |
nothing calls this directly
no outgoing calls
no test coverage detected