StructuredError Type — mcp Architecture
Architecture documentation for the StructuredError type/interface in types.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD d17a98b6_dcea_33cf_f0ff_1917dc2ba557["StructuredError"] 5c6acde2_5ba8_604f_70ae_120f7b72feaa["types.ts"] d17a98b6_dcea_33cf_f0ff_1917dc2ba557 -->|defined in| 5c6acde2_5ba8_604f_70ae_120f7b72feaa style d17a98b6_dcea_33cf_f0ff_1917dc2ba557 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/types.ts lines 58–67
export interface StructuredError {
type: ErrorType;
message: string;
code: string;
recoverable: boolean;
suggestion?: string;
details?: Record<string, unknown>;
reportable?: boolean;
repo?: string;
}
Defined In
Source
Frequently Asked Questions
What is the StructuredError type?
StructuredError is a type/interface in the mcp codebase, defined in src/types.ts.
Where is StructuredError defined?
StructuredError is defined in src/types.ts at line 58.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free