Expose DAG validation as LLM tools via MCP#1490
Open
Dev-iL wants to merge 2 commits intoapache:mainfrom
Open
Conversation
c259c29 to
21a0878
Compare
skrawcz
reviewed
Feb 24, 2026
skrawcz
approved these changes
Feb 25, 2026
This includes 6 tools that leverage Hamilton's compile-time DAG validation for LLM feedback loops: 1. validate_dag 2. list_nodes 3. visualize 4. execute 5. get_docs 6. scaffold Install with `pip install "sf-hamilton[mcp]"`, run via `hamilton-mcp`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The SDK's requirements.txt referenced `sf-hamilton` (the old package name), while the project has been renamed to `apache-hamilton`. Both packages provide the `hamilton` Python module, so when pip installed `sf-hamilton` from PyPI and then the editable `apache-hamilton` from source, the two coexisted — the old sf-hamilton files in site-packages shadowed the editable install's .pth redirect to the local source. This caused the SDK tests to run against the stale PyPI release, which lacks the `pd.__version__ < "3.0"` guards added in 157ecd6 for kwargs removed in pandas 3.0 (verbose, keep_date_col, delim_whitespace). Changes: - ui/sdk/requirements.txt: sf-hamilton -> apache-hamilton - hamilton-sdk.yml: reorder install steps so the editable source install runs after requirements, ensuring it always overrides the PyPI version Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Changes
This includes 6 tools that leverage Hamilton's compile-time DAG validation for LLM feedback loops:
How I tested this
Notes
To use:
uv pip install .[mcp] # Below for Claude, for other tools see the fastmcp v3 docs fastmcp install claude-code hamilton/plugins/h_mcp/server.pyChecklist