Read-only MCP server for the Life Programmable Interface — SMILE methodology, digital twin knowledge base, case studies, and persona graph.
This is the reference implementation of LPI tools. The LPI-Platform intern stream uses this to understand SMILE logic before building the equivalent FastAPI endpoints in lpi-platform.
src/
index.ts # MCP server entry — registers 14 tools
types.ts # TypeScript interfaces (SmilePhase, KnowledgeEntry, CaseStudy, etc.)
tools/
smile.ts # SMILE methodology — overview, phase detail, topic listing
knowledge.ts # Knowledge base search — query by topic, get insights
cases.ts # Case studies — list, search, detail (free/paid tier)
persona-graph.ts # Neo4j persona graph — search, stats, relationship health
store/
knowledge-store.ts # JSON data loader (smile-framework, knowledge-base, case-studies)
anonymizer.ts # PII anonymization for case studies
data/
smile-framework.json # SMILE phases, perspectives, AI journey, key concepts
knowledge-base.json # Digital twin knowledge entries
case-studies.json # Anonymized implementation case studies
Your job: Study the tools in src/tools/ to understand the SMILE logic, then implement equivalent functionality as FastAPI endpoints in Python.
| This repo (TypeScript, read-only MCP) | Your repo (Python, FastAPI REST API) |
|---|---|
tools/smile.ts — SMILE phase logic |
routers/goals.py — SMILE phase transitions on goals |
store/knowledge-store.ts — JSON data |
store.py — in-memory dict (Phase 3: Supabase) |
types.ts — SmilePhase, KnowledgeEntry |
models.py — Pydantic Goal, Signal, Recommendation |
tools/cases.ts — free/paid tier logic |
Future: tier-based access control on your API |
Key things to study:
data/smile-framework.json— the SMILE phases, their order, activities, deliverablestools/smile.ts— how phase transitions work (yoursmile.pyvalidates these)store/knowledge-store.ts— how data is loaded and queried (pattern for your store)
npm install
npm run build
node dist/index.js # starts MCP server on stdioRequires Node.js 18+. Persona graph tools require NEO4J_PASSWORD env var.
- lpi-platform — FastAPI implementation (intern stream)
- lpi-developer-kit — public sandbox with challenges