File size: 916 Bytes
1814d17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
52
53
54
55
56
57
58
59
---
title: openapi
sidebarTitle: openapi
---

# `fastmcp.server.openapi`


FastMCP server implementation for OpenAPI integration.

## Classes

### `MCPType`


Type of FastMCP component to create from a route.


### `RouteType`


Deprecated: Use MCPType instead.

This enum is kept for backward compatibility and will be removed in a future version.


### `RouteMap`


Mapping configuration for HTTP routes to FastMCP component types.


### `OpenAPITool`


Tool implementation for OpenAPI endpoints.


### `OpenAPIResource`


Resource implementation for OpenAPI endpoints.


### `OpenAPIResourceTemplate`


Resource template implementation for OpenAPI endpoints.


### `FastMCPOpenAPI`


FastMCP server implementation that creates components from an OpenAPI schema.

This class parses an OpenAPI specification and creates appropriate FastMCP components
(Tools, Resources, ResourceTemplates) based on route mappings.