Skip to content

Does Terrastruct consider building an MCP server for D2? #2518

Done

Description

@younes-io

It seems that a few people use LLMs to generate D2 diagrams, but LLMs today are not good at it.

I was thinking this could be a use case for an MCP server, which could wrap the d2 linter and provide the linting results to the LLM (which can iterate until all linting issues are fixed).

I just don't know if Terrastruct is able to take the lead on this (if relevant) and call for contributions (I would gladly help on this one).

Activity

  1. alixander commented on May 11, 2025

    @alixander
    Collaborator

    I have not familiarized myself with MCP servers yet. I'll wait to see if it's here to stay, and then consider D2's strategy for it. Right now it looks unclear to me that it's not just a stepping stone to a more stable protocol.

    https://raz.sh/blog/2025-05-02_a_critical_look_at_mcp
    https://elenacross7.medium.com/%EF%B8%8F-the-s-in-mcp-stands-for-security-91407b33ed6b

  2. matifali commented on Jun 12, 2025

    @matifali

    Do we have an MCP server? Curious as the issue is closed as completed.

  3. alixander commented on Jun 14, 2025

    @alixander
    Collaborator

    No, D2 does not currently. I'll reopen to reflect that.

  4. qdrddr commented on Jul 10, 2025

    @qdrddr

    It would be great to have an MCP server built into the D2 CLI tool and Docker container, with support for streamable-HTTP transport.

  5. younes-io commented on Nov 26, 2026

    @younes-io
    Author

    well, it "had to take" a year and a half.. thanks anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions