ContentBlock Type — mcp Architecture
Architecture documentation for the ContentBlock type/interface in types.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 392b0acc_544b_a290_c89a_972135988a29["ContentBlock"] 5c6acde2_5ba8_604f_70ae_120f7b72feaa["types.ts"] 392b0acc_544b_a290_c89a_972135988a29 -->|defined in| 5c6acde2_5ba8_604f_70ae_120f7b72feaa style 392b0acc_544b_a290_c89a_972135988a29 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/types.ts lines 8–12
type ContentBlock =
| { type: 'text'; text: string }
| { type: 'image'; data: string; mimeType: string }
| { type: 'audio'; data: string; mimeType: string }
| { type: 'resource'; resource: unknown };
Defined In
Source
Frequently Asked Questions
What is the ContentBlock type?
ContentBlock is a type/interface in the mcp codebase, defined in src/types.ts.
Where is ContentBlock defined?
ContentBlock is defined in src/types.ts at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free