ctx v0.26.0
v0.26.0 — MCP Remote Server + OAuth 2.1 PKCE + Client Management
MCP Streamable HTTP transport at /mcp, compatible with claude.ai and
Claude Code. Five tools: query (full retrieval pipeline with gravity
boost), store, search, get, recent (temporal listing).
OAuth 2.1 PKCE authorization flow for browser-based MCP clients:
- /.well-known/oauth-authorization-server metadata
- /authorize: HTML form, user authenticates with ctx API key
- /token: PKCE code exchange, issues Bearer token
Client registration system (ctx mcp add/list/delete) with per-client
credentials stored in context_oauth_clients (Migration 023). Each
integration gets its own client_id, revocable independently.
Auth middleware now accepts both X-Context-Key and Authorization: Bearer.
Query handler backfills pending embeddings inline before search.
CLI query output formatted by default (--json for raw).
Block IDs included in source references (CLI + MCP).
Also includes: dream_mode removed from MCP (admin-only via CLI),
recent tool for temporal queries, Claude Chat MCP feedback applied.
Installation
With Go:
go install github.com/GottZ/ctx/cmd/ctx@v0.26.0Binary download:
Download the binary for your platform, make it executable, move to PATH:
chmod +x ctx-*
sudo mv ctx-* /usr/local/bin/ctx