領先一步
VMware 提供培訓和認證,助您加速進步。
瞭解更多我們很高興地宣佈 Spring AI MCP 0.6.0 里程碑版本釋出。
McpClient.using() - 請改用 McpClient.sync() 或 McpClient.async()McpServer.using() - 請改用 McpServer.sync() 或 McpServer.async()McpServer.ToolRegistration - 請改用 McpServerFeatures.SyncToolRegistration 或 McpServerFeatures.AsyncToolRegistrationMcpServer.ResourceRegistration - 請改用 McpServerFeatures.SyncResourceRegistration 或 McpServerFeatures.AsyncResourceRegistrationMcpServer.PromptRegistration - 請改用 McpServerFeatures.SyncPromptRegistration 或 McpServerFeatures.AsyncPromptRegistrationToolHelper.toToolRegistration() - 請改用 ToolHelper.toSyncToolRegistration()請遵循 0.6.0 遷移指南,以瞭解新的 API 更改。
// Synchronous client API
McpClient.sync(transport).build();
// Asynchronous client API
McpClient.async(transport).build();