mcp-oci
v0.1.4Oracle Cloud discovery + Terraform generation for AI agents — read-only, secret-safe.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_compartments List compartments
List compartments in the tenancy (recursively). Compartments outside the allowlist are filtered out.
| Parameter | Type | Description |
|---|---|---|
rootCompartmentId | string | OCID to list under (defaults to the tenancy root) |
list_regions List subscribed regions
List the regions this tenancy is subscribed to.
search_resources Search resources
Search tenancy resources using OCI Resource Search. Provide either a structured query (e.g. "query instance resources where displayName =~ 'prod'") or free text.
| Parameter | Type | Description |
|---|---|---|
query * | string | Structured query or free-text search string |
freeText | boolean | Treat query as free text instead of a structured query |
list_compartment_resources List all resources in a compartment
Enumerate every resource in a compartment (via Resource Search).
| Parameter | Type | Description |
|---|---|---|
compartmentId * | string | Compartment OCID |
get_resource Get resource details
Fetch detailed attributes for a resource by type and OCID. Known types (Vcn, Subnet, Instance) return full attributes; others return the identifier. Secrets are redacted.
| Parameter | Type | Description |
|---|---|---|
ocid * | string | The resource OCID |
resourceType * | string | OCI resource type, e.g. Vcn, Subnet, Instance |
compartmentId | string | Compartment OCID (for scoping) |
generate_terraform Generate Terraform for a resource
Generate a Terraform (HCL) resource block for a single OCI resource by type and OCID. Fetches the resource's attributes and maps them to the matching oci_* resource.
| Parameter | Type | Description |
|---|---|---|
ocid * | string | The resource OCID |
resourceType * | string | OCI resource type, e.g. Vcn, Subnet, Instance |
compartmentId | string | Compartment OCID (for scoping) |
generate_compartment_terraform Generate Terraform for a whole compartment
Discover every resource in a compartment and emit a Terraform module (provider variables + one block per resource) to reproduce it. Unrecognised types become annotated skeletons.
| Parameter | Type | Description |
|---|---|---|
compartmentId * | string | Compartment OCID |
build_dependency_graph Build a resource dependency graph
Discover a compartment's resources and return a node/edge dependency graph plus a suggested provisioning order (dependencies first).
| Parameter | Type | Description |
|---|---|---|
compartmentId * | string | Compartment OCID |