|
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64 User : ServerPC ( 0) PHP Version : 8.2.12 Disable Function : NONE Directory : C:/Program Files/WindowsApps/Microsoft.MicrosoftOfficeHub_19.2511.50071.0_x64__8wekyb3d8bbwe/ |
Upload File : |
(function () {
class McpClient {
static discoverAndDescribeMCPServers = () => {
return Office.Messenger.sendMessage('MCP.discoverAndDescribeMCPServers')
.then((result) => {
console.log("result", result);
return result;
})
.catch((error) => {
console.error("Error in discoverAndDescribeMCPServers:", error);
});
};
static callTool = (serverId, toolName, args) => {
return Office.Messenger.sendMessage('MCP.callTool', { serverId, toolName, args })
.then((result) => {
console.log("result", result);
return result;
})
.catch((error) => {
console.error("Error in callTool:", error);
});
}
}
// Extend the API to expose the McpTools functionality
extendAPI({
"Windows.Mcp": {
McpClient
}
});
})();