Skip to content

mount_path does not work with sse_app #783

@kinch-tech

Description

@kinch-tech

while i start mcp server with mcp.run, provided with mount_path, then client get bad response with 404。

the endpoint for handling post message should be normalized_message_endpoint, not the original message_path

        routes.append(
            Mount(
                self.settings.message_path,
                app=sse.handle_post_message,
            )
        )

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds reproneeds additional information to be able to reproduce bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions