Hi HN, I've written a blog post on how to create a simple sHTTP MCP server and have Cursor connect to it.
The server is <50 lines of code and have a few interesting features:
- You can effectively run this program like a binary with all dependencies through UV script
- You can selectively decide which tool makes sense for your current application as they are mounted on different paths Mount("/filesystem/"), ...)
- Your agent can self-edit its tool in realtime because uvicorn’s reload=True and reload_dirs=["."] settings hot-reload modules whenever there is a change
Hi HN, I've written a blog post on how to create a simple sHTTP MCP server and have Cursor connect to it.
The server is <50 lines of code and have a few interesting features: - You can effectively run this program like a binary with all dependencies through UV script - You can selectively decide which tool makes sense for your current application as they are mounted on different paths Mount("/filesystem/"), ...) - Your agent can self-edit its tool in realtime because uvicorn’s reload=True and reload_dirs=["."] settings hot-reload modules whenever there is a change
Hope you find it useful!