跳转到内容

hostedMcpTool

此内容尚不支持你的语言。

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

Creates a hosted MCP tool definition.

Type Parameter Default type

Context

unknown

Parameter Type Description

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 … | { …; })

Configuration for the hosted MCP tool, including server connection details and approval requirements.

HostedMCPTool<Context>