I have been playing around with agentic/vibe coding dlang for a little while. As training LLM's on dlang hasn't been highest priority, how dare them, the code produced is mostly good, but not as good as I think it could be. Maybe it's because I'm cheap, I have mostly used GLM 4.7 and GLM 5.0 since its release.

So I thought, a good project would be a mcp server for dlang.
Google gemini and claude.ai told me it would make the generated dlang code better, so it must be true.

The result can be found and tried here https://github.com/burner/dlang_mcp PLEASE BE CAREFUL, I haven't even read all the code. It seems to be doing stuff and maybe the LLM works better, I don't know. I don't even know how to test it yet.

I used it add the http connection on top of the stdio interface. I haven't really tested it in anger.

The mcp server currently has 2.5 main features
* dscanner interface as mcp
* dfmt interface as mcp
* vector search for functions and example for ingested dlang projects (this is 0.5 feature)

As I'm still learning the whole vector/embedding things, I don't know if its any good or just a waste of energy. The vector search is cpu based, no 5k nvidia card required.

This was/is mostly a learning exercise for me, and maybe somebody else can learn something as well. Therefore, I'm putting it online.

If my attempt is completely pointless please tell me.
If you have or know where to find something better please tell me.
If you want to improve it, please tell me or even better create PR's or issues.

Reply via email to