Connect to the MCP Server Using a Personal Access Token

Generate a Personal Access Token

  1. Click the Profile icon and select <user email id>.

  2. Select the Tokens and keys tab.
  3. In the My access tokens section, for Invokes other APIs, click Download Token.

    This image shows the Tokens and Keys tab and where a user must click to download the token.

  4. In the Generate personal access token page:

    1. Select the MCP Server for which you want to generate a token.
    2. In Token expires in mins, select the token expiry duration in minutes (For example, 10080 minutes is equivalent to one week).
      Note

      The Access Token Expiration setting for the MCP Server is superseded by the duration that is specified for the MCP Server Token Expires in mins setting. Go to the MCP Server Details page to see the Access Token Expiration setting. See Connecting to an MCP Server to know where to find the Access Token Expiration setting.
    3. Click Download Token.

Configure the MCP Client to Connect to the MCP Server

  1. In the Cline extension for Visual Studio Code, select the MCP Servers icon, then select the Remote Servers tab.
  2. Enter a name for the Server and the Server URL. The Server URL is available on the MCP Server's Details page as follows:
    https://example.oraclecloud.com/../actions/invoke
  3. In Transport Type, select Streamable HTTP.
  4. Click Add Server.

    This image shows the Server Name and Server URL fields in the Cline extension.

    The Configure tab is selected and the server is displayed with an error.

    This image shows the Configure MCP Servers option.

  5. Click Configure MCP Servers.

    The contents of the cline_mcp_setting json file are displayed in the right pane.

    Update the file as follows:

    {
      "mcpServers": {
        "dbtools-mcp-server": {
          "disabled": false,
          "timeout": 60,
          "type": "streamableHttp",
          "url": "https://mcp.../x.xxxxx/actions/invoke",
          "headers": {
            "Authorization": "Bearer {Add downloaded token}"
          }
        }
      }
    }
  6. Save the file.

    The error message is resolved. This is indicated by a green indicator that appears in the same row as the server name.

    This image shows the green indicator that appears at the end of the row.

    Expand the server name to see the available Tools, Resources and Prompts.

    This image shows the screen where the available tools, resources and prompts are displayed.