Configure the ChatGPT desktop app
Connect the ChatGPT desktop app, with ChatGPT and Codex, to your Datasentinel MCP server, sign in, and install the Datasentinel Skill.
This page shows how to wire the ChatGPT desktop app (OpenAI's application for Windows and macOS) to your Datasentinel platform: add the MCP server, sign in once, install the Skill that tells the assistant how to use it, and check that everything is connected.
The desktop app brings ChatGPT (with its Chat and Work modes) and Codex together in one app, and they share the same MCP and Skill configuration. Since September 2026, it also replaces the Codex app: updating the Codex app turns it into the ChatGPT desktop app (version 26.924 and later), and existing Codex chats and projects are kept. The setup below serves ChatGPT and Codex alike. For the terminal version, see Configure OpenAI Codex CLI.
Before you start
The ChatGPT desktop app is installed and you are signed in. Codex requires a ChatGPT Plus, Pro, Business, Edu, or Enterprise plan, or API-key billing. If the app is not installed, follow the steps below.
Your Datasentinel MCP server is reachable over HTTPS at
https://<public-host>/mcp. See MCP Server Setup if it is not yet running.
Install the ChatGPT desktop app
The app is distributed through the Microsoft Store on Windows. Install it with winget:
winget install --id 9PLM9XGG6VKS -s msstoreYou can also install it from the Microsoft Store listing directly. On macOS (Apple Silicon), download the installer from OpenAI's ChatGPT desktop app page.
Launch the app and sign in with your ChatGPT account when prompted. If you had the Codex app, update it instead: it becomes the ChatGPT desktop app. On Windows, Codex runs its agent in a native PowerShell sandbox; you can switch it to WSL2 in the app's settings.
Set it up
Add the Datasentinel MCP server
In the app, open Settings, select MCP servers, then click Add server. Enter the name datasentinel-production, choose Streamable HTTP as the type, and set the URL to https://<public-host>/mcp. Save, then select Restart so the app picks the server up.
The app writes this to the shared Codex configuration file, which on Windows is:
You can edit that file directly instead of using the dialog. The equivalent entry is:
Because the ChatGPT desktop app, the Codex CLI, and the Codex IDE extension all read this file, a server added in one of them shows up in the others. For the full reference, see OpenAI's Model Context Protocol documentation.
Self-signed or invalid certificate
If your platform serves the /mcp endpoint with a self-signed or otherwise invalid TLS certificate, the app rejects the connection by default.
To trust your internal CA, point the app at a PEM file that contains it with the CODEX_CA_CERTIFICATE environment variable. On Windows, set it as a persistent user variable from PowerShell, then restart the app:
If CODEX_CA_CERTIFICATE is unset, the app falls back to the standard SSL_CERT_FILE variable. The added certificate applies to all outbound HTTPS, including connections to MCP servers. There is no documented switch to turn off certificate verification entirely, so trusting your CA is the supported path.
The sign-in below opens the login page in your browser, so the browser must trust the certificate too.
Sign in to the platform
With a browser
After the restart, the MCP servers list shows which servers are enabled and which require OAuth. Select Authenticate next to datasentinel-production: the app opens the Datasentinel login page in your browser. Sign in with your platform login and password, the same ones as the Datasentinel web interface. The page names the assistant that is asking; after the sign-in the browser hands the session back to the app, and the server shows as connected with its tools.
You sign in once. The app stores the session (in the operating system's credential store, or in a file under the .codex folder when no store is available) and renews it by itself. It asks again only after ten days without using the server, or when an administrator ends the session. Your password goes to the login page only; the app never sees it and never asks for a token. Because the configuration is shared, the session also serves the Codex CLI and IDE extension on the same machine, and codex mcp logout datasentinel-production from the CLI ends it.
Without a browser
The desktop app always runs next to a browser, so the sign-in returns to the app on the same machine. The no-browser case, a Codex CLI on a remote server, is covered on the Codex CLI page.
For a script or a scheduled run
Where nobody can sign in, register the server with a user token as an authorization header instead. The token is the platform's 24-hour user token. The server entry names an environment variable holding it, so the token is never written in the configuration:
Set the variable persistently for your user (setx DS_TOKEN "<user token>" in PowerShell on Windows), then restart the app. A server registered this way never shows Authenticate; when the token expires, the calls fail until a fresh one is set. See Refresh the user token automatically to keep it current.
Install the Datasentinel Skill
The Datasentinel Skill is made of several files (a SKILL.md entrypoint plus supporting files) and ships as a single archive, datasentinel-skill.zip. Download it from https://app.datasentinel.io/ds-api/download/datasentinel-skill.zip.
Skills for the desktop app are file-based, discovered from %USERPROFILE%\.agents\skills on Windows ($HOME/.agents/skills on macOS). Create that directory if it does not exist yet, then extract the archive into it so it produces a datasentinel\ folder:
You should end up with %USERPROFILE%\.agents\skills\datasentinel\SKILL.md alongside the Skill's supporting files. Its frontmatter carries the description the assistant uses to decide when to apply the Skill:
The Skill then appears in the Skills panel in the sidebar. Only its name and description are loaded up front; the full instructions load when the Skill is actually applied. For how Skills are packaged and discovered, see OpenAI's Build Skills reference.
Check your configuration
Type /mcp in the composer to list the MCP servers the app has connected. datasentinel-production should appear there with its tools. A server still marked as requiring OAuth has not completed the sign-in: go back to the previous step.
If it does not appear, check the URL in config.toml, confirm the app was restarted after the edit, and verify the server is up.
Approve the Datasentinel tools
The first time the assistant calls a Datasentinel tool, the app asks you to approve it, once or for the rest of the session. To stop the prompts for good, set the approval mode of the server in config.toml, which the app shares with Codex:
The modes are approve (never ask), prompt and writes (both ask for tools not marked read-only, which is every Datasentinel tool today), and auto. The Datasentinel tools only read monitoring data, so approving the whole server is safe. See the Codex MCP guide for the per-tool override.
Codex: local and cloud chats
When you start a Codex chat, you choose where it runs. Local and Worktree chats run on your computer: they use your machine's network, so a Datasentinel platform on a private network or behind a VPN is reachable as long as your workstation reaches it, and the MCP server, the sign-in and the Skill all work as described above.
A Cloud chat or task is different. It runs in an isolated container hosted by OpenAI, with no access to your machine or your private network, and with internet access blocked during the agent phase unless you allow domains in the environment settings. The MCP servers configured on your workstation do not apply there. For a cloud task to reach a Datasentinel platform, the platform has to be reachable from OpenAI's side, in one of two ways:
A public endpoint. Publish
https://<public-host>/mcpon the internet with a publicly trusted certificate; the OAuth sign-in already protects it, as described in MCP Server Setup.OpenAI's Secure MCP Tunnel. Keep the platform private and run OpenAI's tunnel client on a host that reaches it. See Using ChatGPT on the web instead below and OpenAI's cloud internet access reference.
See also MCP servers on a private network.
Once the server is connected and the Skill is in place, run through the checks below to confirm the end-to-end flow.
How the Skill loads
The Datasentinel Skill loads on demand. The app reads every Skill's name and description up front (that is what the Skills panel lists), and applies the full instructions automatically when your prompt relates to Datasentinel: asking about PostgreSQL performance, instances, sessions, or the platform itself is enough. One Skill serves every platform, because it discovers all the datasentinel-* MCP servers you registered, so adding a second platform needs no Skill change.
If the assistant answers generically instead (no Datasentinel tool calls in the response), load the Skill manually:
In ChatGPT, type
@in the composer and pickdatasentinelto attach the Skill to your request.In Codex, type
$and pickdatasentinel, or run/skillsto browse and invoke it.Or name it in the prompt:
Use the datasentinel skill to check the platform status.
If the Skill is missing from the Skills panel, re-check the extraction path from the setup step. See OpenAI's Build Skills reference for the invocation details.
Test the MCP server and Skill
In the app, ask the assistant in plain language to run the Datasentinel Skill's built-in checks (see How the Skill loads above). Run these in order:
datasentinel help
Displays the Skill's help, listing the available commands.
datasentinel platforms
Lists every MCP server (platform) the Skill discovered by its datasentinel- prefix.
datasentinel status
Checks the platform status, confirming the MCP server answers.
datasentinel whoami
Shows who you are signed in as, your privilege and the session expiry.
These four are the setup checks. The full command list, with what each one needs, is in the Skill commands reference.
Start with datasentinel help to confirm the Skill responds. Then run datasentinel platforms to verify your server is discovered: each datasentinel-* MCP server you registered should appear in the list. Then run datasentinel status to confirm the platform is reachable and the MCP tools return live data. Finally, datasentinel whoami confirms the session belongs to your platform user, with the privilege you expect.
Using ChatGPT on the web instead
ChatGPT on the web does not read the local Codex configuration, so the setup above does not apply there. Remote MCP servers are added as developer mode apps in your account, and OpenAI's cloud connects to them on your behalf.
That changes three things:
Everything must be reachable from OpenAI's infrastructure. Not only the
/mcpendpoint: the sign-in also involves OpenAI's servers, which register ChatGPT as a client and exchange the authorization code for tokens on the platform's OAuth endpoints. The platform therefore needs a public hostname with a publicly trusted TLS certificate; a host behind a VPN, a corporate firewall, or a self-signed certificate does not work as-is. Your own browser must reach the login page too.The sign-in is the same, in the conversation. ChatGPT registers itself with the platform (dynamic client registration) and, when the app is first used, shows a connection prompt: it opens the Datasentinel login page, you sign in with your platform login and password, and ChatGPT keeps the session. OpenAI's Apps SDK authentication reference describes the flow; the redirect address ChatGPT uses is on
chatgpt.com, which the Datasentinel server accepts.Skills work differently. Standalone file-based Skills are a desktop-app feature; the hosted product uses plugin-bundled Skills instead.
To add the server there:
Create the app
From the plugins page, click Create and fill in a name starting with datasentinel-, the URL https://<public-host>/mcp, and a short description. Choose OAuth as the authentication, with no client id or secret: ChatGPT registers itself with the platform on its own. Do not choose No authentication, which would leave every call rejected with a sign-in error.
Enable it in a conversation and sign in
In a chat, click the + button, choose Developer mode, and select the Datasentinel app. It has to be enabled per conversation, and stays active for the rest of that conversation. On first use, ChatGPT shows the connection prompt: follow it to the Datasentinel login page and sign in.
Last updated