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,29 @@
English | [简体中文](README-CN.md)
![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
## Alibaba Cloud Endpoint Util SDK for TypeScript/Node.js
## Prerequisite
Node.js >= 8.x
## Installation
If you use `npm` to manage your dependence, you can use the following command to install it and write into package.json dependences:
```sh
$ npm install @alicloud/endpoint-util -S
```
## Issues
[Opening an Issue](https://github.com/aliyun/endpoint-util/issues/new), Issues not conforming to the guidelines may be closed immediately.
## Changelog
Detailed changes for each release are documented in the [release notes](./ChangeLog.txt).
## References
* [Latest Release](https://github.com/aliyun/endpoint-util/tree/master/ts)
## License
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.

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"}

View File

@@ -0,0 +1,28 @@
{
"name": "@alicloud/endpoint-util",
"version": "0.0.2",
"description": "",
"main": "dist/client.js",
"scripts": {
"test": "mocha -r ts-node/register -r source-map-support/register test/**/*.spec.ts",
"test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test",
"ci": "npm run test-cov && codecov",
"build": "tsc",
"prepublishOnly": "tsc"
},
"author": "Jackson Tian",
"license": "Apache-2.0",
"devDependencies": {
"@types/mocha": "^7.0.1",
"@types/node": "^12.12.26",
"mocha": "^7.0.1",
"ts-node": "^8.6.2",
"typescript": "^3.7.5",
"nyc": "^15.0.1"
},
"dependencies": {},
"files": [
"dist",
"src"
]
}

View File

@@ -0,0 +1,31 @@
// This file is auto-generated, don't edit it
/**
* Get endpoint
* @return string
*/
export default class Client {
static getEndpointRules(product: string, regionId: string, endpointType: string, network: string, suffix: string): string {
let 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;
}
}