Connecting MCP Clients
Agentic AI for Oracle AI Database Professional · Lesson 18 of 20 · 2:11:06
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Agentic AI for Oracle AI Database Professional exam (1Z0-1159-26). In this lesson: the server address, OAuth 2.1 with dynamic or static registration, bearer tokens, clients like Claude Desktop, Cline in Visual Studio Code, and OCI Generative AI Agents, and troubleshooting. Follows Ambergate Appliances, a fictional appliance maker. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
The first try fails
Ambergate's MCP server is on, and now engineers must connect a desktop chat app, a code editor, and an OCI agent to it. Their very first attempt returns a not found error. This lesson covers the server address, authentication, the clients, and troubleshooting.
The server address
Each database has its own MCP address, on the data access host of its region, with a path that ends with the OCID of the database. For a database with a private endpoint, the host name prefix of that endpoint replaces data access. The server uses the streamable HTTP transport, with server sent events. A connected client lists the tools that the signed in user may use, and calls them.
Authentication
Clients authenticate with OAuth 2.1, in one of three ways. With dynamic registration, the ADMIN user obtains a registration address for the client, and each database user then signs in through a browser. With static registration, only ADMIN can register a client, with its redirect addresses and a secret lifetime, and gets back a client ID and a client secret. Or a client can use a bearer token, requested from the token endpoint with a database user name and password, and valid for one hour. The token goes in the authorization header of each request.
The clients
Many MCP clients can connect to the server. A desktop chat app like Claude Desktop can reach this remote server through the mcp remote package, run with N P X. Visual Studio Code with the Cline extension uses the streamable HTTP type, the server address, and an authorization header. And OCI Generative AI Agents can use the server's tools too.
Troubleshooting
When something goes wrong, the error usually points to the cause. A not found error usually means the client uses the authentication address instead of the MCP address, or the server is not enabled. If the client connects but lists no tools, no tool was created, or the user lacks privileges on the tools. An unauthorized error after a working connection usually means the token expired, so generate a new one. And an empty result from a tool often comes from filters, or from a VPD policy.
Recap
Let's recap. Each database has its own MCP address, ending with its OCID, over streamable HTTP. OAuth 2.1 offers dynamic registration, static registration by ADMIN, or a bearer token valid for one hour. Claude Desktop uses the mcp remote package, Cline uses the streamable HTTP type, and OCI Generative AI Agents can use the tools too. Not found means a wrong address or a disabled server, and no tools means none created or no privileges. And unauthorized after working means a new token, while empty results point to filters or VPD.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
An engineer writes a script to test the MCP server quickly, with no browser available for signing in. Which way to authenticate fits?
- Dynamic registration and a browser sign-in
- The ADMIN password, written in the address
- A bearer token from the token endpoint
- A free-form tag set on the database
Show the answer
A bearer token from the token endpoint
A bearer token comes straight from the token endpoint, with a user name and password, and needs no browser. “Dynamic registration and a browser sign-in” relies on a browser sign in, which the script cannot do. “The ADMIN password, written in the address” puts a secret in an address, which is never how the server authenticates. And “A free-form tag set on the database” is an older way to enable the server, not a way to sign in.
A developer adds Ambergate’s MCP server to the Cline extension in Visual Studio Code. Which transport type should the configuration use?
- stdio, with a local command to run
- websocket, with a local port number
- grpc, with a service name
- streamableHttp, with the server URL
Show the answer
streamableHttp, with the server URL
The configuration uses the streamable HTTP type, with the server address and an authorization header. “stdio, with a local command to run” starts a local program, but this server is remote and managed. “websocket, with a local port number” is not the transport the server uses. And “grpc, with a service name” is not an MCP transport at all.
After working fine all morning, an engineer’s script starts getting 401 Unauthorized errors from the MCP server. What should the engineer do?
- Request a new bearer token
- Enable the MCP server once again
- Create every tool once again
- Change the database OCID in the URL
Show the answer
Request a new bearer token
A bearer token is valid for one hour, so an unauthorized error after a working session calls for a new token. “Enable the MCP server once again” is wrong, since the server was clearly working, and a disabled server gives a different error. “Create every tool once again” is wrong, because missing tools show up as an empty tool list. And “Change the database OCID in the URL” is wrong, since the address did not change between the calls.