> ## 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.

# FastMCPApp

Defined in: [server/apps/FastMCPApp.ts:26](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/apps/FastMCPApp.ts#L26)

## Constructors

### Constructor

```ts theme={null}
new FastMCPApp(options): FastMCPApp;
```

Defined in: [server/apps/FastMCPApp.ts:29](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/apps/FastMCPApp.ts#L29)

#### Parameters

##### options

[`FastMCPAppOptions`](/api/server/interfaces/FastMCPAppOptions)

#### Returns

`FastMCPApp`

## Properties

### server

```ts theme={null}
readonly server: FastMCP;
```

Defined in: [server/apps/FastMCPApp.ts:27](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/apps/FastMCPApp.ts#L27)

## Methods

### backendTool()

```ts theme={null}
backendTool(config, handler): void;
```

Defined in: [server/apps/FastMCPApp.ts:61](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/apps/FastMCPApp.ts#L61)

Register a backend tool.
Backend tools are hidden from listTools by default (visibility: \['app']).

#### Parameters

##### config

[`BackendToolConfig`](/api/server/interfaces/BackendToolConfig)

##### handler

(`args`) => `unknown`

#### Returns

`void`

***

### entrypoint()

```ts theme={null}
entrypoint(config, handler): void;
```

Defined in: [server/apps/FastMCPApp.ts:39](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/apps/FastMCPApp.ts#L39)

Register an entry-point tool.
Entry-points are visible to the LLM (visibility: \['model', 'app']) and
automatically linked to a generated ui:// resource URI.

#### Parameters

##### config

[`EntrypointConfig`](/api/server/interfaces/EntrypointConfig)

##### handler

(`args?`) => [`Component`](/api/server/interfaces/Component)

#### Returns

`void`

***

### toolRef()

```ts theme={null}
toolRef(name): string;
```

Defined in: [server/apps/FastMCPApp.ts:77](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/apps/FastMCPApp.ts#L77)

Returns a reference to a tool that resolves to the correct external name
(including any mount prefix) when evaluated inside a request handler.
Call inside a handler function — not at definition time.

#### Parameters

##### name

`string`

#### Returns

`string`
