feat: update MCP config and TOOLS.md with calendar/contacts note

This commit is contained in:
root
2026-03-29 18:45:26 +08:00
parent 1a9fdc7274
commit c3e845f89c
3427 changed files with 2447281 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
/**
* Get endpoint
* @return string
*/
export default class Client {
static getEndpointRules(product: string, regionId: string, endpointType: string, network: string, suffix: string): string;
}

View File

@@ -0,0 +1,37 @@
"use strict";
// This file is auto-generated, don't edit it
/**
* Get endpoint
* @return string
*/
Object.defineProperty(exports, "__esModule", { value: true });
var Client = /** @class */ (function () {
function Client() {
}
Client.getEndpointRules = function (product, regionId, endpointType, network, suffix) {
var result;
if (network && network.length && network != "public") {
network = "-" + network;
}
else {
network = "";
}
suffix = suffix || "";
if (suffix.length) {
suffix = "-" + suffix;
}
if (endpointType == "regional") {
if (!regionId || !regionId.length) {
throw new Error("RegionId is empty, please set a valid RegionId");
}
result = "" + product + suffix + network + "." + regionId + ".aliyuncs.com";
}
else {
result = "" + product + suffix + network + ".aliyuncs.com";
}
return result;
};
return Client;
}());
exports.default = Client;
//# sourceMappingURL=client.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";AAAA,6CAA6C;AAC7C;;;GAGG;;AAEH;IAAA;IAwBA,CAAC;IAtBQ,uBAAgB,GAAvB,UAAwB,OAAe,EAAE,QAAgB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc;QAC9G,IAAI,MAAM,CAAC;QACX,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,IAAI,QAAQ,EAAE;YACpD,OAAO,GAAG,GAAG,GAAG,OAAO,CAAC;SACzB;aAAM;YACL,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;QACtB,IAAI,MAAM,CAAC,MAAM,EAAE;YACjB,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC;SACvB;QACD,IAAI,YAAY,IAAI,UAAU,EAAE;YAC9B,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;gBACjC,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;aACnE;YACD,MAAM,GAAG,KAAG,OAAO,GAAG,MAAM,GAAG,OAAO,SAAI,QAAQ,kBAAe,CAAC;SACnE;aAAM;YACL,MAAM,GAAG,KAAG,OAAO,GAAG,MAAM,GAAG,OAAO,kBAAe,CAAC;SACvD;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAEH,aAAC;AAAD,CAAC,AAxBD,IAwBC"}