Skip to content

v0.4.0: Comprehensive Context Window Optimizations

Choose a tag to compare

@rorymcmahon rorymcmahon released this 03 Oct 01:59
· 16 commits to main since this release
ea0908d

🚀 Major Release: Context Window Optimizations

This release transforms the Foreman MCP Server from a context-hungry tool into an extremely efficient one, while adding comprehensive OS and Content management capabilities.

🆕 New Features

OS Management Tools

  • Operating Systems: list_operatingsystems() and get_operatingsystem() - 67 OS entries
  • Architectures: list_architectures() and get_architecture() - 6 architectures
  • Installation Media: list_media() and get_media() - 22 media sources

Content Management Tools (Katello)

  • Content Views: list_content_views() and get_content_view() - 102 content views
  • Repositories: list_repositories() and get_repository() - 258 repositories
  • Lifecycle Environments: list_lifecycle_environments() and get_lifecycle_environment() - Organization-scoped

Context Window Optimizations

  • Intelligent Field Filtering: Essential fields by default, full flexibility with include_fields parameter
  • Smart Page Defaults: Optimized based on data volume (5-15 items vs previous 20-50)
  • Context Guidance: Enhanced docstrings with optimization warnings and filtering suggestions

📊 Performance Improvements

  • Context usage reduced from overflow to 35% - 65% improvement!
  • Field filtering provides massive size reductions:
    • Hosts: 89→10 fields (88.3% reduction)
    • Repositories: 31→8 fields (65.2% reduction)
    • Hostgroups: 52→7 fields (86.9% reduction)
    • Subnets: 41→8 fields (83.7% reduction)

🔧 Technical Excellence

  • 18 total MCP tools now available across all categories
  • Perfect 10.00/10 pylint score maintained throughout development
  • Zero breaking changes for existing functionality
  • Comprehensive testing against live Foreman/Katello instance

🎯 Ready for Production

AI agents can now explore extensive infrastructure without hitting context limits, with 65% headroom for complex multi-tool workflows.

Installation

pip install foreman-mcp-server==0.4.0

See CHANGELOG.md for complete details.