@microsoft/agents-a365-tooling package

類別

McpToolServerConfigurationService

負責發現並正規化 MCP(模型情境協定)工具伺服器,並產生可由 Claude SDK 使用的組態物件。

ToolingConfiguration

工具套件的設定。 它繼承執行時設定並新增針對工具的專屬設定。

Utility

介面

ChatHistoryMessage

代表聊天紀錄中的一則訊息。

ChatMessageRequest

代表即時威脅防護檢查的請求有效載荷。

InputSchema
MCPServerConfig
McpClientTool
ToolOptions

類型別名

MCPServerManifestEntry
ToolingConfigurationOptions

工具配置選項——擴充執行時選項。 所有覆蓋都是在每個屬性存取時呼叫的函式。

繼承自 RuntimeConfigurationOptions:

  • clusterCategory
  • isNodeEnvDevelopment

函式

resolveTokenScopeForServer(MCPServerConfig, string)

解析 OAuth 範圍以請求特定 MCP 伺服器。

V2 伺服器在現場有自己的受眾 audience ,並獲得每個受眾的代幣。 V1 伺服器(無 audience,或與共享範圍自身受眾相符的純 api://)會退回到 sharedScope 已設定的 mcpPlatformAuthenticationScope。

變數

defaultToolingConfigurationProvider

ToolingConfiguration 的共用預設提供者。

函式詳細資料

resolveTokenScopeForServer(MCPServerConfig, string)

解析 OAuth 範圍以請求特定 MCP 伺服器。

V2 伺服器在現場有自己的受眾 audience ,並獲得每個受眾的代幣。 V1 伺服器(無 audience,或與共享範圍自身受眾相符的純 api://)會退回到 sharedScope 已設定的 mcpPlatformAuthenticationScope。

function resolveTokenScopeForServer(server: MCPServerConfig, sharedScope?: string): string

參數

server
MCPServerConfig

閘道器或清單回傳的 MCP 伺服器設定。

sharedScope

string

配置的共享範圍(mcpPlatformAuthenticationScope)。 預設為生產 ATG 範圍,讓沒有自訂設定的外部呼叫者也能繼續運作,而不必傳遞參數。

傳回

string

變數詳細資料

defaultToolingConfigurationProvider

ToolingConfiguration 的共用預設提供者。

defaultToolingConfigurationProvider: DefaultConfigurationProvider<ToolingConfiguration>

類型