waymark
MCP server exposing a codebase's OKF knowledge bundle to Claude Code with three schema-enforced query tools: list_concepts, read_concept, and find_concept_by_resource.
README
waymark
MCP server exposing a codebase's OKF
knowledge bundle (okf/) to Claude Code — three schema-enforced query
tools instead of raw Read/Grep over hand-written docs.
Tools
list_concepts(type?, tags?)— frontmatter-only summaries.tagsmatches any-of the given tags.read_concept(path)— full frontmatter + body for one concept, by thepathalist_conceptscall returned.find_concept_by_resource(file_path)— reverse lookup: which concept(s) describe a given source file.
The server is stateless — it re-reads okf/ from process.cwd() on every
call, so there's nothing to invalidate when concept files change.
Setup (per project)
npx -y @aleburrascano/waymark init
This registers everything a repo needs in one step:
- Adds a
waymarkentry to.mcp.json(creating it if missing). - Installs a pre-commit hook at
.git/hooks/pre-committhat blocks commits when aresource-mapped file changes without itsokf/concept being updated. Safe to re-run — it upgrades its own hook on laterwaymarkversions but never overwrites a hook it didn't install. - Installs two skills to
.claude/skills/:okf-staleness-fix(the writer/judge playbook Claude Code uses to resolve a blocked commit) andokf-bootstrap(the propose/approve/generate/judge playbook Claude Code uses to seed an initialokf/bundle). - Adds (or refreshes) an
## OKF contextsection in the repo'sCLAUDE.md.
Run it again any time to pick up updates from a newer waymark version.
Bootstrapping an existing codebase
okf/ bundles don't have to be hand-written from scratch. After running
waymark init, ask Claude Code to bootstrap one:
"Bootstrap okf for this repo"
This invokes the okf-bootstrap skill, which:
- Runs
waymark bootstrap— a deterministic scan (git ls-files-based, respects.gitignore) that lists every candidate source file. - Proposes a candidate concept list grouped by domain (one concept per named unit you'd naturally ask "what is X" about) — nothing is written yet.
- Waits for your approval, or feedback to re-group/rename/split candidates.
- Generates each approved concept, verified by a judge subagent before it's written to disk.
- Stages the new files with
git addand reports what was generated — committing is left to you.
This is a one-time, human-supervised pass. Ongoing drift after that is
caught by the pre-commit hook and okf-staleness-fix skill, not by
re-running bootstrap.
Local development
npm install
npm test
npm run build && npm link # then `waymark` runs the built CLI
npm test runs vitest against TypeScript source directly — no build step
required for the test suite.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.