---
name: mastra-server
description: Documentation for @mastra/server. Use when working with @mastra/server APIs, configuration, or implementation.
metadata:
  package: "@mastra/server"
  version: "1.6.0"
---

## When to use

Use this skill whenever you are working with @mastra/server to obtain the domain-specific knowledge.

## How to use

Read the individual reference documents for detailed explanations and code examples.

### Docs

- [Custom Adapters](references/docs-server-custom-adapters.md) - Create a custom server adapter for frameworks other than Hono or Express.

### Reference

- [Reference: createRoute()](references/reference-server-create-route.md) - API reference for createRoute() function used to define type-safe routes with validation and OpenAPI generation.
- [Reference: MastraServer](references/reference-server-mastra-server.md) - API reference for the MastraServer abstract class used to create server adapters.
- [Reference: Server Routes](references/reference-server-routes.md) - API reference for HTTP routes registered by Mastra server adapters.


Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.