Fix Redis transport refactoring with control message system

- Fix timing issue by awaiting startServerListeningToRedis
- Add request-id based response channel routing
- Implement control message system for proper server shutdown
- Add comprehensive integration tests
- Ensure response subscription is established before message sending
- Fix MCP server cleanup integration to prevent async hanging

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jerome 2025-07-04 17:23:54 +01:00
commit de8c4a4ed2
No known key found for this signature in database

View file

@ -95,7 +95,12 @@ enum PromptName {
RESOURCE = "resource_prompt",
}
export const createMcpServer = () => {
interface McpServerWrapper {
server: Server;
cleanup: () => void;
}
export const createMcpServer = (): McpServerWrapper => {
const server = new Server(
{
name: "example-servers/everything",