Skip to content

Does mcp_redis support starting in SSE mode? #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
leeray opened this issue May 7, 2025 · 2 comments
Closed

Does mcp_redis support starting in SSE mode? #14

leeray opened this issue May 7, 2025 · 2 comments

Comments

@leeray
Copy link

leeray commented May 7, 2025

I set the environment variable MCP_TRANSPORT=sse, and then successfully started the mcp server by running python main.py.

log:
(python3.12.2) leeray@LR-MacBook-Pro  ~/Workspaces/Ailink/mcp_redis/src  ↰ main ±  python main.py
Starting the RedisMCPServer
INFO: Started server process [77993]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

However, when I accessed port 8000 through the browser, I got nothing.

@leeray
Copy link
Author

leeray commented May 7, 2025

It is obvious that I used the wrong method, I have successfully invoked the mcp-redis method through the sse approach.

@leeray leeray closed this as completed May 7, 2025
@mortensi
Copy link
Member

mortensi commented May 7, 2025

Hello @leeray, Thanks. I will leave it here in case anybody hits a similar problem.

The server is available at:

http://127.0.0.1:8000/sse

You can test the configuration for VS Code, for example, using GitHub Copilot

    "mcp": {
        "servers": {
            "redis-mcp": {
                "type": "sse",
                "url": "http://127.0.0.1:8000/sse"
            },
        }
    },

There is an example from the FastMCP docs.

I will improve the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants