Title: Migrate MCP server from fastapi_mcp to MCP Python SDK · Issue #6252 · feast-dev/feast · GitHub
Open Graph Title: Migrate MCP server from fastapi_mcp to MCP Python SDK · Issue #6252 · feast-dev/feast
X Title: Migrate MCP server from fastapi_mcp to MCP Python SDK · Issue #6252 · feast-dev/feast
Description: Problem fastapi_mcp crashes with RecursionError on any self-referencing Pydantic model in the OpenAPI schema (no cycle detection in resolve_schema_references()). This is app-wide — one recursive route kills the entire MCP server. It also...
Open Graph Description: Problem fastapi_mcp crashes with RecursionError on any self-referencing Pydantic model in the OpenAPI schema (no cycle detection in resolve_schema_references()). This is app-wide — one recursive ro...
X Description: Problem fastapi_mcp crashes with RecursionError on any self-referencing Pydantic model in the OpenAPI schema (no cycle detection in resolve_schema_references()). This is app-wide — one recursive ro...
Opengraph URL: https://github.com/feast-dev/feast/issues/6252
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Migrate MCP server from fastapi_mcp to MCP Python SDK","articleBody":"## Problem\n\n`fastapi_mcp` crashes with `RecursionError` on any self-referencing Pydantic model in the OpenAPI schema (no cycle detection in `resolve_schema_references()`). This is app-wide — one recursive route kills the entire MCP server. It also generates LLM-unfriendly schemas (`$ref`/`$defs`) and HTTP-derived tool names (`post_get_online_features`).\n\n## Solution\n\nReplace `fastapi_mcp` with the [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk) (`FastMCP`). Define tools explicitly via `@mcp.tool()`, calling `FeatureStore` methods directly (no internal HTTP round-trip).\n\n## Benefits\n\n- Unblocks recursive Pydantic models (compound filters, nested types) on HTTP routes without breaking MCP\n- Flat, LLM-friendly tool schemas (no `$ref`/`$defs`)\n- Semantic tool names (`get_online_features`, not `post_get_online_features`)\n- New registry discovery tools (`list_feature_views`, `list_entities`, `list_feature_services`, `list_data_sources`)\n- No HTTP noise (health checks, static files, WebSocket routes not exposed)\n- Direct `FeatureStore` calls instead of internal HTTP round-trip","author":{"url":"https://github.com/patelchaitany","@type":"Person","name":"patelchaitany"},"datePublished":"2026-04-09T11:47:36Z","url":"https://github.com/feast-dev/feast/issues/6252"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:faa10a3b-8b6f-1719-9508-16bfd2bcde57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C624:3D1D02:2F2F54:419F21:6AFE99A1 |
| html-safe-nonce | 3d11e6d2e491e7ceb4c646aeeedb9d1d24c66342d55dc34a9df155de9d9549b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjI0OjNEMUQwMjoyRjJGNTQ6NDE5RjIxOjZBRkU5OUExIiwidmlzaXRvcl9pZCI6IjIzNTkwODgwNzI3NjQ1OTQ1OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e825bbc7d97c905e7971037ae5e4531bbb86f4ca1ec75b642530aafc93e65074 |
| hovercard-subject-tag | issue:4231911024 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6252/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a55e8a766c356e989390b1fc93da53cf574a9a77daa668ee833b664d0924ce3/feast-dev/feast/issues/6252 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a55e8a766c356e989390b1fc93da53cf574a9a77daa668ee833b664d0924ce3/feast-dev/feast/issues/6252 |
| og:image:alt | Problem fastapi_mcp crashes with RecursionError on any self-referencing Pydantic model in the OpenAPI schema (no cycle detection in resolve_schema_references()). This is app-wide — one recursive ro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | patelchaitany |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width