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({ /* ... */ })CLI
Command-line interface for terminal operations:
do mdx <command> [options]API
REST/RPC endpoints for HTTP integration:
curl -X POST https://api.do/v1/mdx \
-H "Content-Type: application/json" \
-d '{"key":"value"}'MCP
Model Context Protocol for AI assistant integration:
Use mdx primitives with AI assistants via MCPRelated Primitives
See other primitives in the content category.
deck
Create presentation decks with AI-generated content and real-time data. Build executive reports, sales presentations, and investor decks with automatic updates and global distribution.
sites
Deploy static sites to 300+ edge locations with automatic builds and instant cache invalidation. Support for React, Next.js, Astro, Hugo with <20ms TTFB globally.