Title: Specifying capabilities w/ FastMCP Server · Issue #1126 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Specifying capabilities w/ FastMCP Server · Issue #1126 · modelcontextprotocol/python-sdk
X Title: Specifying capabilities w/ FastMCP Server · Issue #1126 · modelcontextprotocol/python-sdk
Description: Question I noticed that the FastMCP server does not have the options to manually specify the capabilities of the server, however it is possible to do so with the low-level server. My current workaround to advertise the capabilities is li...
Open Graph Description: Question I noticed that the FastMCP server does not have the options to manually specify the capabilities of the server, however it is possible to do so with the low-level server. My current workar...
X Description: Question I noticed that the FastMCP server does not have the options to manually specify the capabilities of the server, however it is possible to do so with the low-level server. My current workar...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/1126
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Specifying capabilities w/ FastMCP Server","articleBody":"### Question\n\nI noticed that the FastMCP server does not have the options to manually specify the capabilities of the server, however it is possible to do so with the low-level server. \n\nMy current workaround to advertise the capabilities is like so:\n\n```py\nmcp = FastMCP(\"test-server\")\n\n# Manually set notification options\nlowlevel_server: Server = mcp._mcp_server\nlowlevel_server.notification_options.resources_changed = True\nlowlevel_server.notification_options.tools_changed = True\n\n# Now, we override the mcp.run()\nasync def main():\n async with stdio_server() as (r, w):\n init_opts = lowlevel_server.create_initialization_options(\n lowlevel_server.notification_options,\n {}\n )\n await lowlevel_server.run(r, w, init_opts)\n\nif __name__ == \"__main__\":\n anyio.run(main)\n```\n\nIs there any other way to specify the capabilities of the FastMCP server? Is there a reason not to?\n\nThanks!\n\n### Additional Context\n\n_No response_","author":{"url":"https://github.com/chrisagrams","@type":"Person","name":"chrisagrams"},"datePublished":"2025-07-11T16:42:19Z","url":"https://github.com/modelcontextprotocol/python-sdk/issues/1126"}
| 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:0ca51120-d681-7213-554c-4a769d2e27e8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE7C:31E3E4:2ADBC90:3875885:6B0568A5 |
| html-safe-nonce | 4f416824586d9fe3836aaaed92d9e8650f8efef4fa179c63c7d4c6252d3df673 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTdDOjMxRTNFNDoyQURCQzkwOjM4NzU4ODU6NkIwNTY4QTUiLCJ2aXNpdG9yX2lkIjoiNjI1ODU1NzEzMjEyODc0MTU0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1546e3451f62cff82f52d286cb7b06fcbd4ffd92417b535c992eb7b18d743943 |
| hovercard-subject-tag | issue:3223560834 |
| 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/modelcontextprotocol/python-sdk/1126/issue_layout |
| twitter:image | https://opengraph.githubassets.com/20e4f5796b523a5f3beb93d6ce0b165e790f24585dec40c9e3619691bda78e65/modelcontextprotocol/python-sdk/issues/1126 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/20e4f5796b523a5f3beb93d6ce0b165e790f24585dec40c9e3619691bda78e65/modelcontextprotocol/python-sdk/issues/1126 |
| og:image:alt | Question I noticed that the FastMCP server does not have the options to manually specify the capabilities of the server, however it is possible to do so with the low-level server. My current workar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chrisagrams |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1be5cc09efdd4833c24a4ffa71d698e3999fa09071e159fe14c2c08e41c98331 |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| 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 | f6d69234e682c947a48074340e69d45d5901de31 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width