> ## Documentation Index
> Fetch the complete documentation index at: https://fastmcp-ts.docs.prefect.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAPIServerOptions

Defined in: [server/openapi/index.ts:40](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L40)

## Properties

### client?

```ts theme={null}
optional client?: OpenAPIClientOptions;
```

Defined in: [server/openapi/index.ts:48](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L48)

HTTP client configuration (base URL, headers, auth, fetch, timeout).

***

### componentFn?

```ts theme={null}
optional componentFn?: ComponentFn;
```

Defined in: [server/openapi/index.ts:54](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L54)

Component customization hook, called before each registration.

***

### name?

```ts theme={null}
optional name?: string;
```

Defined in: [server/openapi/index.ts:44](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L44)

Server name. Default 'OpenAPI Server'.

***

### names?

```ts theme={null}
optional names?: Record<string, string>;
```

Defined in: [server/openapi/index.ts:56](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L56)

Overrides mapping operationId → component name.

***

### routeMapFn?

```ts theme={null}
optional routeMapFn?: RouteMapFn;
```

Defined in: [server/openapi/index.ts:52](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L52)

Route-type hook, run after the route maps on every route.

***

### routeMaps?

```ts theme={null}
optional routeMaps?: RouteMap[];
```

Defined in: [server/openapi/index.ts:50](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L50)

Route maps checked in order before the default (everything → tool).

***

### serverOptions?

```ts theme={null}
optional serverOptions?: Omit<FastMCPOptions, "name" | "version">;
```

Defined in: [server/openapi/index.ts:66](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L66)

Remaining FastMCP options (auth, middleware, page sizes, ...).

***

### spec

```ts theme={null}
spec: string | Record<string, unknown>;
```

Defined in: [server/openapi/index.ts:42](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L42)

The OpenAPI 3.0/3.1 spec: a parsed object, or YAML/JSON text.

***

### tags?

```ts theme={null}
optional tags?: string[];
```

Defined in: [server/openapi/index.ts:58](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L58)

Tags added to every generated component.

***

### validateOutput?

```ts theme={null}
optional validateOutput?: boolean;
```

Defined in: [server/openapi/index.ts:64](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L64)

When true (default), tools advertise the output schema extracted from
the spec. When false, a permissive schema is advertised instead (the
wrap-result marker is preserved).

***

### version?

```ts theme={null}
optional version?: string;
```

Defined in: [server/openapi/index.ts:46](https://github.com/PrefectHQ/fastmcp-ts/blob/main/src/server/openapi/index.ts#L46)

Server version. Defaults to FastMCP's own default.
