Skip to content

Commit f1a7fb8

Browse files
authored
Merge pull request #3 from shrug-labs/irfan/minor-fixes
Added README for scripts directory and oci-api-mcp-server
2 parents da2fa6a + 93da613 commit f1a7fb8

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

scripts/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# OCI API Deny List Generator
2+
3+
## Overview
4+
5+
The `oci-api-denylist-generator.py` script generates a deny list of OCI CLI commands that can modify the cloud system's configuration. It creates a list of commands to be denied execution by filtering out commands containing actions like "delete", "terminate", "put", "update", "replace", "remove", and "patch".
6+
7+
## Usage
8+
9+
To generate an updated version of the deny list, follow these steps:
10+
11+
1. Ensure you have the OCI CLI installed and configured on your system.
12+
2. Navigate to the `scripts` directory.
13+
3. Run the `oci-api-denylist-generator.py` script using Python:
14+
```bash
15+
python oci-api-denylist-generator.py
16+
```
17+
4. The script will generate a new `denylist_<version>` file and update the `denylist` file with the latest deny list based on the current OCI CLI version.
18+
5. To use the newly generated deny list, copy the denylist to the [oci-api-mcp-server denylist](../src/oci-api-mcp-server/oracle/oci_api_mcp_server/denylist) and restart the `oci-api-mcp-server`.
19+
20+
## Notes
21+
22+
- The script automatically backs up the existing deny list file if it already exists for the current OCI CLI version.
23+
- The deny list includes commands that can potentially change the configuration of the cloud system.
24+
- The generated `denylist` file is used by the AI client to determine which commands to deny execution for.
25+
26+
----
27+
<small>Copyright (c) 2025, Oracle and/or its affiliates. Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.</small>

src/oci-api-mcp-server/README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
1-
# OCI CLI MCP Server
1+
# OCI API MCP Server
2+
3+
## Overview
4+
This server provides tools to run OCI CLI commands to interact with OCI services.
5+
It includes resources and tools to help with OCI command execution and provide helpful information.
6+
7+
## Running the server
8+
Please follow the guidelines under [Quickstart](../../README.md#quick-start)
9+
## Tools and Resources
10+
11+
### get_oci_command_help
12+
Returns helpful instructions for running an OCI CLI command.
13+
Only provide the command after 'oci', do not include the string 'oci' in your command.
14+
15+
### run_oci_command
16+
Runs an OCI CLI command.
17+
This tool allows you to run OCI CLI commands on the user's behalf.
18+
Only provide the command after 'oci', do not include the string 'oci' in your command.
19+
20+
### get_oci_commands (Resource)
21+
Returns helpful information on various OCI services and related commands.
22+
23+
## Tests
24+
The tests for this server are located in `oracle/oci_api_mcp_server/tests/test_oci_api_tools.py`.
25+
They cover various scenarios for the tools provided by the server, including success and failure cases.
26+
27+
## Implementation Details
28+
The server is implemented in `oracle/oci_api_mcp_server/server.py`.
29+
It uses the FastMCP framework to provide the tools and resources.
30+
31+
<span style="font-size: small;">Copyright (c) 2025, Oracle and/or its affiliates.
32+
Licensed under the Universal Permissive License v1.0 as shown at
33+
https://oss.oracle.com/licenses/upl.</span>

0 commit comments

Comments
 (0)