Blume: An Astro Docs Framework with llms.txt, an MCP Server, and AI-Agent Doc EvalNote · digest for November 28
Two-layer architectural model of Blume documentation generating a web interface and clean Markdown for AI agents in parallel
Note3 sections≈ 4 min

Blume: An Astro Docs Framework with llms.txt, an MCP Server, and AI-Agent Doc Eval

Drop a couple of MDX files into a folder, run one command, and a minute later you have a docs site with search, navigation, OG images, llms.txt, and .md pages for coding agents. There is only one requirement up front: Node.js 22.19 or higher. That is Blume 2.2.7, an open-source framework built on Astro and Vite by Hayden Bleasel under the MIT license.

An MDX folder instead of boilerplate, plus an eject safety net

Documentation tools usually fall into two extremes: generators like Docusaurus, VitePress, or Starlight accumulate templates and plugins, while SaaS platforms like Mintlify, GitBook, or ReadMe lock you into someone else's hosting and pricing.

Blume on GitHub strips away that boilerplate. You don't clone a starter or configure Astro or Tailwind. Your project holds only Markdown or MDX (Markdown with interactive components) and blume.config.ts. Cards, tabs, steps, code groups, and file trees work in MDX without import statements.

# Creates docs/index.mdx, blume.config.ts, and scripts
npx blume init

# Starts the dev server with hot reload
npm run dev

# Builds static files and search index into dist/
npm run build

The entire build setup lives inside .blume/. The CLI reads your config, builds a content graph, and compiles a hidden Astro project. Only edited files rebuild, keeping hot reload fast. Running blume init leaves your existing package.json intact. If you ever need full control, npx blume eject outputs a standard Astro project while keeping the blume package working.

Docs for AI agents and automated blume eval tests

Coding agents are reading docs more than ever. Even in static mode, Blume serves llms.txt and llms-full.txt—Markdown indexes so models can read text without parsing HTML. Any page also opens as raw Markdown by appending .md (as useblume.dev itself does). Alongside that come a JSON API (OpenAPI 3.1), "Copy as Markdown" and "Open in chat" buttons, and /.well-known/agent-skills/blume/SKILL.md.

To let Claude Code, Cursor, or VS Code search docs directly, you can enable the MCP server (Model Context Protocol—an HTTP interface for doc tools). In Blume 2, search, deployment, and API references are split into blume/* adapters:

// blume.config.ts
import { defineConfig } from "blume";
import { vercel } from "blume/deploy";
import { pagefind } from "blume/search";

export default defineConfig({
  // A server adapter is required for MCP
  deployment: vercel(),
  // Defaults to Orama; swap adapters in one line
  search: pagefind(),
  agents: {
    // Exposes Streamable HTTP MCP at /mcp
    mcp: { enabled: true, route: "/mcp" },
  },
});

At /mcp, agents get four read-only tools (search_docs, get_page, list_pages, get_navigation), text/markdown pages, and discovery files at /.well-known/mcp.json and /.well-known/mcp/server-card.json.

For CI, there is blume eval. Each test question spawns two local CLI sessions: Codex by default, or Claude Code with --agent claude. A reader agent answers strictly from the docs (shell, images, and env are disabled in Codex), and a judge agent scores it. If there is a gap, the test fails (0.40 fail) and points to the .mdx file that needs work.

# Check doc completeness via Codex or Claude Code
npx blume eval
npx blume eval --agent claude

# Migrate from Mintlify, Docusaurus, GitBook, MkDocs, or ReadMe
npx blume migrate

Blume doesn't store LLM keys or call models directly. blume migrate and blume translate run on that same local CLI, while npx blume@latest upgrade upgrades from v1.

Static vs. server: where the boundaries sit

In static output (dist/), the base theme ships no client JS framework. Default search runs on Orama, a browser JS engine requiring no server or API keys. One line from blume/search swaps it for Pagefind, FlexSearch, Algolia, Typesense, Orama Cloud, or Mixedbread. Static mode also supports OG images (Takumi), PDF/EPUB export, OpenAPI/AsyncAPI/GraphQL references (blume/reference, Scalar), and sources like Notion, Sanity, Strapi, and GitHub Releases—all hostable on GitHub Pages, S3, or a CDN.

For the MCP server or Ask AI chat, static output isn't enough: blume.config.ts must explicitly set vercel(), netlify(), node(), or cloudflare() from blume/deploy. There is no adapter auto-detection, though URLs on Vercel, Netlify, and Cloudflare Pages are picked up automatically. Two other limits to note: Node.js >= 22.19.0 requires a recent CI runner, and blume eval and blume migrate need local Codex or Claude Code. The 2.x branch is about five months old, so test a large portal on one section first.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 5