Skip to content
Truffl.
Browse chapters

MCP documentation Get started

Connect Codex

Configure Truffl for Codex using the CLI, check the saved server and authorize it in your browser.

Add the remote server

  1. Open a terminal where the Codex CLI is installed. Check your version with codex --version, then run the command below. It registers a remote HTTP server in your Codex configuration.
  2. Codex may offer to sign in immediately. If you already have a server named truffl, check its address with codex mcp get truffl first.
Codex CLI
codex mcp add truffl --url https://build.trufflinnovations.in/api/mcp/truffl

Check the address and sign in

  1. Run codex mcp get truffl. Confirm the transport is streamable_http and the URL ends in /api/mcp/truffl.
  2. If sign-in did not already open, run codex mcp login truffl. Complete sign-in in the browser on the same computer and allow it to return to Codex. Keep the CLI running while the local callback is pending.
Codex CLI shows truffl enabled, streamable_http transport, the Truffl server URL and empty bearer-token and HTTP header settings.
Codex CLI 0.144.1 · Captured terminal output of codex mcp get truffl. This checks the saved address. Sign in to test access.

Sign in and select permissions

  1. In the browser, confirm that you are on build.trufflinnovations.in. Sign in with your own Truffl account. If you are new, create an account and create or join your team's workspace. If onboarding opens separately, return to your client and start Connect again.
  2. On Connect Truffl, find the intended workspace, select the permissions you need and approve. Workspace membership, role, workspace settings and enrollment determine the choices you see.
  3. Return to your client and refresh its tools. In Truffl connections, you can remove an individual permission or revoke the entire connection. To add permissions, reconnect and select the full set you need.

Check what this connection can do

Open a fresh conversation in the client and make Truffl available to it. Ask it to run truffl_connection. Check the workspace ID, capability names and tool counts against what you selected.

Try one read. With Bot Builder permission, list agents and compare an ID with Builder. With Call evidence, give a finished call ID and check one cited transcript turn against your review. An empty list can be a valid response in a new workspace.

Example prompt
Run truffl_connection. Show the workspace ID, the permissions I granted and the tool count for each. Make no changes.

Configure Codex by file

If you manage Codex through configuration files, merge this block into your user-level ~/.codex/config.toml, then run codex mcp login truffl. Use /mcp in an interactive Codex session to inspect available servers and tools.

Use codex mcp logout truffl to sign out locally. To withdraw the workspace grant, open Truffl connections. Use codex mcp remove truffl to remove the saved client entry.

Codex config.toml
[mcp_servers.truffl]
url = "https://build.trufflinnovations.in/api/mcp/truffl"