Creating first version of MCP server.
Some checks failed
CI Pipeline / Test and Build (20.x) (push) Failing after 3m22s
CI Pipeline / Code Quality Check (push) Failing after 11m52s
CI Pipeline / Security Audit (push) Failing after 11m53s
CI Pipeline / Test and Build (18.x) (push) Failing after 12m31s
CI Pipeline / Build Release Artifacts (push) Has been cancelled
CI Pipeline / Notification (push) Has been cancelled

This commit is contained in:
2025-07-22 07:11:59 +00:00
parent f10bf53522
commit bf088da9d5
38 changed files with 6398 additions and 9442 deletions

110
src/types/diagram-types.ts Normal file
View File

@ -0,0 +1,110 @@
export interface DiagramConfig {
name: string;
type: DiagramType;
format: DiagramFormat;
description?: string;
template?: string;
outputPath?: string;
}
export enum DiagramType {
// BPMN Types
BPMN_PROCESS = 'bpmn-process',
BPMN_COLLABORATION = 'bpmn-collaboration',
BPMN_CHOREOGRAPHY = 'bpmn-choreography',
// UML Types
UML_CLASS = 'uml-class',
UML_SEQUENCE = 'uml-sequence',
UML_USE_CASE = 'uml-use-case',
UML_ACTIVITY = 'uml-activity',
UML_STATE = 'uml-state',
UML_COMPONENT = 'uml-component',
UML_DEPLOYMENT = 'uml-deployment',
// Database Types
ER_DIAGRAM = 'er-diagram',
DATABASE_SCHEMA = 'database-schema',
CONCEPTUAL_MODEL = 'conceptual-model',
// Network Types
NETWORK_TOPOLOGY = 'network-topology',
INFRASTRUCTURE = 'infrastructure',
CLOUD_ARCHITECTURE = 'cloud-architecture',
// Architecture Types
SYSTEM_ARCHITECTURE = 'system-architecture',
MICROSERVICES = 'microservices',
LAYERED_ARCHITECTURE = 'layered-architecture',
C4_CONTEXT = 'c4-context',
C4_CONTAINER = 'c4-container',
C4_COMPONENT = 'c4-component',
// General Types
FLOWCHART = 'flowchart',
ORGCHART = 'orgchart',
MINDMAP = 'mindmap',
WIREFRAME = 'wireframe',
GANTT = 'gantt'
}
export enum DiagramFormat {
DRAWIO = 'drawio',
DRAWIO_SVG = 'drawio.svg',
DRAWIO_PNG = 'drawio.png',
DIO = 'dio',
XML = 'xml'
}
export enum ExportFormat {
PNG = 'png',
SVG = 'svg',
PDF = 'pdf',
JPEG = 'jpeg',
HTML = 'html',
XML = 'xml'
}
export interface DiagramElement {
id: string;
type: string;
label?: string;
properties?: Record<string, any>;
geometry?: {
x: number;
y: number;
width: number;
height: number;
};
style?: string;
}
export interface DiagramConnection {
id: string;
source: string;
target: string;
label?: string;
style?: string;
properties?: Record<string, any>;
}
export interface DiagramData {
elements: DiagramElement[];
connections: DiagramConnection[];
metadata: {
type: DiagramType;
format: DiagramFormat;
created: string;
modified: string;
version: string;
};
}
export interface TemplateConfig {
name: string;
type: DiagramType;
description: string;
elements: DiagramElement[];
connections: DiagramConnection[];
defaultStyle?: string;
}