𝗜 𝗖𝗼𝗻𝗻𝗲𝗰𝘁𝗲𝗱 𝗢𝗿𝗮𝗰𝗹𝗲'𝘀 𝗠𝗮𝗻𝗮𝗴𝗲𝗱 𝗠𝗖𝗣 𝗦𝗲𝗿𝘃𝗲𝗿 𝘁𝗼 𝗔𝗜 𝗖𝗵𝗮𝘁 𝗖𝗹𝗶𝗲𝗻𝘁𝘀

AI assistants now do more than talk. They use the Model Context Protocol (MCP) to call external tools.

I tested Oracle's managed MCP server in OCI. My goal was to create a read-only health check for an Oracle E-Business Suite database. I wanted to ask an AI: "Is the database up?" or "Which managers are down?"

It worked. I have an AI assistant pulling live database health data. Here is what I learned during the process.

The Setup

Key Lessons

  1. Networking and Security The MCP service runs in Oracle's tenancy. It cannot reach your private database alone. You must attach a Private Endpoint to your VCN. To stay safe, connect to a read-only database user. This prevents any accidental writes.

  2. Watch the URL Every OCI MCP server URL includes a date segment like /20250830/. If you use an old date, you get an HTTP 404 error. This error looks like an auth problem, but it is just a bad path. Copy the exact URL from your console.

  3. The OAuth Problem Many web-based chat UIs fail with this server. They try to discover OAuth settings via the server. Oracle returns a 404 for unauthenticated requests. This stops the login flow. Also, headless web UIs lack a browser for interactive login.

  4. Use User Tokens, Not App Tokens I tried using a client-credentials token to skip the browser. It authenticated, but I lacked permissions. Oracle roles attach to users, not apps. You must use an authorization_code (user) token. The user holds the role, so the token works.

  5. Use Desktop Clients Desktop clients like Claude Desktop or VS Code work well because they have built-in browsers for login. Use mcp-remote with static OAuth metadata to bypass the 404 discovery issue.

Quick Tips

Managed MCP mit KI-Agenten ist nützlich für kontrollierte Datenbankaufgaben. Passen Sie Ihren Client an Ihr Deployment an und verwenden Sie stets Read-only-Benutzer.

Quelle: https://dev.to/rkondoju/i-connected-oracles-managed-mcp-server-to-ai-chat-clients-heres-what-actually-worked-265

Optionale Lern-Community: https://t.me/GyaanSetuAi