Show HN: MCP server for up-to-date Zig standard library documentation
9 months ago
- #Documentation
- #Zig
- #MCP
- Model Context Protocol (MCP) server provides up-to-date documentation for Zig's standard library and builtin functions.
- Uses a WASM module to read STD lib source files, similar to Zig's official autodoc, but outputs Markdown to reduce token usage.
- Can be configured using Node or Bun with commands like `npx -y zig-mcp@latest` or `bunx zig-mcp@latest`.
- Includes commands like `list_builtin_functions`, `get_builtin_function`, `search_std_lib`, and `get_std_lib_item` for detailed documentation retrieval.
- Supports version control and update management with options like `--version` and `--update-policy`.
- Documentation is cached in platform-specific directories (e.g., `~/.cache/zig-mcp/` on Linux).