v0.2.0
Changed (Breaking)
- Complete refactor from function-based API to a new class-based API with
FastApiMCP
- Explicit separation between MCP instance creation and mounting with
mcp = FastApiMCP(app)
followed bymcp.mount()
- FastAPI-native approach for transport providing more flexible routing options
- Updated minimum MCP dependency to v1.6.0
Added
- Support for deploying MCP servers separately from API service
- Support for "refreshing" with
setup_server()
when dynamically adding FastAPI routes. Fixes Issue #19 - Endpoint filtering capabilities through new parameters:
include_operations
: Expose only specific operations by their operation IDsexclude_operations
: Expose all operations except those with specified operation IDsinclude_tags
: Expose only operations with specific tagsexclude_tags
: Expose all operations except those with specific tags
Fixed
- FastAPI-native approach for transport. Fixes Issue #28
- Numerous bugs in OpenAPI schema to tool conversion, addressing Issue #40 and Issue #45
Removed
- Function-based API (
add_mcp_server
,create_mcp_server
, etc.) - Custom tool support via
@mcp.tool()
decorator
Full Changelog: v0.1.8...v0.2.0