Skip to content

307 Temporary Redirect #732

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

Open
2495710777 opened this issue May 16, 2025 · 6 comments
Open

307 Temporary Redirect #732

2495710777 opened this issue May 16, 2025 · 6 comments

Comments

@2495710777
Copy link

INFO: 127.0.0.1:56991 - "POST /mcp HTTP/1.1" 307 Temporary Redirect
INFO: 127.0.0.1:56991 - "POST /mcp/ HTTP/1.1" 200 OK

After using
mcp.run(transport="streamable-http")
to start the server, why does the client always redirect to '/mcp/' when requesting the server?

@ch-xhr
Copy link

ch-xhr commented May 19, 2025

same issue.

@zhouguangming
Copy link

same

@nightzjp
Copy link

http://localhost/mcp => http://localhost/mcp/

@chi2liu
Copy link

chi2liu commented May 22, 2025

set your streamable_http_path='/mcp/'

@chi2liu
Copy link

chi2liu commented May 22, 2025

#781

@jbovet
Copy link

jbovet commented May 23, 2025

hey, it took me a while to figure this out, I even raised an issue!

thanks everyone for your help!

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

6 participants