CodeGym
AI Academy
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • What MCP is and why your ChatGPT App needs it

    ChatGPT Apps
    Level 6, Lesson 0
    In this lecture, we’ll break down what MCP ( Model Context Protocol) is, why the protocol is needed in the ChatGPT Apps stack, and how it differs from “your own REST.” We’ll align on the architecture picture (ChatGPT → MCP client → your MCP server → DB/API), study the key protocol entities ( tools, resources, prompts, and capabilities), and also understand how MCP is already “hidden” inside the Apps SDK through calls like callTool—and how to stop treating it as a black box.
    Available
  • MCP message format: requests, replies, notifications, tools/resources/prompts

    ChatGPT Apps
    Level 6, Lesson 1
    In this lecture, we break down the “raw” MCP message format on top of JSON‑RPC 2.0: how request, reply, and notification differ; how to correlate messages by id; when the server should return result vs. error; and what the primitives tools/ resources/ prompts look like in the protocol (methods tools/list, tools/call, resources/read, prompts/get). We’ll tie this to the Apps SDK using window.openai.callTool and practice reading/fixing MCP JSON.
    Available
  • Handshake and capabilities: how the client learns what the server can do

    ChatGPT Apps
    Level 6, Lesson 2
    We unpack the client–MCP server “introduction” via the initialize request: how protocolVersion is negotiated, which capabilities the client and server declare, why it is important to wait for notifications/initialized, and how discovery works after the handshake via tools/list, resources/list, and prompts/list. We finish with practical examples for GiftGen and a set of common pitfalls.
    Available
  • First MCP server: from SDK to working tools/resources/prompts

    ChatGPT Apps
    Level 6, Lesson 3
    In this lecture we assemble the first working MCP server on Node.js/TypeScript: we bring up an HTTP endpoint /mcp, create a McpServer from @modelcontextprotocol/sdk, attach a transport like StreamableHttpServerTransport, and register three basic MCP entities: a tool (the suggest_gifts tool with a Zod schema inputSchema), a resource (the gift_catalog directory with a proper mimeType), and a prompt (the birthday_gift template). Plus—we’ll cover the runtime, local launch, and common pitfalls.
    Available
  • Inspecting and debugging MCP: MCP Jam, Inspector, logs

    ChatGPT Apps
    Level 6, Lesson 4
    In this lecture we will break down practical debugging of MCP servers using inspectors: how MCP Jam/Inspector repeat the handshake (the initialize method) and read capabilities, how to manually hit tools/list and tools/call and view raw JSON-RPC, and how to set up logging on the server (structured JSON logs, separating stdout/ stderr, PII masking) so that issues are caught before integrating with ChatGPT Apps / Apps SDK.
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym