.do
Content

mdx

Build interactive docs with MDX at the edge. Embed React components, live code examples, and semantic metadata. Compile and serve in <50ms globally.

mdx

MDX.do

Overview

The mdx primitive is part of the .do platform's semantic API system. It follows the $.Subject.verb.Object pattern for consistent, intuitive interactions across SDK, CLI, API, and MCP interfaces.

Semantic Pattern

All mdx operations follow the semantic $.Mdx.verb.Object pattern:

import { $, mdx } from 'sdk.do'

// Create resources
await $.Mdx.create.Resource({ /* config */ })

// Query data
await $.Mdx.get.Data({ /* params */ })

// Update state
await $.Mdx.update.Status({ /* changes */ })

Quick Start

import { mdx } from 'sdk.do'

// Initialize and use the primitive
const result = await mdx.operation({
  // configuration parameters
})

Access Methods

The mdx primitive is accessible through multiple interfaces:

SDK

TypeScript/JavaScript library for programmatic access:

import { mdx } from 'sdk.do'
await mdx.method({ /* ... */ })

SDK Documentation

CLI

Command-line interface for terminal operations:

do mdx <command> [options]

CLI Documentation

API

REST/RPC endpoints for HTTP integration:

curl -X POST https://api.do/v1/mdx \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}'

API Documentation

MCP

Model Context Protocol for AI assistant integration:

Use mdx primitives with AI assistants via MCP

MCP Documentation

See other primitives in the content category.