TrainingDojo
TrainingDojo Guides9 min read

Connect TrainingDojo MCP to ChatGPT, Codex, and Work Mode

Connect TrainingDojo through personal ChatGPT Developer mode, Codex, or ChatGPT Work mode with browser OAuth and all 26 endurance tools.

TrainingDojo Team
Updated July 16, 2026

TrainingDojo works across the ChatGPT family through one remote MCP: personal ChatGPT Developer mode, Codex, and ChatGPT Work mode. Every path uses the same browser sign-in and exposes the same 26 read-and-write endurance tools. A directory listing makes installation faster when available, but Developer mode remains the permanent manual connection path.

Before You Connect

  • An active TrainingDojo Pro subscription.
  • At least one platform connected in Settings.
  • The TrainingDojo MCP endpoint: https://trainingdojo.app/api/mcp.

Your TrainingPeaks, Intervals.icu, and Strava 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. 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

ChatGPT Plus and Pro users can connect TrainingDojo now 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.

ChatGPT asks for confirmation before write actions according to your conversation permission settings.

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. Enable Developer mode and create or connect the TrainingDojo app 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_strava_history",
      "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. ChatGPT Plus and Pro users can connect TrainingDojo now by enabling Developer mode, creating a developer-mode app with the TrainingDojo MCP URL, and completing browser sign-in. A published directory listing provides a shorter installation path but is not required.

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.