Skip to content

Comments

feat(dnf): add read-only dnf tools and list output limits#3

Merged
Albe83 merged 3 commits intomainfrom
feat/dnf-tools
Feb 7, 2026
Merged

feat(dnf): add read-only dnf tools and list output limits#3
Albe83 merged 3 commits intomainfrom
feat/dnf-tools

Conversation

@Albe83
Copy link
Owner

@Albe83 Albe83 commented Feb 7, 2026

Summary

Adds read-only DNF tooling to the Linux MCP Server, enabling system diagnostics for RPM-based (RH-like) systems with DNF v4+. Includes list/detail workflows, repositories, groups and modules, plus safe output limiting for large datasets.

Changes

  • Add DNF tools: list installed/available packages, package info, repo list/info, provides, groups, modules
  • Enforce read-only execution and input validation
  • Add list output controls (limit, offset, no_limit) with safe defaults and truncation note
  • Update usage documentation
  • Add comprehensive tests for all new tool paths and limits

Tests

  • make verify

Notes

  • Read-only by design (readOnlyHint=True)
  • Output is kept raw to avoid early normalization
  • Works on RH-like systems with DNF >= 4

@Albe83
Copy link
Owner Author

Albe83 commented Feb 7, 2026

Upstream PR: rhel-lightspeed#264

@Albe83 Albe83 merged commit 0ca7f7e into main Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant