Skip to main content
Defined in: server/apps/FastMCPApp.ts:26

Constructors

Constructor

new FastMCPApp(options): FastMCPApp;
Defined in: server/apps/FastMCPApp.ts:29

Parameters

options
FastMCPAppOptions

Returns

FastMCPApp

Properties

server

readonly server: FastMCP;
Defined in: server/apps/FastMCPApp.ts:27

Methods

backendTool()

backendTool(config, handler): void;
Defined in: server/apps/FastMCPApp.ts:61 Register a backend tool. Backend tools are hidden from listTools by default (visibility: [‘app’]).

Parameters

config
BackendToolConfig
handler
(args) => unknown

Returns

void

entrypoint()

entrypoint(config, handler): void;
Defined in: server/apps/FastMCPApp.ts:39 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
handler
(args?) => Component

Returns

void

toolRef()

toolRef(name): string;
Defined in: server/apps/FastMCPApp.ts:77 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