[mlir-python-mcp] Add MCP server for programmatic MLIR manipulation#443
Open
makslevental wants to merge 1 commit into
Open
[mlir-python-mcp] Add MCP server for programmatic MLIR manipulation#443makslevental wants to merge 1 commit into
makslevental wants to merge 1 commit into
Conversation
A pip-installable MCP server (mlir-python-mcp) that provides Claude with programmatic access to the MLIR Python bindings via a persistent REPL. Tools (29 total): - Core REPL: execute_python, list_variables, session management - Pipeline workflow: run_pipeline, chain_pipeline, rewind, history - Discovery: list_dialects, list_ops, list_ir_apis, list_rewrite_apis, list_passes - IR manipulation: parse_mlir, walk_operations, inspect_op, get_op_info, create_func, symbol_lookup, verify_module, clone_module, replace_all_uses, erase_op, load/save_mlir_file Key features: - Pre-loaded namespace with all dialect builders (arith, func, scf, linalg, etc.) - Pipeline fluent builder with auto-generated methods for every registered pass - help()/dir() discovery for ops, types, and passes - 114 tests, 100% branch coverage via pytest-cov - CI integration in build_mlir_python_bindings_wheel.yml Also updates eudsl-python-extras passes.py (regenerated). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9d3f5eb to
fc83873
Compare
PragmaTwice
approved these changes
Jun 18, 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.
A pip-installable MCP server that provides Claude with programmatic access to the MLIR Python bindings via a persistent REPL.
Tools (29 total):
Key features:
Also updates eudsl-python-extras passes.py (regenerated).
This is the spicier version of the upstream RFC because it lets the agent
execute_pythonto construct and manipulate the MLIR module. See README.md for more info.