mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-26 23:44:17 +02:00
Add version parameter to FastMCP constructor
This commit is contained in:
parent
df78b2171d
commit
42121b2767
2 changed files with 25 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|||
def __init__(
|
||||
self,
|
||||
name: str | None = None,
|
||||
version: str | None = None,
|
||||
instructions: str | None = None,
|
||||
auth: OAuthProvider | None = None,
|
||||
lifespan: (
|
||||
|
|
@ -175,6 +176,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|||
self._has_lifespan = True
|
||||
self._mcp_server = MCPServer[LifespanResultT](
|
||||
name=name or "FastMCP",
|
||||
version=version,
|
||||
instructions=instructions,
|
||||
lifespan=_lifespan_wrapper(self, lifespan),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue