This is a starter template for building documentation using Fumadocs, integrated with OpenAPI and designed to work seamlessly with the Vercel AI SDK.
It is powered by Next.js and was generated using Create Fumadocs.
- Node 22+
- A package manager
- Git
- Optional if you plan to use AI right away:
- An OpenAI compatible API key for Vercel AI SDK
Clone your repo and install packages with your preferred manager.
bun
bun install
pnpm
pnpm install
Create a .env.local
in the project root.
If using Vercel AI SDK:
# Choose one provider, example for OpenAI compatible endpoints
OPENAI_API_KEY=sk-...
# Or for Azure/OpenRouter/etc, set the provider vars your app expects
If you are not enabling AI, just set a dummy value, like sk-123
.
Start the dev server:
bun
bun dev
pnpm
pnpm dev
Then open http://localhost:3000 in your browser.
Build
bun run build
# or: pnpm run build
Preview
bun start
# or: pnpm start
- MCP Server: If you plan to extend workflows with MCP, install and configure your MCP server, then wire it in your app code or an API route as documented in your chosen server.
- Fumadocs - Fast, flexible documentation powered by MDX.
- OpenAPI - OpenAPI support for API Documentation
- AI SDK - Supports the Vercel AI SDK for advanced AI chat features.
- MCP-Ready - Easily extend with an optional MCP Server for more advanced workflows.
- Twoslash - Embed live, type-checked code examples with rich editor features such as errors, completions, and hovers.