Step 5 of 6

Add Structured Content

Present alternatives, interactive workspace actions, reference metadata, and technical flows with safe and accessible structured components.

The remaining components accept constrained data rather than arbitrary scripts. This keeps contributed MDX reviewable, accessible, and safe to build.

Tabs for equivalent alternatives

Use tabs when readers need one of several equivalent commands. Keep labels short and do not hide required sequential instructions inside tabs.

MDX
<Tabs
  items={[
    { label: 'pnpm', content: 'pnpm content:validate', language: 'bash' },
    { label: 'npm', content: 'npm run content:validate', language: 'bash' },
  ]}
/>
pnpm content:validate

Use cards for a small set of peer destinations or choices. Do not use them for a sequence.

MDX
<CardGrid
  items={[
    {
      title: 'Contribution guide',
      description: 'Review the full workflow.',
      href: '/contribute',
    },
    {
      title: 'Guide catalogue',
      description: 'Inspect published examples.',
      href: '/guides',
    },
  ]}
/>

Metadata panel for source context

Use this panel for version scope, source provenance, compatibility, or other reference details that should remain visible but separate from the main instruction.

MDX
<MetadataPanel>
  **Verification scope:** tested with Node.js 22 on macOS and Linux. Last
  verified on 2026-08-31.
</MetadataPanel>

Add interactive blocks for workspace actions

Every Guide uses the same guide content type, overview, and ordered step structure. A Guide can also include interactive blocks when readers need to configure, run, inspect, or test something in a workspace.

Explore the source of the existing interactive Guide before proposing one:

Add an interactive block only when the action helps the reader achieve or verify the Guide’s outcome. A diagram, checklist, code sample, or set of tabs belongs in the authored content and does not require a workspace.

The Guide overview declares a registered interactiveGuideId:

Guide overview frontmatterYAML
interactiveGuideId: building-your-first-mcp-server

A step document places an InteractiveGuideBlock with a registered literal scene where the workspace should appear:

Guide step bodytext
InteractiveGuideBlock(scene="add-tools")

The ID and scenes must already exist in the TypeScript interactive Guide registry. Authors cannot invent them in MDX, and authored content cannot contain executable runtime logic. Interactive blocks therefore require maintainer support and code changes outside the content files. Agree the workspace behavior with a maintainer before adding the field or block.

Protocol diagrams for technical flows

Use ProtocolDiagram when the order or relationship between MCP participants is easier to understand visually. Start with the teaching question, then include only the nodes needed to answer it. Use official entity names such as host, MCP client, and MCP server.

This example answers: “How does a tool request move from the application to the system that fulfills it?”

MDX
<ProtocolDiagram
  label="A user action reaches the host, which uses its MCP client to send a tool request to an MCP server; the server calls the tool handler, which accesses an external service and returns the result through the same path."
  nodes={[
    'User',
    'Host',
    'MCP client',
    'MCP server',
    'Tool handler',
    'External service',
  ]}
/>

Use the component

ProtocolDiagram draws one straight flow. The nodes array controls the boxes and their order:

  • List the nodes in the order the reader should follow them.
  • Keep each node name short, such as Host, MCP client, or MCP server.
  • Use the official protocol names for the specification version in the document metadata.

On desktop, the nodes appear from left to right. On a narrow screen, they stack from top to bottom.

The label is the text description for readers who cannot see the diagram. Write it as a complete sentence that explains how the nodes relate to one another.

Step 5

Ready to continue?

Mark this step complete when you have finished the checks above.

Checking saved progress…

Find it across ATM

Search All Things MCP

ESC

Search the practical layer around the protocol.

Browse Guides Read the Blog

Your ATM account

Sign in or create an account

Continue with GitHub. If you’re new, your ATM account will be created automatically.