> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# tools.rsdoctor

> `optional` **rsdoctor?**: [`RsdoctorRspackPluginOptions`](/next/zh/api/packages/rspeedy/interfaces/RsdoctorRspackPluginOptions.md)

:::info 仅适用于 Rspeedy
此配置仅由 Rspeedy 的 `lynx.config.ts` 接受，Rsbuild + `pluginLynx` 不支持。请勿直接写入 `rsbuild.config.ts`，也不要传给 `pluginLynx()`。
:::

[Tools.rsdoctor](/next/zh/api/packages/rspeedy/interfaces/Tools.md#rsdoctor) 用于控制 [Rsdoctor](https://rsdoctor.dev/) 的选项。

## Default Value

```ts
undefined
```

## Remarks

设置 `RSDOCTOR=true` 可启用 Rsdoctor。启用后，Rspeedy 会在配置规范化阶段合并额外的插件默认配置。

## Example

- 使用内置的 Rsdoctor。

```js
import { defineConfig } from '@lynx-js/rspeedy'

export default defineConfig({
  tools: {
    rsdoctor: {
      disableClientServer: true,
    },
  },
})
```

详见 [Rsdoctor - Configuration](https://rsdoctor.dev/config/options/options)。
