
Mcp Oci
io.github.dockndevai由 GitHub 帳號 dockndevai 發布v0.1.4更新於 Oct 24, 2026
Oracle Cloud discovery + Terraform generation for AI agents — read-only, secret-safe.
概覽
針對 Oracle Cloud Infrastructure 的 MCP 伺服器,讓助理探索線上 OCI 資源、梳理相依關係並產生 Terraform,回傳內容皆經去識別化處理。
- 可以做什麼
- 列出區間(compartment)與區域、搜尋資源、列出某個區間內的所有資源,並取得單一資源的詳細資訊。為 VCN、子網路、執行個體、儲存桶、區間等已知類型產生 Terraform HCL,也可產生帶 provider 變數的整個區間模組。建立含節點與邊的相依圖,並提供建議的建立順序。所有回傳給模型的資料在輸出前都會先去識別化。
- 適用情境
- 適合讓助理探查既有的 OCI 租用戶、回答某個區間內有哪些資源的問題,或在不手工重建基礎設施知識的情況下產出起步用的 Terraform 與建立順序。
- 執行需求
- 透過 npx(Node.js)以 stdio 程序在本機執行。需要位於 ~/.oci/config 的標準 OCI 設定檔或執行個體主體(instance principals),並以 OCI_PROFILE 選擇設定檔。需要可存取 OCI API 的網路。可選變數 OCI_MODE、OCI_COMPARTMENT_ALLOWLIST、OCI_REGION_ALLOWLIST、OCI_ALLOW_APPLY、OCI_DRY_RUN 與 OCI_AUDIT_LOG 可調整行為。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Oci,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-oci
A Model Context Protocol server for Oracle Cloud Infrastructure (OCI). It gives an MCP-capable client (Claude Desktop, Claude Code, Cursor, Copilot, …) the ability to discover live OCI resources, map how they relate, and generate reproducible Terraform — with behaviour controlled entirely by flags.
Think of it as a Playwright-MCP for your cloud: instead of rebuilding infrastructure knowledge by hand, the model can ask "show all VCNs in the prod compartment" and "generate Terraform for this compartment" and get structured, secret-free answers.
Features
- Live discovery — compartments, regions, and any resource via OCI Resource Search.
- Terraform generation — faithful HCL for known types (VCN, subnet, instance, bucket, compartment) and annotated skeletons for the rest; whole-compartment modules with provider variables.
- Dependency graph — nodes/edges plus a suggested provisioning order (dependencies first).
- Secrets never reach the model — every payload is redacted before return.
- Security flags — access modes, compartment/region allowlists, provisioning gate, dry-run, and JSON audit logging (see below).
- Standard auth — OCI config file (
~/.oci/config) or instance principals. No credentials stored by the server.
Security model
Tools
Discovery (read): list_compartments, list_regions, search_resources, list_compartment_resources, get_resource
Terraform (read): generate_terraform, generate_compartment_terraform, build_dependency_graph
Quickstart — add to your agent
Published on npm as @dockndevai/mcp-oci. No clone or build needed — your MCP client runs it on demand with npx. Start in read-only mode; see .env.example for every variable and docs/CLIENTS.md for the full per-client guide.
Claude Code (CLI)
Claude Desktop · Cursor · Windsurf — same block in claude_desktop_config.json, .cursor/mcp.json, or ~/.codeium/windsurf/mcp_config.json:
OpenAI Codex CLI — in ~/.codex/config.toml:
VS Code (GitHub Copilot, Agent mode) — in .vscode/mcp.json:
Configure
Point it at a standard OCI config profile. For safety, use an IAM user/policy with
read-only (inspect/read) permissions on the compartments you want the agent to see.
Example prompts
- "List all compartments, then show every resource in the
prodcompartment." - "Generate Terraform for VCN
ocid1.vcn.oc1..…." - "Build a dependency graph for compartment
…and tell me the provisioning order."
Run from source (development)
Prefer the published package above. To run from a clone:
Develop
Roadmap
terraform plan/applyexecution behindread-write/admin+OCI_ALLOW_APPLY.- More resource-type mappers (load balancers, databases, DRGs, IAM policies).
- Cross-environment drift comparison.
Publishing
This server ships a server.json for the official MCP registry and an mcpName for npm ownership validation. See PUBLISHING.md for publishing to npm and listing on the MCP registry, Smithery, Glama, Cursor, and PulseMCP.
License
MIT
來源:README.md,提交 324c9e5
工具
0版本歷史
1- v0.1.4最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
