How do I use sse tool? #5705
Unanswered
mkschreder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an sse mcp server that uses two endpoints:
It seems that existing mcp interface expects something else (endpoints in docs are called /mcp? is this the same as the sse endpoint?)
When I run this code I get an error from lower levels: Error in post_writer: Redirect response '308 Permanent Redirect' for url 'http://localhost:3000/api/messages/?session_id=579d13db-4ad1-4c3b-ab4f-1838065ae99b'
Redirect location: '/api/messages?session_id=579d13db-4ad1-4c3b-ab4f-1838065ae99b'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308
I think this is due to how nextjs dev mode handles requests and I'm not sure if it is the redirect itself that causes autogen to fail to connect or if autogen expects a different interface.
When I connect to my server using "npx @wong2/mcp-cli --sse http://localhost:3000/api/sse" everything works and I can see the full list of tools.
Beta Was this translation helpful? Give feedback.
All reactions