oas2mcp.loaders

Loader helpers for oas2mcp.

Purpose:

Expose functions for reading OpenAPI specifications from URLs, files, and raw text.

Design:
  • Keep loading side effects isolated to this package.

  • Return plain dictionaries for the initial ingestion layer.

  • Preserve compatibility aliases while the rest of the package is being migrated away from LangChain’s OpenAPISpec object model.

oas2mcp.loaders.__all__[source][source]

Curated public exports for loader helpers.

Examples

from oas2mcp.loaders import load_openapi_spec_dict_from_file

spec_dict = load_openapi_spec_dict_from_file("openapi.json")

Submodules