Skip to main content
Glama

bun-docs-toolkit

Always-current Bun documentation for AI agents — sourced directly from bun-types, so it's version-pinned to whatever Bun your project uses.

Why?

Every existing "Bun docs for AI agents" project forks or clones Bun's documentation at a point in time, then goes stale. bun-docs-toolkit takes a different approach: it reads documentation from the bun-types npm package, which ships the complete Bun docs and is already version-pinned to your installed Bun.

Related MCP server: dfns-mcp

What's Included

1. MCP Server (bun-docs-mcp)

A Model Context Protocol server that resolves docs from whatever bun-types is installed in your project.

Setup — add to your MCP config:

{
  "mcpServers": {
    "bun-docs": {
      "command": "bunx",
      "args": ["bun-docs-mcp"]
    }
  }
}

Tools:

  • search_bun_docs({ query, category? }) — search docs by plain-English query

  • get_bun_doc({ slug }) — get the full content of a specific doc

  • list_bun_doc_categories() — browse the category tree

2. Agent Skills Bundle (skills/)

Pre-generated SKILL.md files grouped by topic (~25 skills), compatible with skills-cli:

bunx skills add <owner>/bun-docs-toolkit

Skills are regenerated weekly by CI to track the latest bun-types release.

Development

# Install dependencies
bun install

# Run tests
bun test

# Regenerate skills
bun run generate:skills

How It Works

  1. packages/core — Shared parsing: resolves bun-types docs dir, walks .md/.mdx files, parses YAML frontmatter, flattens Mintlify JSX components to plain markdown, and builds a searchable index.

  2. packages/mcp-server — MCP server using the core library. Reads from the calling project's bun-types at runtime, falling back to a bundled snapshot.

  3. packages/skills-generator — Build script that groups docs into ~25 skill categories and emits SKILL.md files.

License

MIT — see LICENSE.

Documentation content sourced from bun-types (MIT, © Jarred Sumner and Bun contributors).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI agents with access to DFNS documentation, API reference, and SDK code through full-text search and type intelligence.
      36 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to retrieve exact-version library documentation from the project's lockfile and installed packages, providing cited API signatures and doc comments offline without rate limits.
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI coding agents to fetch live MDN Web Docs pages, TypeScript handbook content, and npm package metadata as clean markdown, with local search, caching, and polite throttling.
      5
      MIT