You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement repository detection feature in search-servers command (#30)
* Implement repository detection feature in search-servers command
- Added support for automatic detection of npm and PyPI packages in the search-servers command.
- Enhanced command description and usage examples to reflect new functionality.
- Introduced configuration option `check_server_repo` to enable/disable repository detection.
- Updated SearchServers function to accept a limit parameter and a guesser for repository info.
- Added comprehensive documentation for the repository detection feature, including configuration and usage examples.
* Refactor repository guessing to support only GitHub URLs
- Updated GuessRepositoryType to handle only GitHub URLs, removing PyPI support.
- Simplified package name extraction for npm packages in the format @author/repo.
- Enhanced tests to validate new GitHub URL handling and npm package detection.
- Removed unused PyPI-related code and tests to streamline functionality.
* Refactor test setup to use temporary database files for compatibility
- Updated test setup functions in guesser_test.go and search_test.go to create temporary database files instead of using in-memory databases, ensuring compatibility across platforms.
* Implement batch processing for repository guessing in mcpproxy
- Introduced batch processing for repository guessing in the GuessRepositoryTypesBatch method, allowing concurrent checks of multiple GitHub URLs.
- Enhanced performance by implementing connection pooling and limiting concurrent requests to improve response times.
- Updated SearchServers to utilize batch processing for repository guessing, applying it only to filtered results.
- Refactored related parsing functions to support new batch processing without impacting existing functionality.
- Added comprehensive tests to validate batch processing behavior and performance improvements.
* Enhance logging configuration and command handling in mcpproxy
- Updated default logging settings to disable file logging and enable console output.
- Modified command logger setup to use appropriate log levels based on command type.
- Improved logging in search-servers command to provide detailed information on server searches and registry loading.
- Adjusted autostart configurations to include logging options for better traceability.
* Enhance logging in GuessRepositoryTypesBatch for npm package results
- Added detailed logging for npm package detection results, including package name, version, and installation command.
- Improved error handling logging for failed repository type guesses, ensuring clarity on the URL and error details.
- Streamlined logging for cases with no npm package information.
* Refactor logging and error handling in mcpproxy and guesser
- Introduced a default log level constant in mcpproxy for improved logging consistency.
- Updated listAllRegistries function to remove error return, simplifying its signature.
- Enhanced guessRepositoryTypeBatch to eliminate error handling, returning only results.
- Streamlined server iteration in search.go for better readability.
* Enhance search_servers documentation and update server entry structure
- Updated documentation to include repository information and separate MCP endpoints from source code repositories.
- Added `source_code_url` field to `ServerEntry` struct for better clarity on source code links.
- Modified tests to validate the new `source_code_url` field and ensure correct parsing of server entries.
* Enhance OAuth configuration handling and add base URL parsing
- Updated CreateOAuthConfig to construct the OAuth server metadata URL from the server URL.
- Introduced parseBaseURL function to extract the base URL from a full URL, handling cases without a scheme.
- Improved logging for OAuth server metadata URL setting and error handling for URL parsing failures.
0 commit comments