MCP server exposing the Galaxy tool refactoring facade to AI agents.
Project description
galaxy-tool-refactor-mcp
An MCP server that exposes the Galaxy tool refactoring framework to AI coding
agents. A tier-4 sibling of galaxy-tool-refactor-cli: both wrap the
galaxy-tool-refactor-registry facade (tier 3.6) for a different audience — the
CLI for humans at a terminal, this for agents over the Model Context Protocol.
Shape
The facade is library-first (structured args in, structured results out, no disk writes unless asked, introspectable), so the server is a thin adapter:
service.py— protocol-agnostic. Pure functions that take XML as astr(plusrulesets/select/ignore) and return JSON-abledicts by calling the facade. Nomcpimport; fully unit-tested.server.py— the FastMCP binding. A small handler per tool delegates toservice, and is the error boundary (facadeUnknownRuleset/UnknownRuleCodeand tier-1ToolXmlSyntaxError→ a clean MCP tool error).
Tools
| MCP tool | What it does |
|---|---|
format_tool |
Apply a ruleset's fixable rules then format; returns canonical XML + advisory notes. |
upgrade_tool |
Profile-upgrade then format; returns upgraded XML, steps applied, the behavior-preserving verdict, and notes. |
check_tool |
Report-only detect over the selected rules; returns the findings (each flagged fixable vs advisory). |
list_rulesets |
The baked-in rulesets (name / codes / is_default / description). |
list_rules |
The baked-in rules (code / summary / family / fixable / rulesets). |
Agents supply content and receive content — the server never writes to disk.
Run
uv run galaxy-tool-refactor-mcp # serves over stdio
Point an MCP client (e.g. a coding agent) at that command. list_rulesets /
list_rules let the agent discover the available rulesets and rule codes at
runtime instead of hardcoding them.
See docs/decisions.md D1 for the design, and
docs/vision.md for the longer-horizon agent-authored-rules
direction (Goal 2, still future).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file galaxy_tool_refactor_mcp-0.2.0.tar.gz.
File metadata
- Download URL: galaxy_tool_refactor_mcp-0.2.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d98fcce1bc489946bf28ba6ae628cf2c1fd8635e144b8bdaac4116450bc60726
|
|
| MD5 |
97e3c2510c98702d405de66021baff79
|
|
| BLAKE2b-256 |
a2cee11ca7baeb9cb8f92d94fd2108d9a1509015f323892248528d8092ac84d0
|
Provenance
The following attestation bundles were made for galaxy_tool_refactor_mcp-0.2.0.tar.gz:
Publisher:
release.yml on richard-burhans/galaxy-tool-refactor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
galaxy_tool_refactor_mcp-0.2.0.tar.gz -
Subject digest:
d98fcce1bc489946bf28ba6ae628cf2c1fd8635e144b8bdaac4116450bc60726 - Sigstore transparency entry: 1792730925
- Sigstore integration time:
-
Permalink:
richard-burhans/galaxy-tool-refactor@524c6b6ee8dba405f5d3b1d192d120d996140a65 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/richard-burhans
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@524c6b6ee8dba405f5d3b1d192d120d996140a65 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file galaxy_tool_refactor_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: galaxy_tool_refactor_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02f1a9a0a0bb82439532486ee530335db47eacf0918f4ea63c3dfeaf58ee2eb9
|
|
| MD5 |
a9ab129c0f5457c8d73881ecdfc60fdc
|
|
| BLAKE2b-256 |
19bbbff964074159cee4d8442d988de9640938987f0b3aa95ee4bc8a7426a675
|
Provenance
The following attestation bundles were made for galaxy_tool_refactor_mcp-0.2.0-py3-none-any.whl:
Publisher:
release.yml on richard-burhans/galaxy-tool-refactor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
galaxy_tool_refactor_mcp-0.2.0-py3-none-any.whl -
Subject digest:
02f1a9a0a0bb82439532486ee530335db47eacf0918f4ea63c3dfeaf58ee2eb9 - Sigstore transparency entry: 1792731094
- Sigstore integration time:
-
Permalink:
richard-burhans/galaxy-tool-refactor@524c6b6ee8dba405f5d3b1d192d120d996140a65 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/richard-burhans
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@524c6b6ee8dba405f5d3b1d192d120d996140a65 -
Trigger Event:
workflow_dispatch
-
Statement type: