3 ms·
Show HN: I rawdog a MCP server from scratch in Zig. No SDK
Some time ago I wanted to write a MCP server in Zig but found out there's no real JSON-RPC support in Zig, which MCP needs for communication. I ended up developing a JSON-RPC 2.0 library in Zig and more [1], which had its challenges.
So I finally was able to put together a MCP server in Zig. It's built from scratch implementing the protocol messages from the MCP JSON schema. It's actually quite magical to have the LLM calling my MCP server [2].
The work is not too bad. Most of the hard work has already been done in the JSON-RPC library.
[1] https://github.com/williamw520/zigjr https://github.com/williamw520/zigjr
[2] https://github.com/williamw520/zigjr?tab=readme-ov-file#run-the-mcp-server-example https://github.com/williamw520/zigjr?tab=readme-ov-file#run-...
- brian_herman 1y agoNice
- ozgrakkurt 1y agoNice! Rawdogging and seeing it work must be therapeutic
- happens 1y agoNice work! I can also recommend sphaerophoria on YouTube for people who enjoy watching others rawdog things in zig.
- ekko_cx 1y ago[dead]