Skip to content

hostedMcpTool

function hostedMcpTool<Context>(options): HostedMCPTool<Context>;

Creates a hosted MCP tool definition.

Type Parameter Default type

Context

unknown

Parameter Type

options

object & ({ serverLabel: string; serverUrl?: string | undefined; authorization?: string | undefined; headers?: Record<string, string> | undefined; } | { serverLabel: string; connectorId: string; authorization?: string | undefined; headers?: Record<…> | undefined; }) & ({ …; } | … 1 more … | { …; })

HostedMCPTool<Context>