Skip to content

Commit d34f446

Browse files
committed
Rename variable for clarity in message endpoint handling.
Updated `normalized_endpoint` to `normalized_message_endpoint` to improve code readability and better reflect its purpose. This change ensures the variable name aligns with its role in managing message path normalization.
1 parent e176a7b commit d34f446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,13 +607,13 @@ def sse_app(self, mount_path: str = "") -> Starlette:
607607
self.settings.mount_path = mount_path
608608

609609
# Create normalized endpoint considering the mount path
610-
normalized_endpoint = self._normalize_path(
610+
normalized_message_endpoint = self._normalize_path(
611611
self.settings.mount_path, self.settings.message_path
612612
)
613613

614614
# Set up auth context and dependencies
615615

616-
sse = SseServerTransport(normalized_endpoint)
616+
sse = SseServerTransport(normalized_message_endpoint)
617617

618618
async def handle_sse(scope: Scope, receive: Receive, send: Send):
619619
# Add client ID from auth context into request context if available

0 commit comments

Comments
 (0)