-
Notifications
You must be signed in to change notification settings - Fork 64
feat(command): Add info command and simplify search output #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(command): Add info command and simplify search output #73
Conversation
There was a problem hiding this 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 implements a new "info" command for displaying comprehensive details about MCP servers and updates the search command to use a table view instead of a detailed view. Key changes include:
- Updating test expectations in tests for search output string changes (e.g., "Server One" → "server1").
- Adding tests and implementation for the new "info" command with comprehensive output.
- Refactoring the search command to replace the "--detailed" flag with a "--table" option and adding a simple servers list display.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
tests/test_search.py | Updated expected output strings and renaming tests to use table view |
tests/test_info.py | New tests for the info command functionality |
src/mcpm/utils/display.py | Added print_simple_servers_list function for simplified output |
src/mcpm/commands/search.py | Replaced detailed view with table and simple list views in search command |
src/mcpm/commands/info.py | Added implementation for the info command and its detailed output |
src/mcpm/cli.py | Registered the info command in the CLI |
Comments suppressed due to low confidence (2)
tests/test_search.py:38
- [nitpick] Ensure that the updated server naming convention ('server1') is consistently applied across the test outputs and documentation.
assert "server1" in result.output
tests/test_search.py:67
- [nitpick] Confirm that changing the expected output from 'GitHub Server' to 'github-server' aligns with the intended naming scheme across the project.
assert "github-server" in result.output
Semantic Version CheckPlease ensure your commits follow the Conventional Commits format:
|
Semantic Version CheckPlease ensure your commits follow the Conventional Commits format:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# [1.2.0](v1.1.2...v1.2.0) (2025-04-17) ### Features * **command:** Add info command and simplify search output ([#73](#73)) ([27a4443](27a4443))
No description provided.