OpenAPI

BUILD

Connect ChatGPT or Codex

Connect an assistant to your Lucion ID, read your basic profile with separate consent, and create a read-only API key only when you ask.

MCP server address — copy exactly
https://identity.lucionglobal.com/mcp

This is a custom remote MCP connection, not an app published in the ChatGPT app directory. ChatGPT plan and workspace rules determine whether custom apps and write tools are available.

StepWhat happens
1. ConnectChatGPT or Codex opens a browser sign-in with Lucion Identity.
2. ApproveYou review each requested permission and approve the assistant's connection. Profile read and API-key creation are independent permissions.
3. AskWith identity.profile.read, the assistant can read the four basic profile fields. With identity.api_keys.create, it can create an API key only when you request it and specify its read-only permissions and expiry.
4. Store safelyThe one-time key appears in the assistant's result and may remain in chat history. Profile reads do not create credentials. Copy it to a trusted secret manager.

Connect ChatGPT

  1. In ChatGPT, open Settings and enable Developer mode or custom apps if your plan and workspace administrator allow them. Open the custom-app or connector setup screen.
  2. Choose to add a remote MCP server, paste exactly https://identity.lucionglobal.com/mcp as the server address, and choose OAuth sign-in. Do not add a final period.
  3. Let ChatGPT inspect the tool list. Continue to Lucion Identity, sign in if asked, and read the consent page and approve identity.profile.read plus offline_access for profile access. Approve identity.api_keys.create only if you also want the assistant to create API keys on explicit request.
  4. After approval, return to the chat. Ask ChatGPT to create a key only when you want one; approving the connection does not create a key.

Connect Codex from Terminal

  1. Open Terminal and add the Lucion MCP server using the standalone command below. Copy only the command inside the code block—especially do not copy a period after /mcp.
  2. Codex may start its browser sign-in as soon as the server is added. If it saves the server without opening sign-in, run the separate login command below.
  3. In the browser, sign in to Lucion Identity if needed and approve the displayed permissions yourself. Return to Terminal after the browser reports success.
  4. To check only this server's saved address without printing other MCP configuration, run codex mcp get lucion-identity. Its URL should end exactly in /mcp.
Add the Codex server — no trailing period and no extra resource flag
codex mcp add lucion-identity --url https://identity.lucionglobal.com/mcp
Run this only if adding the server did not start sign-in
codex mcp login lucion-identity
Safely inspect only the Lucion server configuration
codex mcp get lucion-identity
Replace an incorrectly saved Codex address
codex mcp remove lucion-identity
codex mcp add lucion-identity --url https://identity.lucionglobal.com/mcp

Codex derives the OAuth resource (the exact service this connection is allowed to reach) from the MCP server URL. Use the command above as written; do not add a second --oauth-resource value.

Ask for a key

  1. Tell the assistant the key's label, the smallest read-only permissions it needs, and its expiry. For example: Create a Lucion API key named Calendar reader with calendar.events.read, expiring in 7 days.
  2. Check the permission names and expiry in the tool request. The OAuth permission identity.api_keys.create lets the connected assistant invoke key creation; the API key's read-only scopes are a separate choice.
Read-only API-key permissionAllows the key to
identity.profile.readRead permitted basic Lucion ID profile fields.
identity.email.readRead the verified email address and verification state.
identity.organization.readRead organization details available to the identity.
identity.organization.members.readRead permitted organization members.
identity.permissions.readRead permitted authorization context.
identity.sessions.readRead permitted session information.
identity.developer.readRead permitted developer-resource metadata.
calendar.events.readRead calendar events within the granted integration boundary.
What happensDetails
Sign-inChatGPT and Codex are separate clients, so approve each one once. After that, you should not need to sign in for every key request.
Connection lifetimeAccess tokens last one hour and rotate through refresh tokens for up to 30 days. Expiry, revocation, or a security re-check can require you to connect again.
API-key lifetimeChoose 7, 30, or 90 days. The key is stored as a hash and its raw value is shown only once.
DisconnectIn Identity Console → Applications, disconnect an assistant to revoke its refresh-token family and linked access tokens.
Chat privacyThe raw key is included in the assistant's tool result and may be retained in chat history. Copy it to a trusted password manager or secret manager immediately; do not share the conversation.
If this happensTry this
Wrong Lucion Identity serviceCheck the Codex URL character by character. It must end with /mcp and have no period after it; then remove and add the entry again.
Codex says not logged inRun codex mcp login lucion-identity and complete the Lucion browser approval.
ChatGPT cannot add or run the connectorAsk your workspace administrator whether custom MCP apps and write tools are enabled for your account. Availability is controlled by ChatGPT.
The assistant does not show the key toolReconnect from the exact MCP address above and approve identity.api_keys.create. If available, refresh the tool list after reconnecting.
You are asked to sign in againThe refresh grant may have expired or been revoked. Reconnect and review the consent screen again.