- MCPを話すOracle Databaseを作成する - Autonomous AI Database編
- Role based JWT profileで保護したORDS REST APIにアクセスする - Microsoft Entra ID編
[mcp_servers.connector_for_oracle_database]
url = "https://OpenRestyが動作しているホスト名/ords/apexdev/sampleserver/mcp"
bearer_token_env_var = "ORACLE_MCP_TOKEN"
[mcp_servers.connector_for_oracle_database]
url = "https://OpenRestyが動作しているホスト名/ords/apexdev/sampleserver/mcp"
# --- OAuth callback ---
mcp_oauth_callback_port = 8787
mcp_oauth_callback_url = "http://localhost:8787/callback"
~ % codex mcp login connector_for_oracle_database
Error: Registration failed: Dynamic registration failed: Registration failed: Dynamic client registration not supported
~ %
az login --tenant "テナントID" --scope "アプリORDS MCPで公開しているスコープ"
~ % az login --tenant "********-****-****-****-************" --scope "api://********-****-****-****-************/mcp:connect"
A web browser has been opened at https://login.microsoftonline.com/********-****-****-****-************/oauth2/v2.0/authorize. Please continue the login in the web browser. If no web browser is available or if the web browser fails to open, use device code flow with `az login --use-device-code`.
Retrieving subscriptions for the selection...
[Tenant and subscription selection]
No Subscription name Subscription ID Tenant
----- -------------------- ------------------------------------ ------------------------------------
[1] * Azure subscription 1 ********-****-****-****-************ ********-****-****-****-************
The default is marked with an *; the default tenant is '********-****-****-****-************' and subscription is 'Azure subscription 1' (********-****-****-****-************).
Select a subscription and tenant (Type a number or Enter for no changes):
Tenant: ********-****-****-****-************
Subscription: Azure subscription 1 (********-****-****-****-************)
[Announcements]
With the new Azure CLI login experience, you can select the subscription you want to use more easily. Learn more about it and its configuration at https://go.microsoft.com/fwlink/?linkid=2271236
If you encounter any problem, please open an issue at https://aka.ms/azclibug
[Warning] The login output has been updated. Please be aware that it no longer displays the full list of available subscriptions by default.
ynakakoshi@Ns-Macbook ~ %
export ORACLE_MCP_TOKEN=$(az account get-access-token \
--scope "アプリORDS MCPで公開しているスコープ" \
--query accessToken -o tsv)
~ % export ORACLE_MCP_TOKEN=$(az account get-access-token \
--scope "api://*********-****-****-****-********/mcp:connect" \
--query accessToken -o tsv)
~ % echo $ORACLE_MCP_TOKEN
eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlUxc1g4W
[中略]
7jbOqbhJSQ1Dk-CoHPF_yJPJGO2OPJEUjhIBehPC-abRHHVPXeiRC
ZuDTRAvZzVrSAW97jSQ0PFmMQ
~ %
open -a Codex
Codexが起動します。
新しいプロジェクトを追加して、作業を進めます。
「作成されたプラグインをインストールして」

















