콘텐츠로 이동

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>