Skip to content

Commit 0366f68

Browse files
committed
Fix type hints for mount_path parameter in run method
- Change mount_path parameter type from 'str = None' to 'str | None = None' - Fix line length violation by splitting parameters onto separate lines - Ensure proper typing for optional parameters This commit fixes the pyright type error and ruff formatting issues while maintaining the original functionality of the mount_path parameter.
1 parent a431957 commit 0366f68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ def instructions(self) -> str | None:
186186
return self._mcp_server.instructions
187187

188188
def run(
189-
self, transport: Literal["stdio", "sse"] = "stdio", mount_path: str = None
189+
self,
190+
transport: Literal["stdio", "sse"] = "stdio",
191+
mount_path: str | None = None,
190192
) -> None:
191193
"""Run the FastMCP server. Note this is a synchronous function.
192194

0 commit comments

Comments
 (0)