# TheStack-ai/waypath [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/TheStack-ai/waypath  
**GitHub Stars:** 6  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/thestack-ai-waypath

## Description
Local-first external brain CLI for coding agents. SQLite-backed context, graph-aware recall via FTS5 and RRF, and governed memory with explicit promote and review gates. Ships Codex and Claude Code host shims and a native MCP server.

## Tools
Capabilities this server exposes over MCP:

- **waypath_recall** — Search Waypath truth and archive recall.
- **waypath_session_start** — Build a Waypath session-start context pack.
- **waypath_graph_query** — Expand graph context for an entity.
- **waypath_page** — Synthesize a Waypath knowledge page.
- **waypath_promote** — Create a Waypath promotion candidate.
- **waypath_review** — Review a Waypath promotion candidate.
- **waypath_review_queue** — List pending review queue items, stale pages, and contradictions.
- **waypath_resolve_contradiction** — Resolve a Waypath preference contradiction by keeping one preference.
- **waypath_refresh_page** — Refresh a Waypath knowledge page.
- **waypath_source_status** — Inspect local source adapter availability.
- **waypath_health** — Inspect Waypath database health, FTS sync, and source probe status.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/TheStack-ai/waypath), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g waypath
```

2. Start the server:

```sh
waypath mcp-server --store-path ~/.waypath/my-project.db
```

3. Start the server:

```sh
waypath mcp-server --store-path ~/.waypath/project.db
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/thestack-ai-waypath/readme_

