Skip to content

MCP Server can not support cluster #201

@yu199195

Description

@yu199195

Hi the this code :

        if (this.isClosing) {
            return ServerResponse.status(HttpStatus.SERVICE_UNAVAILABLE)
                    .body("Server is shutting down");
        }

        if (request.param("sessionId").isEmpty()) {
            return ServerResponse.badRequest()
                    .body(new McpError("Session ID missing in message endpoint"));
        }

        String sessionId = request.param("sessionId").get();
        McpServerSession session = sessions.get(sessionId);

        if (session == null) {
            return ServerResponse.status(HttpStatus.NOT_FOUND)
                    .body(new McpError("Session not found: " + sessionId));
        }

when mcp server is cluster model. McpServerSession session = sessions.get(sessionId); is null

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions