Skip to content

Conversation

alecron
Copy link
Collaborator

@alecron alecron commented Aug 21, 2025

No description provided.

@tembleking tembleking requested a review from Copilot August 21, 2025 12:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the application to remove direct config file access and introduces an AppConfig class for centralized configuration management. The changes improve code organization by:

  • Replacing dictionary-based config access with a type-safe AppConfig class
  • Centralizing logging configuration through the config class
  • Injecting dependencies through constructors instead of global variables

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
utils/app_config.py Introduces AppConfig class to encapsulate configuration access
utils/sysdig/client_config.py Updates logging configuration to use AppConfig
utils/query_helpers.py Adds robust response parsing with error handling
utils/middleware/auth.py Refactors to use dependency injection with AppConfig
utils/mcp_server.py Updates to use AppConfig methods and removes tool filtering
tools/*/tool.py All tool classes now accept AppConfig in constructor
main.py Reorders initialization and uses AppConfig for logging

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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