Skip to main content
Glama
apolosan

Design Patterns MCP Server

by apolosan
relationship.ts1.52 kB
/** * Relationship Model Interface * Represents relationships between design patterns */ type RelationshipType = | 'related' | 'extends' | 'implements' | 'uses' | 'similar' | 'alternative' | 'complements' | 'conflicts' | 'prerequisite' | 'successor'; export interface Relationship { /** Unique relationship identifier */ id: string; /** Source pattern ID */ sourcePatternId: string; /** Target pattern ID */ targetPatternId: string; /** Type of relationship */ type: RelationshipType; /** Strength of relationship (0.0 to 1.0) */ strength: number; /** Human-readable description */ description: string; /** Creation timestamp */ createdAt: Date; } /** * Relationship creation input */ export interface CreateRelationshipInput { sourcePatternId: string; targetPatternId: string; type: RelationshipType; strength?: number; description: string; } /** * Relationship update input */ export interface UpdateRelationshipInput extends Partial<CreateRelationshipInput> { id: string; } /** * Relationship filters for queries */ export interface RelationshipFilters { sourcePatternId?: string; targetPatternId?: string; type?: RelationshipType; minStrength?: number; } /** * Relationship with pattern details */ export interface RelationshipWithPatterns extends Relationship { sourcePattern: { id: string; name: string; category: string; }; targetPattern: { id: string; name: string; category: string; }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/apolosan/design_patterns_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server