Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions sdk/python/feast/infra/mcp_servers/mcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"""

import logging
from typing import Any, Dict, Optional, Set
from typing import TYPE_CHECKING, Any, Dict, Optional, Set

from feast.feature_store import FeatureStore
if TYPE_CHECKING:
from feast.feature_store import FeatureStore

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -97,7 +98,9 @@ def _patch_fastapi_mcp_schema_resolver() -> None:
pass


def add_mcp_support_to_app(app, store: FeatureStore, config) -> Optional["FastApiMCP"]:
def add_mcp_support_to_app(
app, store: "FeatureStore", config
) -> Optional["FastApiMCP"]:
"""Add MCP support to the FastAPI app if enabled in configuration."""
if not MCP_AVAILABLE:
logger.warning("MCP support requested but fastapi_mcp is not available")
Expand Down
Loading