feat(inventory): add privacy controls for config discovery (#87)#279
Merged
hello-args merged 8 commits intoJun 17, 2026
Merged
Conversation
ca3bf1c to
d12210b
Compare
4 tasks
This was referenced Jun 17, 2026
hello-args
added a commit
to sachinML/MCPAudit
that referenced
this pull request
Jun 17, 2026
…dit#279) - Fix --redact-paths flag, JSON redaction, and InventoryReport kwargs - Add paths-only flag conflicts, config_path through scan-all - Harden redact_home; add CLI and unit tests - Update SECURITY.md, inventory.md, and cli.md
…dit#279) - Fix --redact-paths flag, JSON redaction, and InventoryReport kwargs - Add paths-only flag conflicts, config_path through scan-all - Harden redact_home; add CLI and unit tests - Update SECURITY.md, inventory.md, and cli.md Co-authored-by: Sachin Kumar Jha <sjha979@gmail.com>
ea5c883 to
d1b9e62
Compare
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.
Fixes #87
Summary
--redact-paths— replaces home directory with~in terminal output and JSON reports--paths-only— lists discovered config file paths without parsing server details--config-path— scopes inventory to a single explicit file instead of auto-discoverySECURITY.mdChanges
src/mcts/inventory/discoverers.py— addedredact_home()helpersrc/mcts/inventory/runner.py—run_inventory()accepts optionalconfig_pathsrc/mcts/cli/main.py— three new flags onmcts inventorySECURITY.md— new "Inventory Privacy" sectiondocs/platform/cli.md— documented new flags in options tableCHANGELOG.md— added entrytests/test_inventory.py— 4 new testsTest plan
test_redact_home— verifies home path is replaced with~test_paths_only_returns_tuples— verifies--paths-onlydiscovery outputtest_config_path_scopes_to_single_file— verifies single-file scopingtest_config_path_missing_file_returns_empty— verifies graceful handling of missing file