Waypath logo

Waypath

by TheStack-ai

Local SQLite memory for coding agents with graph-aware recall, session context, and review-governed knowledge.

Install Waypath

Run the project’s own setup commands, in order.

Setup steps from the project

TheStack-ai/waypath installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g waypath
    
  2. 2. Start the server
    waypath mcp-server --store-path ~/.waypath/my-project.db
    
  3. 3. Start the server
    waypath mcp-server --store-path ~/.waypath/project.db
    

Overview

TheStack-ai/waypath MCP server gives coding agents a local SQLite-backed memory and context layer. It combines full-text retrieval, reciprocal rank fusion, graph expansion, and explicit promotion and review steps instead of treating all captured information as trusted memory. Run it through the native MCP server with a project database, or use its CLI and host shims for Codex and Claude Code. Reach for it when agents need persistent, locally owned project context across sessions.

Use cases

  • Recall project decisions across coding sessions
  • Build session context packs for agents
  • Expand related entities and decisions
  • Promote and review durable knowledge
  • Inspect local memory and index health

Key features

  • SQLite-backed local memory
  • FTS5 and RRF hybrid retrieval
  • Graph-aware context expansion
  • Promotion and review governance
  • Contradiction resolution
  • MCP and host-shim access

Tools11

What Waypath lets your agent do. Expand a tool for its parameters.

Verified live~630 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/15 checks healthy over the last 117d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit5mo agoMost recent push to the default branch.
Tools exposed11Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Waypath works

What TheStack-ai/waypath MCP server does

TheStack-ai/waypath MCP server connects an MCP client to a local Waypath knowledge store held in SQLite. It is intended for coding-agent workflows that need to retain project decisions, entities, preferences, evidence, and session artifacts between runs. The database remains on the machine, and the project does not require a hosted service or cloud dependency.

TheStack-ai/waypath separates canonical information from archived evidence. Its truth layer records decisions, entities, preferences, temporal validity, and superseding history. Its archive layer stores evidence, removes duplicates using content hashes, and indexes content with SQLite FTS5. An ontology layer expands context through entity relationships, while the promotion engine supports candidate review, contradiction detection, and superseding flows.

How it works

TheStack-ai/waypath MCP server exposes operations for recalling stored context, creating session-start context packs, expanding graph context, and synthesizing knowledge pages. Memory changes follow an explicit workflow: create or capture a page, promote it as a candidate, and review that candidate before it becomes governed knowledge. Review queue operations also surface pending items, stale pages, and contradictions.

Retrieval uses FTS5 and reciprocal rank fusion, with graph expansion available for related entities and decisions. This is useful when keyword matches alone do not provide enough project context. The server also reports source-adapter availability and database, index, and source-probe health, which can help diagnose an incomplete local setup.

Setup and configuration

Install the package globally with npm and use Node.js 22.0 or newer. Node.js 22.5 or later is recommended because it provides the native node:sqlite driver; earlier supported 22.x versions can fall back to the optional better-sqlite3 dependency when needed.

Start the MCP endpoint with waypath mcp-server --store-path ~/.waypath/project.db, or use the waypath-mcp-server binary. The store path identifies the local SQLite file used by the server. The CLI also provides source-status and health commands for verification.

Configuration is optional. A config.toml in the working directory can set source-adapter toggles, retrieval weights, and review-queue limits. Set WAYPATH_CONFIG_PATH to use a configuration file elsewhere. Environment overrides take precedence over file settings, which in turn take precedence over built-in defaults.

Tools and capabilities

The MCP tool surface includes:

  • waypath_recall for truth and archive search.
  • waypath_session_start for building a session context pack.
  • waypath_graph_query for expanding an entity's related context.
  • waypath_page for synthesizing a knowledge page.
  • waypath_promote and waypath_review for governed memory changes.
  • waypath_review_queue for pending reviews, stale pages, and contradictions.
  • waypath_resolve_contradiction for choosing which preference to keep.
  • waypath_refresh_page for updating a knowledge page.
  • waypath_source_status and waypath_health for inspecting adapters and database health.

The repository also documents CLI commands for importing or scanning local material, rebuilding the FTS index, backups, exports, and database statistics.

Limitations and notes

The project is version 0.1.0 and lists hosted deployment, multi-user synchronization, and adaptive ranking feedback as deferred. The documented runtime requirement is Node.js 22 or newer. The MCP server is designed for local storage rather than shared, hosted memory. The README names Claude Code, Codex, Cursor, and generic MCP clients as supported connection targets.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Waypath

TheStack-ai/waypath is an MCP server that connects coding agents to a local SQLite knowledge store. Its main tools support recall, session-start context, graph queries, knowledge pages, promotion and review, contradiction resolution, page refresh, source status, and database health without requiring a cloud service.

Install it with `npm install -g waypath`, then run `waypath mcp-server --store-path ~/.waypath/project.db` or the `waypath-mcp-server` binary. Node.js 22.0 or newer is required, with Node.js 22.5 or newer recommended.

Configure it with an optional `config.toml` file or environment overrides. Place the file in the working directory, or set `WAYPATH_CONFIG_PATH` to another location. Environment values take priority over the file and built-in defaults.

Start the native MCP server with a store path, then configure Cursor to use that MCP server according to its MCP settings.

No, it is designed to run locally with a SQLite database and has zero cloud dependencies. Its documented storage model keeps the project context in a local database file owned by the user.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWaypath AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/thestack-ai-waypath?style=directory)](https://allmcps.com/mcp/thestack-ai-waypath)
HTML Embed
<a href="https://allmcps.com/mcp/thestack-ai-waypath"><img src="https://allmcps.com/api/badge/thestack-ai-waypath?style=directory" alt="Waypath on AllMCPs" /></a>