What's Changed
🛠️ New Features & ADR Lifecycle
delete_context Tool: Dedicated MCP tool to safely remove obsolete topic files with automatic index rebuilding.
- Structured Frontmatter (ADR-Style): Support for lifecycle metadata (
status: active | deprecated | superseded, supersedes: <topic>, superseded_by: <topic>).
- Dynamic Index Badging:
index.md automatically badges non-active records with [DEPRECATED] or [SUPERSEDED] and links lineage.
🔒 Security & Bug Fixes
- Symlink Traversal Guard: Uses
lstat checks prior to writes to block symlink overwrite attacks.
autoIndex: false Compliance: Topic listing now respects disabled indexing without generating files on disk.
- Robust JSONC Parser: Replaced trailing comma regex with a string- and comment-aware token scanner.
🧪 Dogfooding & DX
- Added default
.opencode/agents/ configurations (Plan, Build, Review).
- Added monorepo
opencode.json configuration for immediate out-of-the-box local development.
- 91/91 unit and integration tests passing.
📦 Quickstart
npx -y opencontext-mcp@latest