PML Documentation

Procedural Memory Layer - Intelligent MCP Gateway with Learning


Getting Started

# Document Description
1 Installation Prerequisites and setup
2 Quickstart First workflow in 5 minutes

Concepts

Understand how PML works. → Concepts Overview

1. Foundations

# Concept Description
1 MCP Protocol Servers, tools, schemas
2 Gateway Routing, multiplexing
3 Database PGlite, embeddings, KV

2. Search & Discovery

# Concept Description
1 Semantic Search Embeddings, vector similarity
2 Hybrid Search Semantic + graph combination
3 Proactive Suggestions Automatic recommendations

3. Learning

# Concept Description
1 GraphRAG Knowledge graph, algorithms
2 Dependencies Tool and capability relations
3 Confidence Levels template → inferred → observed
4 Feedback Loop How the system learns

4. Capabilities

# Concept Description
1 What is a Capability Definition, lifecycle
2 Eager Learning Storage on first execution
3 Schema Inference Auto-detected parameters

5. DAG & Execution

# Concept Description
1 DAG Structure Tasks, dependsOn, workflows
2 DAG Suggester Automatic construction
3 Parallelization Topological sort, layers
4 Checkpoints HIL/AIL, human validation

6. Code Execution

# Concept Description
1 Sandbox Deno isolation, permissions
2 Worker Bridge RPC communication
3 Tracing Call hierarchy

7. Real-time

# Concept Description
1 Events SSE, EventBus
2 Visualization SuperHyperGraph, D3.js

Guides

Guide Description
Overview General usage guide

Reference

# Document Description
1 MCP Tools PML tools API
2 Configuration Config files
3 CLI Available commands

PML Documentation v1.0