@@ -146,6 +146,7 @@ def __init__( # noqa: PLR0913
146146 instructions : str | None = None ,
147147 website_url : str | None = None ,
148148 icons : list [Icon ] | None = None ,
149+ version : str | None = None ,
149150 auth_server_provider : (OAuthAuthorizationServerProvider [Any , Any , Any ] | None ) = None ,
150151 token_verifier : TokenVerifier | None = None ,
151152 event_store : EventStore | None = None ,
@@ -194,6 +195,7 @@ def __init__( # noqa: PLR0913
194195 instructions = instructions ,
195196 website_url = website_url ,
196197 icons = icons ,
198+ version = version ,
197199 # TODO(Marcelo): It seems there's a type mismatch between the lifespan type from an FastMCP and Server.
198200 # We need to create a Lifespan type that is a generic on the server type, like Starlette does.
199201 lifespan = (lifespan_wrapper (self , self .settings .lifespan ) if self .settings .lifespan else default_lifespan ), # type: ignore
@@ -243,6 +245,10 @@ def website_url(self) -> str | None:
243245 def icons (self ) -> list [Icon ] | None :
244246 return self ._mcp_server .icons
245247
248+ @property
249+ def version (self ) -> str | None :
250+ return self ._mcp_server .version
251+
246252 @property
247253 def session_manager (self ) -> StreamableHTTPSessionManager :
248254 """Get the StreamableHTTP session manager.
0 commit comments