mcp-oci

v0.1.4
io.github.dockndevai/mcp-oci Checked 2 days ago Published 2 months ago

Oracle 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.

ParameterTypeDescription
rootCompartmentIdstringOCID 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.

ParameterTypeDescription
query *stringStructured query or free-text search string
freeTextbooleanTreat 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).

ParameterTypeDescription
compartmentId *stringCompartment 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.

ParameterTypeDescription
ocid *stringThe resource OCID
resourceType *stringOCI resource type, e.g. Vcn, Subnet, Instance
compartmentIdstringCompartment 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.

ParameterTypeDescription
ocid *stringThe resource OCID
resourceType *stringOCI resource type, e.g. Vcn, Subnet, Instance
compartmentIdstringCompartment 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.

ParameterTypeDescription
compartmentId *stringCompartment 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).

ParameterTypeDescription
compartmentId *stringCompartment OCID