TrainingDojo
TrainingDojo Guides9 min read

Connect TrainingDojo MCP to ChatGPT, Codex, and Work Mode

Add TrainingDojo to ChatGPT on the web, desktop, and mobile from the ChatGPT directory, or connect Codex and ChatGPT Work mode, with browser OAuth and the same MCP tools.

••Updated November 20, 2026

TrainingDojo works across the ChatGPT family through one remote MCP: personal ChatGPT, Codex, and ChatGPT Work mode. Every path uses the same browser sign-in and exposes the same MCP tools. TrainingDojo is listed in the ChatGPT directory: one click adds it, then ChatGPT opens TrainingDojo in your browser for a normal sign-in and permission screen, so no code or developer key is required.

Before You Connect

  • A TrainingDojo account.
  • At least one platform connected in Settings.
  • The TrainingDojo MCP endpoint: https://trainingdojo.app/api/mcp.

Your TrainingPeaks and Intervals.icu credentials stay encrypted in TrainingDojo and are never sent to the AI app. The normal browser flow does not require you to create or handle a developer key. Creating developer keys requires Pro or Coach; existing keys follow your current plan. Free includes training history, calendar and wellness reads and three lifetime single-workout publishes, separate from hosted-AI credits. Pro and Coachadd activity streams, route matching, course analysis, and workout and plan management. The AI app and provider you choose handle all conversation inference and generation under your provider account. TrainingDojo MCP never calls TrainingDojo's AI models or uses TrainingDojo AI credits. TrainingDojo receives authenticated tool inputs and returns data or action results, not the rest of your provider conversation. TrainingDojo's separate web AI features remain TrainingDojo-hosted.

Connect Personal ChatGPT

  1. Open TrainingDojo in the ChatGPT directory.
  2. Choose Connect.
  3. Sign in to TrainingDojo, review access, and approve the connection.

The app is shared with your ChatGPT account, so it works in ChatGPT on the web, desktop, and mobile. ChatGPT asks for confirmation before write actions according to your conversation permission settings.

Manual Setup With Developer Mode

Prefer to add the server yourself? ChatGPT Plus and Pro users can connect through Developer mode.

  1. Open Settings → Security and login and enable Developer mode.
  2. Open Plugins, choose +, and create a developer-mode app.
  3. Enter TrainingDojo, paste https://trainingdojo.app/api/mcp, and choose OAuth.
  4. Acknowledge the unverified-server warning, then sign in to TrainingDojo and approve access.
  5. Start a new conversation and select TrainingDojo from Developer mode.

Connect Codex

In the desktop app or IDE extension, open MCP servers, choose Add server, select Streamable HTTP, enter https://trainingdojo.app/api/mcp, save, restart, and choose Authenticate. The desktop Codex host, Codex CLI, and IDE extension share MCP configuration for the same host.

For the Codex CLI, run:

codex mcp add trainingdojo --url https://trainingdojo.app/api/mcp
codex mcp login trainingdojo

OAuth is the recommended path. A TrainingDojo developer key remains available as an optional bearer-token fallback in the Advanced section of MCP setup.

Connect ChatGPT Work Mode

  1. Connect TrainingDojo from the ChatGPT directory or Developer mode if needed.
  2. Switch ChatGPT to Work mode.
  3. Open Plugins and install or enable TrainingDojo from Personal or Created by me.
  4. Complete the TrainingDojo browser sign-in when prompted.
  5. Start a new Work-mode chat and select TrainingDojo.

Workspace administrators can restrict which plugins and tools are available in Work mode.

Advanced: Connect With the OpenAI Responses API

Install the OpenAI JavaScript SDK, then create a local .env file containing both server-side credentials (do not commit this file):

npm install openai

# .env
OPENAI_API_KEY=<your-openai-key>
TRAININGDOJO_MCP_KEY=<your-trainingdojo-key>

Save this as responses-example.mjs to attach TrainingDojo as a remote MCP tool:

import OpenAI from "openai";

const client = new OpenAI();

const response = await client.responses.create({
  model: "gpt-5.6", // Use a current Responses API model ID.
  input: "Review my connected training platforms and summarize my last six weeks.",
  tools: [{
    type: "mcp",
    server_label: "trainingdojo",
    server_url: "https://trainingdojo.app/api/mcp",
    authorization: process.env.TRAININGDOJO_MCP_KEY,
    allowed_tools: [
      "get_connected_platforms",
      "get_trainingpeaks_history",
      "get_intervals_history",
    ],
    require_approval: "never",
  }],
});

console.log(response.output_text);

Run it with Node's environment-file support:

node --env-file=.env responses-example.mjs

Keep the TrainingDojo developer key on your server. Never ship it to browser JavaScript or include it in a public repository. This first example allowlists read-only tools. Before adding any write tool, implement the Responses API MCP approval flow and surface the approval request to the user.

A Useful First Coaching Session

Start with a read-only check before asking the AI to write anything:

Use TrainingDojo to list my connected platforms. Then review my last
six weeks of training and my next 14 days. Summarize volume, intensity,
recovery signals, and the three biggest risks in my current schedule.
Do not change or publish anything yet.

Once the summary looks right, ask for a draft plan, review its dates and workload, and only then approve a publish tool. TrainingDojo labels read, write, and destructive tools; the AI client controls whether and when it asks for approval, so review that client's permission settings before enabling writes.

Why Use the OpenAI API Path

  • Your application can allow only the TrainingDojo tools relevant to its workflow.
  • Read-only tool annotations can support a lower-friction review flow.
  • Write and destructive calls can remain behind explicit user approval.
  • You can build a focused endurance assistant instead of relying on copy and paste.

Generate the developer key used above from the Advanced section of MCP setup.

Frequently Asked Questions

Can the OpenAI API connect directly to TrainingDojo MCP?

Yes. The Responses API remote MCP tool accepts a public server URL and a TrainingDojo developer key (`tdmcp_…`) as its authorization token.

Can I connect TrainingDojo inside ChatGPT?

Yes. Open TrainingDojo in the ChatGPT directory, choose Connect, and complete the browser sign-in. It then works in ChatGPT on the web, desktop, and mobile. ChatGPT Plus and Pro users can also add it manually through Developer mode with the TrainingDojo MCP URL.

Does the same connection work with Codex and ChatGPT Work mode?

Yes. Codex desktop, CLI, and IDE can connect directly to the same Streamable HTTP MCP with OAuth. ChatGPT Work mode can use TrainingDojo through its Plugins surface, subject to workspace administrator controls.

Where should I store the TrainingDojo developer key?

Store the `tdmcp_…` developer key in a server-side environment variable or secret manager. Never embed it in browser code, mobile binaries, logs, or a public repository.