> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ja/llms.txt # Mastra.getServer() `.getServer()` メソッドは、Mastra インスタンスに設定されている Server 設定を取得します。 ## 使用例 ```typescript mastra.getServer() ``` ## パラメーター このメソッドはパラメーターを受け取りません。 ## 戻り値 **server** (`ServerConfig | undefined`): ポート、ホスト、studioBase、タイムアウト、API ルート、ミドルウェア、CORS 設定、ビルドオプションを含む、設定済みの Server 設定。Server が設定されていない場合は undefined。 ## 関連項目 - [Server のデプロイ](https://mastra.zisheng.pro/ja/docs/deployment/mastra-server) - [Server の設定](https://mastra.zisheng.pro/ja/docs/server/custom-api-routes)