huggingface / huggingface/mcp-course
[WORKAROUND] to unit 2 gradio client script: Error in post_writer: Client error '404 Not Found'
- Dominant language
- MDX
- Stars
- 918
- Forks
- 255
- PR merge metrics
- No merged PRs in 30d
Description
Error:
```
Error in post_writer: Client error '404 Not Found' for url 'https://abidlabs-mcp-tools.hf.space/gradio_api/mcp/gradio_api/mcp/messages/?session_id=dab13c163c804b6d8a3f952ab13580ce'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
```
A potential workaround can be found here:
https://github.com/gradio-app/gradio/issues/11225#issuecomment-2893381049
---
You can duplicate the space: https://abidlabs-mcp-tools.hf.space/gradio_api and set the mcp version to 1.8.1 in the requirements.txt (`mcp==1.8.1`) and run the app.
Then replace the mcp server URL to: `https://-mcp-tools.hf.space/gradio_api/mcp/sse`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Unit 2 Gradio client script and the post_writer entry point, then compare its MCP server URL with the URL and mcp==1.8.1 setup described in the issue. Reproduce the 404 and verify that the client can complete the post_writer request without the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- huggingface
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100