Skip to content

Unpack settings in FastMCP#1198

Merged
Kludex merged 2 commits intomainfrom
unpack-settings-fastmcp
Jul 26, 2025
Merged

Unpack settings in FastMCP#1198
Kludex merged 2 commits intomainfrom
unpack-settings-fastmcp

Conversation

@Kludex
Copy link
Copy Markdown
Member

@Kludex Kludex commented Jul 25, 2025

No description provided.

@Kludex Kludex requested review from a team and ochafik July 25, 2025 09:59
Comment on lines +132 to +148
debug: bool = False,
log_level: Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"] = "INFO",
host: str = "127.0.0.1",
port: int = 8000,
mount_path: str = "/",
sse_path: str = "/sse",
message_path: str = "/messages/",
streamable_http_path: str = "/mcp",
json_response: bool = False,
stateless_http: bool = False,
warn_on_duplicate_resources: bool = True,
warn_on_duplicate_tools: bool = True,
warn_on_duplicate_prompts: bool = True,
dependencies: Collection[str] = (),
lifespan: Callable[[FastMCP[LifespanResultT]], AbstractAsyncContextManager[LifespanResultT]] | None = None,
auth: AuthSettings | None = None,
transport_security: TransportSecuritySettings | None = None,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main change. The rest is just to comply with those types.

port: int = 8000,
mount_path: str = "/",
sse_path: str = "/sse",
message_path: str = "/messages/",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.