Den 21. mar. 2026 kl. 20.00 skrev Andreas Söderlund <gaz...@gmail.com>:
I've whipped up a MCP server for DCI based on some LLM instructions I started to write a while ago. It's quite simple - it returns core DCI instructions (language agnostic), and language-specific ones with some optional examples for better guidance.
I've tested it by letting AI generate a mental model of a railway signal/switch system, and then using the MCP server by asking it to generate DCI Contexts based on that. Never mind the accuracy, but I think the code it generated is quite pleasant and readable: https://gist.github.com/ciscoheat/4e07e19cec4f454bd4116c815aea29f7The server is published on npm and easy to use, described in the readme: https://github.com/ciscoheat/dci-mcpNow I'm waiting for you to contribute with more languages, more concise and accurate core instructions, etc. Check out the docs folder and open up a PR!
--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to object-composit...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/object-composition/55b520a4-caeb-418b-a7a5-95525ce5c28an%40googlegroups.com.
Very cool on both counts!
I think there's definitely potential in using the concepts of roles and contexts as a specification language that's accessible to non-programmers as well (and I think Trygve would have loved that).
@Andreas, for the JS/TS output of the MCP server, what do you think about the idea of using symbols, like this?
https://github.com/mbrowne/dci-examples/blob/main/js-symbols/transfer-money/TransferMoney.js
When writing code manually, it's slightly annoying to write the symbols, but if AI is generating the code that's not an issue. The underscore naming prefix is fine, but I think using symbols makes it look more like calling methods on objects, and symbols avoid name clashes between contexts. I think the code is readable either way, I just wanted to offer this as an alternative to consider.
To view this discussion visit https://groups.google.com/d/msgid/object-composition/F3685FF6-73F3-4BF0-B4A9-5E2379777E33%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/object-composition/F3685FF6-73F3-4BF0-B4A9-5E2379777E33%40gmail.com.