feat: add MCP server for artifact cleanup#17
Open
NotYash1066 wants to merge 1 commit into
Open
Conversation
Expose irona over stdio MCP while reusing the existing scanner and deleter paths. Document PATH-based configuration so MCP clients can call irona portably instead of hardcoding a user-local binary. Constraint: MCP clients launch servers by command and args, so the binary must support a non-TUI stdio mode. Rejected: Separate irona-mcp crate | unnecessary split for two tools that reuse existing core behavior. Confidence: high Scope-risk: moderate Directive: Keep MCP cleanup destructive only through explicit clean_artifacts path arguments; do not make scan_artifacts delete anything. Tested: cargo test; pre-commit fmt and clippy hook; installed binary smoke-tested with initialize and tools/list; Codex MCP command verified after local config wiring. Not-tested: End-to-end startup from a freshly restarted Codex process.
This was referenced Jul 26, 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
irona --mcpstdio Model Context Protocol serverscan_artifactsandclean_artifactstools backed by the existing scanner/deleter logicPATHso configs can usecommand = "irona"instead of a local absolute binary pathCloses #16
Verification
cargo testpassed: 54 testsfmt,clippy,buildinitializeandtools/listscan_artifacts/clean_artifactswork end to endNotes
This intentionally keeps cleanup destructive only through explicit
clean_artifactspath arguments;scan_artifactsis read-only.