Skip to content

An MCP Server can only be connected once. Repeated attempts will result in: "Server is already initialized." #144

Open

Description

@Kila2

Describe the bug
A vapor server add a mcp support mcp client failed. The sse message report "Server is already initialized."

Expected behavior
A clear and concise description of what you expected to happen.
reuse mcp server for many mcp client.

Activity

  1. added
    bug
    on Jun 24, 2025
  2. mattt commented on Jun 24, 2025

    @mattt
    Contributor

    Hi @Kila2. Can you tell me more about how you integrated Vapor? We haven't yet implemented HTTP transport for servers.

  3. Kila2 commented on Jun 24, 2025

    @Kila2
    Author

    Hi @Kila2. Can you tell me more about how you integrated Vapor? We haven't yet implemented HTTP transport for servers.

    here is a simple example generate by ai base on typescript sse implementation. https://github.com/Kila2/VaporMCPDemo

  4. added a commit that references this issue on Jul 12, 2026
    5630533
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions