1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! # TurboMCP OpenAPI Provider
//!
//! Convert OpenAPI specifications to MCP tools and resources at runtime.
//!
//! This crate enables automatic exposure of REST APIs as MCP components:
//! - GET endpoints become MCP resources
//! - POST/PUT/DELETE endpoints become MCP tools
//! - Configurable route mapping patterns
//!
//! # Example
//!
//! ```rust,ignore
//! use turbomcp_openapi::{OpenApiProvider, RouteMapping, McpType};
//!
//! // Load from URL
//! let provider = OpenApiProvider::from_url("https://api.example.com/openapi.json")
//! .await?
//! .with_base_url("https://api.example.com")
//! .with_route_mapping(RouteMapping::new()
//! .map_method("GET", McpType::Resource)
//! .map_method("POST", McpType::Tool)
//! .map_pattern(r"/admin/.*", McpType::Tool));
//!
//! // Use with TurboMCP server
//! let handler = provider.into_handler();
//! ```
pub use ;
pub use OpenApiHandler;
pub use ;
pub use parse_spec;
pub use ;
/// Prelude for common imports.