Auto-translate natural language prompts to DSL via vtk-mcp - #40
Merged
Conversation
vicentebolea
force-pushed
the
feat/dsl-translation
branch
2 times, most recently
from
July 10, 2026 02:20
41640ea to
5704e59
Compare
vicentebolea
force-pushed
the
feat/dsl-translation
branch
from
July 28, 2026 02:25
5704e59 to
e836f1d
Compare
vicentebolea
force-pushed
the
feat/dsl-translation
branch
2 times, most recently
from
August 13, 2026 01:57
d49e359 to
5990db0
Compare
Collaborator
|
once we fix the merge issues i can review and put this one to bed. |
vicentebolea
force-pushed
the
feat/dsl-translation
branch
from
August 13, 2026 23:17
5990db0 to
27446da
Compare
When a vtk-mcp server is available, the client now calls is_dsl_prompt() before code generation; if the input is plain natural language it calls translate_prompt_to_dsl() to convert it to the structured VTK pipeline DSL before RAG retrieval and generation. VTKMCPClient.translate_prompt() accepts optional model, base_url, and api_key overrides so callers can direct the translation to a specific model or Ollama endpoint without changing server config.
vicentebolea
force-pushed
the
feat/dsl-translation
branch
from
August 14, 2026 00:43
27446da to
dd1b909
Compare
jlee-kitware
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--dsl-translation/--no-dsl-translationto opt out, CLI + UI)--debugflag dumps the full LLM conversation to stdoutclaude-opus-5/claude-sonnet-5; mark them temperature-unsupported (API rejects the parameter)vtkRenderWindow/vtkRenderWindowInteractor/vtkRendereracrossvtk,vtkmodules.vtkRenderingCore, andvtkmodules.allso self-constructed instances stay bound to the app's shared scene instead of opening a native window or rendering into a disconnected renderer; inject the shared interactor alongsiderenderer/render_windowWhy
DSL input hits the vtk-mcp index more precisely than natural language and cuts hallucinated class/method names. The render-window fix closes a real bug: LLM code trained on
vtkmodules-style examples was escaping the embedded view (native popup) or silently drawing into a renderer the app never displays.Dependencies
translate_prompt_to_dslandis_dsl_prompttoolsdslsubpackage with translatorTest plan
--debugdump, vtk-mcp connectivity indicator