Skip to content

Latest commit

Β 

History

124 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Enterprise Agentic Data Mesh (MeshOS) on Google Cloud

License: Apache 2.0 Node.js TypeScript React Knowledge Catalog Model Context Protocol


🌟 Executive Overview

MeshOS is a multi-domain autonomous Agentic Data Mesh Operating System engineered for Google Cloud Platform (GCP). It elevates decentralized enterprise data from passive storage into active, intelligent cognitive products through domain-specific AI agents.

Powered by Gemini 2.5 Flash / Pro, the Model Context Protocol (MCP), and official Google Cloud Knowledge Catalog (Dataplex Labs) reference architectures, MeshOS enables autonomous cross-domain reasoning, automated metadata lineage propagation, zero-trust MCP tool federation, and real-time schema drift reconciliation.

MeshOS Enterprise Architecture


πŸ›οΈ System Architecture Topology

graph TD
    User["Data Consumer / Decision Maker"] --> Studio["MeshOS React UIX Studio (Port 5173)"]
    Studio --> MasterOrch["Master Orchestrator Agent (Gemini 2.5 Flash/Pro)"]
    
    subgraph "1. Governance & Discovery Plane (Knowledge Catalog Labs)"
        GovAgent["Knowledge Catalog Governance Agent (Document RAG, Policy Tags, Trust Center)"]
        DiscAgent["Knowledge Catalog Discovery Agent (Semantic Decomposition, Multi-Search, Context Lookup)"]
        Aspects["Knowledge Catalog Aspect Schemas (Security, Governance, Data Quality)"]
    end
    
    subgraph "2. Unified Access & Security Plane"
        OneMCP["GCP One-MCP Unified Gateway (Port 8088 / Stdio)"]
        RBAC["Zero-Trust Domain-Scoped Security"]
    end

    subgraph "3. Decentralized Data Domains (9 Autonomous Specialized Agents)"
        OracleAgent["FinancialAgent (Oracle Database@GCP)"]
        SpannerAgent["RetailAgent (Cloud Spanner Graph/GQL)"]
        BQAgent["AnalyticsAgent (BigQuery EDW & Churn ML)"]
        AlloyAgent["CRMAgent (AlloyDB pgvector)"]
        NetSuiteAgent["ERPAgent (NetSuite SuiteTalk AI Connector)"]
        WarehouseAgent["WarehouseAgent (Stock Batches & AisleBins)"]
        HRAgent["HRAgent (Employees & Headcount Req)"]
        CatalogAgent["CatalogAgent (Aspects & W3C DCAT v3)"]
        APIAgent["APIAgent (Dynamic OpenAPI Products)"]
    end

    MasterOrch --> GovAgent
    MasterOrch --> DiscAgent
    MasterOrch --> OneMCP
    GovAgent --> Aspects
    DiscAgent --> Aspects
    OneMCP --> RBAC
    RBAC --> OracleAgent
    RBAC --> SpannerAgent
    RBAC --> BQAgent
    RBAC --> AlloyAgent
    RBAC --> NetSuiteAgent
    RBAC --> WarehouseAgent
    RBAC --> HRAgent
    RBAC --> CatalogAgent
    RBAC --> APIAgent
Loading

πŸ“¦ The 9 Mesh Domains & Capabilities

Domain Underlying GCP / Enterprise Engine Key Data Products & Schemas Specialist Agent
Oracle ERP Oracle Database@Google Cloud / Autonomous DB ERP_PURCHASE_ORDERS, ERP_SUPPLIERS, ERP_EXPENSES FinancialAgent
Spanner Retail Google Cloud Spanner (Graph GQL & SQL) Stores, Products, Inventory, Transactions RetailAgent
BigQuery Analytics Google Cloud BigQuery EDW & ML marketing_edw.customer_segments, churn_risk AnalyticsAgent
AlloyDB CRM Google Cloud AlloyDB PostgreSQL (pgvector) CRM_LEADS, CRM_ACCOUNTS, SUPPORT_TICKETS CRMAgent
NetSuite ERP NetSuite SuiteTalk REST AI Connector SalesOrders, Invoices, Fulfillment ERPAgent
Warehouse Real-Time Supply Chain Persistence StockBatches, AisleBins, PalletMovements WarehouseAgent
HR & Talent Human Resources Directory (Confidential) Employees, Departments, HeadcountRequisitions HRAgent
Catalog & Knowledge Google Cloud Knowledge Catalog OpenKnowledgeGraph, DCATv3, Aspect Types, Cross-Domain Links CatalogAgent
API Domain Dynamic OpenAPI Ingestion Feeds Registered 3rd Party APIs, Partner Feeds APIAgent

⚑ GCP One-MCP Unified Gateway

The GCP One-MCP Gateway (servers/one-mcp/index.js, agent/utils/one_mcp_gateway.js) establishes a single, consolidated Zero-Trust integration plane:

  • Unified Gateway Endpoint: Aggregates 31+ specialized tools across BigQuery, Spanner, AlloyDB, Oracle DB, Knowledge Catalog, and NetSuite into a single manageable MCP service.
  • Dynamic Domain Scoping: Restricts available tools dynamically based on calling agent domain identity, preventing lateral security vulnerabilities.
  • 4 Runtime Modes:
    • unified: Single multi-tool MCP server (Port 8088 / SSE).
    • microservices: Decentralized independent MCP services per domain.
    • local: Stdio-spawned sub-processes for isolated offline CLI workflows.
    • toolbox: Dynamic tool registry integration.

πŸ›‘οΈ Knowledge Catalog Data Governance Agent Integration

MeshOS natively integrates the Google Cloud Knowledge Catalog Governance Agent (agent/utils/governance_metadata_propagator.js, agent/utils/document_rag_engine.js):

  1. Document RAG Data Steward: Gemini multimodal extraction pipeline converting unstructured Markdown, PDFs, and schema dictionaries into structured table schemas and column definitions.
  2. Lineage-Based Metadata Propagation: Propagates upstream column descriptions downstream with SQL transformation analysis (COALESCE, SUM, CASE WHEN).
  3. AI Business Glossary & EntryLinks: Recommends and binds business glossary terms to Knowledge Catalog entries with resilient local fallback (config/glossary_links.json).
  4. Data Trust Center (AutoDQ): Derives multi-hop Data Quality scores with automated SQL remediation bonuses and historical trend tracking.
  5. Estate Summary Dashboard: Real-time visibility into mesh-wide documentation gaps and trust indices.
  6. Knowledge Catalog Scans Management: Dispatches and tracks Data Quality and Profile scans (config/dataplex_scans.json).

πŸ” Knowledge Catalog Discovery Agent Integration

MeshOS integrates the Knowledge Catalog Discovery Agent (agent/utils/knowledge_catalog_discovery_service.js):

  1. Semantic Question Decomposition: Translates natural language inquiries into 3 distinct search variations (direct synonyms, database column patterns, category breadth).
  2. Predicate Extraction: Extracts search qualifiers (type=table, system=bigquery, system=spanner, projectid=...).
  3. Knowledge Catalog Multi-Search: Executes concurrent semantic searches with cross-engine reranking.
  4. Context Lookup (lookupContext): Calls Knowledge Catalog LookupContext API for batch resources to retrieve lineage, aspects, and trust index.

πŸ–₯️ MeshOS React UIX Studio

The modern web studio (UIX/) offers enterprise observability:

  • Real-Time Orchestration Console: Interactive natural language query interface with live A2A timeline, step-by-step reasoning logs, and confidence score badges.
  • Force-Directed Graph: Visualizes cross-domain relationships, policy tags (PII, FINANCIAL), and data contract SLAs.
  • Data Trust Center: Comprehensive Data Quality dashboard, aspect editor, and scan dispatcher.
  • W3C DCAT v3 / JSON-LD Export: Standardized linked data catalog representation.

πŸš€ Quick Start Guide

Prerequisites

  • Node.js >= 20.0.0
  • Google Cloud SDK (gcloud) with ADC configured (gcloud auth application-default login)
  • A valid Gemini API Key (GEMINI_API_KEY)

Environment Setup

Create a .env file in the root directory:

GEMINI_API_KEY="your-gemini-api-key"
GCP_PROJECT_ID="your-gcp-project-id"
GCP_REGION="europe-west3"
KNOWLEDGE_CATALOG_LOCATION="europe-west3"
MCP_GATEWAY_MODE="unified"
ONE_MCP_PORT=8088
PORT=8080

Installation & Execution

# 1. Install dependencies
npm install
cd UIX && npm install && cd ..

# 2. Run full test suite (99 tests across 17 test suites)
npm test

# 3. Build frontend studio
cd UIX && npm run build && cd ..

# 4. Launch MeshOS (Backend API + One-MCP Gateway + UIX Studio)
npm run start:all

Open http://localhost:5173 in your browser.


πŸ§ͺ Testing & Verification

# Run all integration test suites
npm test

# Run Knowledge Catalog Governance Agent tests
node --test tests/integration/dataplex_labs_governance_agent.test.js

# Run Knowledge Catalog Discovery Agent tests
node --test tests/integration/dataplex_labs_discovery_agent.test.js

# Run GCP One-MCP Gateway tests
node --test tests/integration/one_mcp_gateway.test.js

πŸ“„ License & Standards

Licensed under the Apache 2.0 License. Built in alignment with the Google Cloud Knowledge Catalog (Dataplex Labs) specifications.

About

Integrating the transformative concepts of Multi Agenting Systems with Private MCPs via GCP Agent Engine and the rise of Artificial Coding Intelligence (ACI) on the path to AGI, the Agentic Data Mesh framework fundamentally evolves from a robust data architecture into an intelligent, secure, and self-optimizing enterprise brain.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages