Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/oci-api-mcp-server/oracle/oci_api_mcp_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ def get_oci_command_help(command: str) -> str:
1. compute instance list
2. compute instance
3. compute

There are some services that have different command structure. In such cases,
you may need to experiment with the level of specificity to get the help you
need.
Listing resources in Autonomous Recovery Service is as below:
oci recovery protected-database-collection list-protected-databases
Copy link
Member

Choose a reason for hiding this comment

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

nice addition. In your testing, can this be generalized to:

        1. compute subcommand subcommand ...
        2. compute subcommand
        3. compute

Or something similar? Asking because I think you identified an issue that will affect other subcommands as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

@gebhardtr Thanks for the comments. I have addressed the comment and generalised the cli structure. Please take a look at .

oci recovery protection-policy-collection list-protection-policies
"""
logger.info(f"get_oci_command_help called with command: {command}")
env_copy = os.environ.copy()
Expand Down