Evergreen
Enables AI agents to read, write, and maintain documentation through an MCP server, providing tools for asking questions, generating docs, checking drift, and exploring knowledge graph.
README
🌲 Evergreen
Documentation that writes and maintains itself.
Evergreen is an AI knowledge layer on Cloudflare Workers. It drafts docs from your real sources — code, PRs, tickets, and Claude memory — you approve them in seconds, and it keeps them from rotting: when the source changes, the doc is flagged stale and a refresh is drafted for you. The same knowledge is readable and writable by AI agents over MCP.
This repo is a template. Click “Use this template”, then follow Quickstart below. The entity dictionary and a few config values are placeholders — make them yours.
📖 New here? Read USAGE.md — full configuration checklist (exactly what to fill in), deploy steps, how to use every feature, and how to connect your Claude.
The loop
flowchart LR
subgraph SRC["Real sources"]
direction TB
C["Code / PRs"]
T["Tickets"]
M["Claude memory"]
end
SRC --> LLM["Claude<br/>(Bedrock)"]
LLM --> DR["Drafts"]
DR -->|"human approves<br/>in seconds"| KB[("Knowledge base<br/>D1: facts + entity graph")]
KB --> UI["Web UI<br/>/evergreen"]
KB --> MCP["MCP server<br/>agents read & write"]
KB -. "code & facts change" .-> DFT["Drift +<br/>auto-maintain"]
DFT -. "flag stale · draft refresh" .-> DR
Generate → approve → detect drift → refresh → repeat. The loop closes itself.
What's inside
| Surface | What it does |
|---|---|
| Generate | Point at a GitHub repo, subtree, or PR → Claude reads the source and drafts a doc. |
| Coverage | Find topics with lots of facts but no doc, and synthesize one from what's already known. |
| Review | Validate AI-distilled lessons harvested from your tracker in one click. |
| Drift + Auto-maintain | Docs refresh themselves as code & facts change — nightly and on demand. |
| Ask | Grounded Q&A over the knowledge base, every answer cited. |
| Team memory | Connect your Claude memory so teammates can pick up where you left off. |
| Knowledge graph | Entities (clients, systems, tickets…) auto-extracted and navigable. |
| MCP | An MCP server so AI agents read and extend the docs directly. |
Architecture
- Cloudflare Workers + Hono
- D1 (SQLite) with FTS5 full-text search — the knowledge base is a graph of facts ↔ entities
- Amazon Bedrock (Claude) for generation, synthesis, Q&A, and drift judgment
- MCP (streamable HTTP) for agent access
- Auth via Cloudflare Access (SSO) with a
WEB_PASSWORDbasic-auth fallback
The core knowledge base lives at /; the Evergreen doc surface is additive under /evergreen/*, in its own hack_* tables — generated docs only promote into the real knowledge base on human approval.
Quickstart
bun install # or npm install
# 1. Create the database + token store
wrangler d1 create evergreen # paste database_id into wrangler.jsonc
wrangler kv namespace create TOKENS # paste id into wrangler.jsonc
bun run db:init:remote # apply migrations/
# 2. Secrets
wrangler secret put WEB_PASSWORD # browser UI password
wrangler secret put MCP_SHARED_SECRET # fallback MCP bearer
wrangler secret put BEDROCK_API_KEY # Bedrock bearer token (for the LLM)
wrangler secret put LINEAR_API_KEY # optional — ticket harvester
wrangler secret put GITHUB_TOKEN # optional — private repos + higher rate limits
# 3. Set account_id / route / CF_ACCESS_TEAM_DOMAIN in wrangler.jsonc, then:
bun run deploy
Local dev
cp .dev.vars.example .dev.vars # set WEB_PASSWORD, BEDROCK_API_KEY, …
bun run db:init:local
bun run dev # http://localhost:8787 (UI password from .dev.vars)
Make it yours
src/extraction.ts— replace the example entity dictionary (clients, products, people, systems) with your own vocabulary. This is how the graph auto-links.wrangler.jsonc— setHARVEST_LINEAR_TEAM, your custom domain, andCF_ACCESS_TEAM_DOMAIN.scripts/seed.ts— import your local Claude memory:bun run scripts/seed.ts <memory-dir> --author "Your Name"→ review the sensitive-content report →bun run db:seed:remote.
Connect a Claude (MCP)
Add to ~/.claude.json (or a project .mcp.json):
{
"mcpServers": {
"evergreen": {
"type": "http",
"url": "https://<your-worker>/evergreen/mcp",
"headers": { "Authorization": "Bearer <token-or-MCP_SHARED_SECRET>" }
}
}
}
Per-person tokens (for authorship) go in the TOKENS KV:
wrangler kv key put --binding TOKENS <token> '{"name":"Alex"}'
MCP tools: ask_docs · generate_doc · check_drift · coverage_gaps · entity_brief.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。