Skip to content

Latest commit

 

History

History
122 lines (82 loc) · 9.74 KB

File metadata and controls

122 lines (82 loc) · 9.74 KB
graph LR
    API_Gateway_Core["API Gateway Core"]
    Service_Layer["Service Layer"]
    Data_Persistence_Layer["Data & Persistence Layer"]
    Communication_Infrastructure["Communication & Infrastructure"]
    Security_Configuration["Security & Configuration"]
    Federation_Management["Federation Management"]
    External_Client_Wrapper["External Client Wrapper"]
    API_Gateway_Core -- "orchestrates" --> Service_Layer
    API_Gateway_Core -- "handles communication via" --> Communication_Infrastructure
    API_Gateway_Core -- "enforces policies with" --> Security_Configuration
    Service_Layer -- "manages data in" --> Data_Persistence_Layer
    Service_Layer -- "requires authentication from" --> Security_Configuration
    Data_Persistence_Layer -- "supports" --> Service_Layer
    Data_Persistence_Layer -- "stores cached data for" --> Communication_Infrastructure
    Communication_Infrastructure -- "provides protocols to" --> API_Gateway_Core
    Communication_Infrastructure -- "caches resources from" --> Data_Persistence_Layer
    Security_Configuration -- "authenticates" --> API_Gateway_Core
    Security_Configuration -- "configures" --> Service_Layer
    Federation_Management -- "coordinates with" --> API_Gateway_Core
    Federation_Management -- "leverages" --> Security_Configuration
    External_Client_Wrapper -- "interacts with" --> API_Gateway_Core
    click API_Gateway_Core href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/mcp-context-forge/API Gateway Core.md" "Details"
    click Service_Layer href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/mcp-context-forge/Service Layer.md" "Details"
    click Data_Persistence_Layer href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/mcp-context-forge/Data & Persistence Layer.md" "Details"
    click Communication_Infrastructure href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/mcp-context-forge/Communication & Infrastructure.md" "Details"
    click Security_Configuration href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/mcp-context-forge/Security & Configuration.md" "Details"
    click Federation_Management href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/mcp-context-forge/Federation Management.md" "Details"
    click External_Client_Wrapper href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/mcp-context-forge/External Client Wrapper.md" "Details"
Loading

CodeBoardingDemoContact

Component Details

The mcp-context-forge project implements an API Gateway that serves as a central entry point for various client interactions, including REST, RPC, SSE, and WebSocket. Its primary purpose is to route requests, manage core entities like servers, resources, and tools, and facilitate inter-gateway communication. The system emphasizes modularity with distinct layers for services, data persistence, communication, security, and federation, ensuring robust and scalable operations.

API Gateway Core

The central component handling all incoming API requests (REST, RPC, SSE, WebSocket), routing them to appropriate services, and managing the application's lifecycle. It acts as the primary interface for clients and orchestrates interactions between various internal services. It also exposes administrative endpoints and health checks.

Related Classes/Methods:

  • mcp-context-forge.mcpgateway.main (full file reference)
  • mcp-context-forge.mcpgateway.admin (full file reference)

Service Layer

Provides the core business logic and management functionalities for various entities (Servers, Resources, Prompts, Gateways, Tools) and cross-cutting concerns like logging, auto-completion, and root URI management.

Related Classes/Methods:

Data & Persistence Layer

Defines the data structures (schemas) for all entities and messages within the system and provides an abstraction layer for persistent storage, handling database operations for various application entities.

Related Classes/Methods:

  • mcp-context-forge.mcpgateway.schemas (full file reference)
  • mcp-context-forge.mcpgateway.types (full file reference)
  • mcp-context-forge.mcpgateway.db (full file reference)

Communication & Infrastructure

Manages network communication protocols (SSE, WebSocket, JSON-RPC validation), handles caching of frequently accessed resources, and manages active user sessions for real-time interactions.

Related Classes/Methods:

Security & Configuration

Manages all aspects of authentication, including JWT token handling and credential verification, and provides a centralized mechanism for managing application settings and environment variables.

Related Classes/Methods:

Federation Management

Facilitates inter-gateway communication, including peer discovery, health monitoring, and intelligent request forwarding across a distributed network of gateways.

Related Classes/Methods:

External Client Wrapper

An external client-side component designed to interact with the mcpgateway server, primarily for fetching metadata related to tools, prompts, and resources.

Related Classes/Methods:

  • mcp-context-forge.mcpgateway-wrapper.src.mcpgateway_wrapper.server (full file reference)