8.1 ChatGPT connector

  1. Open ChatGPT in a browser. Go to Settings ⇒ Connectors.
  2. Choose Add custom connector (wording varies).
  3. Fill in the form:
    • Name: Ownsona (cosmetic).
    • Description: Personal durable memory store. (cosmetic).
    • MCP Server URL: https://your-host/mcp.
    • Authentication: pick OAuth. Leave any “bearer token” or “API key” text field blank — that field is the legacy non-OAuth path, and OwnSona refuses it.
  4. Click Save / Connect. ChatGPT opens a browser tab to https://your-host/oauth/authorize.
  5. Enter your OWNSONA_LOGIN_USERNAME and OWNSONA_LOGIN_PASSWORD from application.ini. Click Allow on the consent screen.
  6. The browser returns control to ChatGPT, which exchanges the OAuth code for an access token + refresh token and stores them. The connector is now live.

You will not see the browser login again until the refresh token expires (30 days by default) or you delete and re-add the connector.

What ChatGPT does behind the scenes. On first use it fetches https://your-host/.well-known/oauth-protected-resource to discover the AS, then https://your-host/.well-known/oauth-authorization-server for the endpoint locations, then registers itself dynamically (RFC 7591) at /oauth/register, then drives the user through /oauth/authorize and /oauth/token. All of that is automatic; the only piece of information you give ChatGPT is the /mcp URL.