Changelog
Leadtype 0.2
Last updated June 3, 2026
Released June 3, 2026.
Leadtype 0.2 turns the package from an MDX-to-agent-artifacts pipeline into a portable docs and agent-readability layer for your own docs host. Use it under an existing stack like Fumadocs, Starlight, or Mintlify-adjacent workflows, or build a custom docs app around the source primitive. The release adds discoverable agent surfaces, a docs MCP server, config-owned navigation, remote source sync, i18n, scoring, and framework examples that show how to keep rendered docs UI separate from the pipeline.
Agent surfaces
- Added
leadtype mcpandleadtype/mcpso generated docs can be served to MCP clients over stdio or mounted as a stateless Streamable HTTP handler. The default tools aresearch-docsandget-page, withlist-pagesavailable opt-in. - Added
leadtype mcp --checkfor a one-shot local verification before wiring an editor or hosted MCP client. - Added
leadtype generate --bundle --mcpso an installed dependency can expose version-matched bundled docs throughleadtype mcp --package <name>. - Added
/.well-known/agent-skillsfor hosted docs and bundledSKILL.mdoutput for package docs. The default docs skill points agents atllms.txt, MCP, or bundledAGENTS.mddepending on the surface. - Expanded
/.well-known/agent-card.jsoninto an A2A-style AgentCard with provider, documentation URL, skills, capabilities, modes, and the MCP endpoint as the standardurlwhen MCP is enabled. - Added
/.well-known/llms.txt,/.well-known/llms-full.txt,LinkandX-Llms-Txtdiscovery headers, robots/content-signal generation, SEO metadata, and config-driven JSON-LD. - Added
leadtype scoreandleadtype/scoreto rate a generated build's leadtype-addressable agent readiness and gate CI with--min.
Configuration and source model
- Added top-level
product,organization,agents, andllms.sectionsconfig fields sollms.txt,AGENTS.md, JSON-LD, robots, the agent card, and generated skills share one identity model. - Added config-owned
navigationwith nested sections, explicit pages, wildcard includes, root-relative entries, per-node bases, andoptional: truesections. Frontmattergroupstill works as taxonomy and fallback metadata, but curated IA should now live in config. - Added
collectionsandleadtype syncfor multi-source docs. Collections can read local folders or remote git repositories pinned to a branch, tag, or commit, then generate under separate URL prefixes. - Added
sourceConfig: truefor the flagship pinned source docs UI path. A docs UI repo can pin a source/package repo, inherit source-ownednavigation, legacygroups,frontmatterSchema,flatteners, andmounts, then keep product identity, agent policy, deployment, and the app shell in the UI repo. - Added first-class docs i18n helpers and locale-aware generation for localized sources, search indexes, LLM files, and Agent Readability artifacts.
- Added frontmatter transformers and tightened the default frontmatter metadata contract, including stronger linting around JSON-LD validity, link structure, and GEO-oriented docs shape.
- Added
resolveAgentInputs(config)so custom scripts can map config identity into lower-level generation APIs the same way the CLI does.
Host and framework integration
- Formalized the package boundary: leadtype ships data, types, adapters, handlers, and CLI output, but no rendered DOM. Docs apps own their UI components, layouts, accessibility, and styling.
- Added and dogfooded framework surfaces and examples for Next.js, Nuxt, Astro, SvelteKit, TanStack Start, and Fumadocs.
- Added runtime helpers for markdown response negotiation, sitemap/robots responses, docs head metadata, JSON-LD rendering, markdown mirror routing, and Agent Readability manifests.
- Added search adapters and client helpers for React, Vue, Svelte, Node, Vercel, TanStack, Cloudflare, AI SDK flows, and bash-tool flows.
- Added authoring docs and component flattening coverage for agent-readable output, including
Prompt,FileTree,CommandTabs, and custom flatteners.
Authoring and bundle improvements
- Added
defineComponentFlattenerfor custom MDX components that need a first-class markdown representation. - Improved type table source-root resolution and source-preset behavior so generated tables resolve against the intended project root.
- Reframed package docs bundling around the most reliable wins from evals: lower token cost and fewer confidently wrong answers.
- Made
leadtype initwrite or refresh a rootAGENTS.mdpointer tonode_modules/leadtype/AGENTS.md, so agents setting up docs read version-matched Leadtype guidance first. - Improved missing-artifact errors for MCP and scoring by listing the actionable fixes: run
leadtype generate, point--artifactsat the generated output, or use--packagefor bundled docs.
Migration notes
- Move curated sidebars and top-level docs areas into
navigation. Keep frontmattergroupfor taxonomy or compatibility only, and keeporderonly where wildcard includes need fallback sorting. - Replace older ad hoc
llms.txtbody setup withllms.sections. Use markdown blocks for overview/context and links blocks for best starting points. - Add
productandorganizationmetadata before enabling agent surfaces so JSON-LD, AgentCard, skills, and generated docs all describe the same entity. - Configure
agents.robots,agents.seo,agents.mcp, andagents.skillsin config instead of duplicating those settings in routes or scripts. - For package docs, continue using
leadtype generate --bundle. Add--mcponly when the package should ship the search index and Agent Readability manifest needed for package-local MCP retrieval. - For docs spread across repositories, use a root
leadtype.config.tswithcollections, pin remote sources to a reviewed ref, setsourceConfig: truewhen the source repo owns navigation/schema/flatteners/mounts, and runleadtype generate --sync. - For host integrations you control, wire the runtime route to generated
agent-readability.json, add markdown response negotiation, render JSON-LD from the manifest, and keep visual components in the host app or docs framework.