@tencent-rtc/mcp 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/resource/doc/chatuikit/react/chat_window_integration.md +20 -17
- package/resource/doc/chatuikit/react/integration.md +21 -13
- package/resource/doc/tuicallkit/react/api.md +1383 -0
- package/resource/doc/tuicallkit/react/integration.md +101 -0
- package/resource/doc/tuicallkit/vue/api.md +1385 -0
- package/resource/doc/tuicallkit/vue/integration.md +98 -0
- package/tools/call/get-web-call-api.js +31 -0
- package/tools/call/get-web-call-api.js.map +1 -0
- package/tools/call/get-web-call-integration.js +8 -10
- package/tools/call/get-web-call-integration.js.map +1 -1
- package/tools/common/get-official-experience-account.js +52 -0
- package/tools/common/get-official-experience-account.js.map +1 -0
- package/tools/common/get-usersig.js +2 -2
- package/tools/index.js +4 -0
- package/tools/index.js.map +1 -1
- package/resource/doc/tuicallkit/react/.gitkeep +0 -0
- package/resource/doc/tuicallkit/react/api_TUICallKit.md +0 -354
- package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +0 -195
- package/resource/doc/tuicallkit/react/how_to_run_react_callkit_demo.md +0 -61
- package/resource/doc/tuicallkit/vue/.gitkeep +0 -0
- package/resource/doc/tuicallkit/vue/api_TUICallKit.md +0 -354
- package/resource/doc/tuicallkit/vue/how_to_integrated_vue_callkit.md +0 -187
- package/resource/doc/tuicallkit/vue/how_to_run_vue_callkit_demo.md +0 -61
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
The AI model must comply with the following **mandatory technical restrictions**:
|
|
2
|
+
* **Audio and video call component API usage limits:** You must use `TUICallKitAPI.calls` to initiate a call. The `call` and `groupCall` APIs are deprecated and not recommended. TUICallKit does not provide `on/off` APIs.
|
|
3
|
+
* **Integration step limits:** You must strictly follow the document procedure and description when integrating the component.
|
|
4
|
+
* **Call interface display limits:** During a call, TUICallKit automatically controls component visibility. You just need to place the component in an appropriate location. On PC large screens, you must use `transform: translate(-50%, -50%)` for centered display. On H5, full screen display is required.
|
|
5
|
+
* **Call interface closing limits:** All popups and overlays must be closed after closing the call interface.
|
|
6
|
+
* **Login UI limits:** When creating a new project with TUICallKit integration, you must generate a beautiful login UI for a better call experience. Generating a login UI is optional when integrating into an existing project.
|
|
7
|
+
* **Trial user limits:** When creating a new project with TUICallKit integration, the system automatically generates 2 trial userIDs and calls the `get_usersig` tool to retrieve userSig for population in code.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# calls-uikit-vue Integration
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## 1 Integration of TUICallKit
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 1.1 step1:create vue3 project
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
if you don't have a vue3 project, you can use vite create a vue3 project. otherwise, you can skip this step.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
requirement: vue3: ^3.0.0, nodejs: ^22.0.0.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
if it is a new project, guide the user to use vite to create a vue3 project manually, and then continue with step 1.2. if it is an existing project, skip this step and continue with step 1.2.
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pnpm create vite@latest
|
|
30
|
+
# skip some settings
|
|
31
|
+
cd ${your-vue-project-name}
|
|
32
|
+
pnpm install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### 1.2 step2: install calls-uikit-vue
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
use npm or pnpm to install @trtc/calls-uikit-vue@latest
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### 1.3 step3: add main content to your project
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
```vue
|
|
46
|
+
<template>
|
|
47
|
+
<div>
|
|
48
|
+
<span> caller's ID: </span>
|
|
49
|
+
<input type="text" v-model="callerUserID">
|
|
50
|
+
<button @click="init"> step1. init </button> <br>
|
|
51
|
+
<span> callee's ID: </span>
|
|
52
|
+
<input type="text" v-model="calleeUserID">
|
|
53
|
+
<button @click="call"> step2. call </button>
|
|
54
|
+
<Teleport to="body">
|
|
55
|
+
<TUICallKit style="
|
|
56
|
+
position: fixed;
|
|
57
|
+
top: 50%;
|
|
58
|
+
left: 50%;
|
|
59
|
+
transform: translate(-50%, -50%) !important;
|
|
60
|
+
z-index: 1000;"
|
|
61
|
+
/>
|
|
62
|
+
</Teleport>
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
<script setup>
|
|
66
|
+
import { ref } from 'vue';
|
|
67
|
+
import { TUICallKit, TUICallKitAPI, CallMediaType } from "@trtc/calls-uikit-vue";
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
const callerUserID = ref('');
|
|
71
|
+
const calleeUserID = ref('');
|
|
72
|
+
const SDKAppID = 0; // TODO: Replace with your SDKAppID (Notice: SDKAppID is of type number)
|
|
73
|
+
const userSig = ''; // TODO: Replace with your userSig
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// init TUICallKit
|
|
77
|
+
const init = async () => {
|
|
78
|
+
await TUICallKitAPI.init({
|
|
79
|
+
userID: callerUserID.value,
|
|
80
|
+
userSig,
|
|
81
|
+
SDKAppID,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
// Start a video call
|
|
87
|
+
const call = async () => {
|
|
88
|
+
await TUICallKitAPI.calls({
|
|
89
|
+
userIDList: [calleeUserID.value],
|
|
90
|
+
type: CallMediaType.VIDEO,
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
</script>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## Important reminder
|
|
98
|
+
If you need custom implementation of more TUICallKit capabilities, use the tool `get_web_call_api` to access the TUICallKit Client API document.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getDocContent } from '../../utils/get-doc-content.js';
|
|
3
|
+
import { aegisClient } from '../../utils/aegis-client.js';
|
|
4
|
+
const description = `
|
|
5
|
+
This is a tool specifically designed to provide the CallKit component API. Users need to use this tool when they need to query the CallKit component API or customize the CallKit UI. | 这是一个专门负责提供 TUICallKit 组件 API 的工具,当用户需要查询 CallKit 组件 API 或者需要自定义 CallKit UI 界面 时需要调用这个工具:\n
|
|
6
|
+
1. The TUICallKit component API provides capabilities such as setting your own avatar and nickname, setting custom ringtones, setting floating windows, setting virtual backgrounds, setting call interface layouts, and setting default camera behavior. | 1. TUICallKit 组件 API 提供设置自己头像和昵称、设置自定义铃音、设置悬浮窗、设置虚拟背景、设置通话界面布局、设置摄像头默认行为 等能力。\n
|
|
7
|
+
2. If the user has not explicitly specified a framework, you must first use the tools 'present_framework_choice' to show the user the interface for selecting the framework type. | 3. 在用户没有明确指定框架的情况下,必须先使用 tools 'present_framework_choice' 给用户展示选择框架类型界面。\n
|
|
8
|
+
`;
|
|
9
|
+
function getResultText(params) {
|
|
10
|
+
const { framework = '' } = params;
|
|
11
|
+
aegisClient.report({
|
|
12
|
+
name: 'get_web_call_uikit_api',
|
|
13
|
+
ext2: framework,
|
|
14
|
+
from: 'en',
|
|
15
|
+
});
|
|
16
|
+
return getDocContent(['tuicallkit', `${framework}`, 'api.md']);
|
|
17
|
+
}
|
|
18
|
+
const registryGetWebCallKitAPITool = (mcpServer) => {
|
|
19
|
+
mcpServer.tool('get_web_call_uikit_api', description, {
|
|
20
|
+
framework: z.enum(['react', 'vue']).describe('Web call tuikit framework types: Users can explicitly specify a framework or be guided to choose a framework to meet their needs. Currently supported frameworks include: React and Vue. | web call tuikit 框架类型,用户可以明确指定框架或者通过提示引导用户选择一种框架来实现需求,目前支持的框架有: react、vue。'),
|
|
21
|
+
}, (params) => ({
|
|
22
|
+
content: [
|
|
23
|
+
{
|
|
24
|
+
type: 'text',
|
|
25
|
+
text: getResultText(params),
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
export { registryGetWebCallKitAPITool };
|
|
31
|
+
//# sourceMappingURL=get-web-call-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-web-call-api.js","sourceRoot":"","sources":["../../../src/tools/call/get-web-call-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,WAAW,GAAG;;;;CAInB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAChC,WAAW,CAAC,MAAM,CAAC;QACnB,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,4BAA4B,GAAG,CAAC,SAAoB,EAAE,EAAE;IAC5D,SAAS,CAAC,IAAI,CACZ,wBAAwB,EACxB,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,sQAAsQ,CAAC;KACrT,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
|
|
@@ -2,26 +2,24 @@ import { z } from 'zod';
|
|
|
2
2
|
import { getDocContent } from '../../utils/get-doc-content.js';
|
|
3
3
|
import { aegisClient } from '../../utils/aegis-client.js';
|
|
4
4
|
const description = `
|
|
5
|
-
This is a tool specifically designed for creating
|
|
6
|
-
1.
|
|
7
|
-
2. The
|
|
8
|
-
3.
|
|
5
|
+
This is a tool specifically designed for creating Web PC or H5 audio and video calling applications using TUCallKit. Users need to call this tool when they need to integrate audio and video calling functionality. | 这是一个专门负责用 TUICallKit 创建 web PC 或 H5 音视频通话应用的工具,当用户需要集成音视频通话时需要调用这个工具:\n
|
|
6
|
+
1. TUICallKit enables functions and UI interfaces similar to those in WeChat or WeChat Work for audio and video calls. | 1. TUICallKit 能够实现一个功能和 UI 界面类似微信(WeChat)或者企业微信(企微)中音视频通话的能力。\n
|
|
7
|
+
2. The integration solution for components using the TUICallKit framework (React or Vue) depends on the user's choice of which framework to use to meet their requirements. | 2. TUICallKit react、vue 两种框架的组件集成方案,需要根据用户的选择决策使用哪一种框架来实现需求。\n
|
|
8
|
+
3. If the user has not explicitly specified a framework, you must first use the tools 'present_framework_choice' to show the user the interface for selecting the framework type. | 3. 在用户没有明确指定框架的情况下,必须先使用 tools 'present_framework_choice' 给用户展示选择框架类型界面。\n
|
|
9
|
+
4. After the TUICallKit component integration is complete and the project starts successfully, please call tools 'record_result' to record the integration results. | 4. 在 TUICallKit 组件集成完成且项目启动成功后,请调用 tools 'record_result' 记录集成结果。\n
|
|
9
10
|
`;
|
|
10
11
|
function getResultText(params) {
|
|
11
|
-
const {
|
|
12
|
+
const { framework = '' } = params;
|
|
12
13
|
aegisClient.report({
|
|
13
14
|
name: 'get_web_call_uikit_integration',
|
|
14
|
-
ext1: sdkAppId,
|
|
15
15
|
ext2: framework,
|
|
16
16
|
from: 'en',
|
|
17
17
|
});
|
|
18
|
-
return getDocContent(['tuicallkit', `${framework}
|
|
18
|
+
return getDocContent(['tuicallkit', `${framework}`, 'integration.md']);
|
|
19
19
|
}
|
|
20
20
|
const registryGetWebCallIntegrationTool = (mcpServer) => {
|
|
21
21
|
mcpServer.tool('get_web_call_uikit_integration', description, {
|
|
22
|
-
framework: z.enum(['react', 'vue']).describe('
|
|
23
|
-
sdkAppId: z.string().optional().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID。`),
|
|
24
|
-
// secretKey: z.string().describe(`The secretKey of your SDKAppID. |您的 SDKAppID 的 secretKey。`),
|
|
22
|
+
framework: z.enum(['react', 'vue']).describe('Web call tuikit framework types: Users can explicitly specify a framework or be guided to choose a framework to meet their needs. Currently supported frameworks include: React and Vue. | web call tuikit 框架类型,用户可以明确指定框架或者通过提示引导用户选择一种框架来实现需求,目前支持的框架有: react、vue。'),
|
|
25
23
|
}, (params) => ({
|
|
26
24
|
content: [
|
|
27
25
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-web-call-integration.js","sourceRoot":"","sources":["../../../src/tools/call/get-web-call-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,WAAW,GAAG
|
|
1
|
+
{"version":3,"file":"get-web-call-integration.js","sourceRoot":"","sources":["../../../src/tools/call/get-web-call-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,WAAW,GAAG;;;;;;CAMnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAChC,WAAW,CAAC,MAAM,CAAC;QACnB,IAAI,EAAE,gCAAgC;QACtC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,iCAAiC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACjE,SAAS,CAAC,IAAI,CACZ,gCAAgC,EAChC,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,sQAAsQ,CAAC;KACrT,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,iCAAiC,EAAE,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as https from 'https';
|
|
2
|
+
import { aegisClient } from '../../utils/aegis-client.js';
|
|
3
|
+
const description = `
|
|
4
|
+
It is only invoked when the user has not configured an SDKAppID or explicitly requested an experience account, making it convenient to quickly experience the integration of TUIKit with MCP. | 仅在用户没有配置 SDKAppID 或明确要求获取体验账号时才调用,方便快速体验 MCP 集成 TUIKit。
|
|
5
|
+
Precautions: | 注意事项:\n
|
|
6
|
+
1. Only allow users to be provided with 'SDKAppID', 'userID', and 'userSig' information. | 1. 只允许给用户提供 'SDKAppID'、'userID'、'userSig' 信息。
|
|
7
|
+
`;
|
|
8
|
+
function getOfficialExperienceAccount(url) {
|
|
9
|
+
return new Promise((resolve, reject) => {
|
|
10
|
+
https.get(url, (res) => {
|
|
11
|
+
let data = '';
|
|
12
|
+
res.on('data', (chunk) => {
|
|
13
|
+
data += chunk;
|
|
14
|
+
});
|
|
15
|
+
res.on('end', () => {
|
|
16
|
+
try {
|
|
17
|
+
resolve(JSON.parse(data));
|
|
18
|
+
}
|
|
19
|
+
catch (e) {
|
|
20
|
+
resolve(data);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}).on('error', (err) => {
|
|
24
|
+
reject(err);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
const registryGetOfficialExperienceAccountTool = (mcpServer) => {
|
|
29
|
+
mcpServer.tool('get-official-experience-account', description, {}, async () => {
|
|
30
|
+
const result = await getOfficialExperienceAccount('https://demos3w.trtc.tencent-cloud.com/prod/base/v1/auth_users/none_auth');
|
|
31
|
+
const { sdkAppId, userId, userSig } = result?.data || {};
|
|
32
|
+
aegisClient.report({
|
|
33
|
+
name: 'get-official-experience-account',
|
|
34
|
+
ext1: sdkAppId,
|
|
35
|
+
ext2: userId,
|
|
36
|
+
});
|
|
37
|
+
return {
|
|
38
|
+
content: [
|
|
39
|
+
{
|
|
40
|
+
type: 'text',
|
|
41
|
+
text: JSON.stringify({
|
|
42
|
+
'SDKAppID': sdkAppId,
|
|
43
|
+
'userID': `${userId}`,
|
|
44
|
+
'userSig': `${userSig}`,
|
|
45
|
+
}),
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
export { registryGetOfficialExperienceAccountTool };
|
|
52
|
+
//# sourceMappingURL=get-official-experience-account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-official-experience-account.js","sourceRoot":"","sources":["../../../src/tools/common/get-official-experience-account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,WAAW,GAAG;;;;CAInB,CAAC;AAEF,SAAS,4BAA4B,CAAC,GAAW;IAC/C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;YACrB,IAAI,IAAI,GAAG,EAAE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P,CAAC,CAAC;AAEF,OAAO,EAAE,wCAAwC,EAAE,CAAC"}
|
|
@@ -2,8 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
import { generateUserSig } from '../../utils/generate-usersig.js';
|
|
3
3
|
import { aegisClient } from '../../utils/aegis-client.js';
|
|
4
4
|
const description = `
|
|
5
|
-
|
|
6
|
-
1.
|
|
5
|
+
Prioritizes the use of the user-configured SDKAppID and secretKey to generate the userSig for user login. Applicable scenarios: | 优先使用用户配置的 SDKAppID 和 secretKey,生成用户登录的 userSig,适用场景:\n
|
|
6
|
+
1. Users wish to generate their own configured SDKAppID, userSig. | 1. 用户希望生成自己配置的 SDKAppID 用户 userSig。 \n
|
|
7
7
|
2. Logging into Tencent Cloud applications requires SDKAppID, userID, and userSig. | 2. 登录腾讯云应用需要 SDKAppID、userID、userSig\n
|
|
8
8
|
Precautions: | 注意事项:\n
|
|
9
9
|
1. ExpirationTime is optional, with a default value of 7 days. | 1. expireTime 可选,默认值为 7 天\n
|
package/tools/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { registryPresentFrameworkChoiceTool } from './common/present-framework-c
|
|
|
3
3
|
import { registryRecordPromptTool } from './common/record-prompt.js';
|
|
4
4
|
import { registryRecordResultTool } from './common/record-result.js';
|
|
5
5
|
import { registryGetUserSigTool } from './common/get-usersig.js';
|
|
6
|
+
import { registryGetOfficialExperienceAccountTool } from './common/get-official-experience-account.js';
|
|
6
7
|
// chat
|
|
7
8
|
import { registryGetWebChatIntegrationTool } from './chat/get-web-chat-integration.js';
|
|
8
9
|
import { registryGetWebChatWindowIntegrationTool } from './chat/get-web-chat-window-integration.js';
|
|
@@ -13,6 +14,7 @@ import { registryGetNativeChatIntegrationTool } from './chat/get-native-chat-int
|
|
|
13
14
|
import { registryGetChatFaqTool } from './chat/get-chat-faq.js';
|
|
14
15
|
// call
|
|
15
16
|
import { registryGetWebCallIntegrationTool } from './call/get-web-call-integration.js';
|
|
17
|
+
import { registryGetWebCallKitAPITool } from './call/get-web-call-api.js';
|
|
16
18
|
import { registryGetNativeCallIntegrationTool } from './call/get-native-call-integration.js';
|
|
17
19
|
import { registryGetCallFaqTool } from './call/get-call-faq.js';
|
|
18
20
|
// rtcengine
|
|
@@ -30,6 +32,7 @@ function registryTools(mcpServer) {
|
|
|
30
32
|
registryRecordPromptTool(mcpServer);
|
|
31
33
|
registryRecordResultTool(mcpServer);
|
|
32
34
|
registryGetUserSigTool(mcpServer);
|
|
35
|
+
registryGetOfficialExperienceAccountTool(mcpServer);
|
|
33
36
|
// chat
|
|
34
37
|
registryGetWebChatIntegrationTool(mcpServer);
|
|
35
38
|
registryGetWebChatWindowIntegrationTool(mcpServer);
|
|
@@ -40,6 +43,7 @@ function registryTools(mcpServer) {
|
|
|
40
43
|
registryGetChatFaqTool(mcpServer);
|
|
41
44
|
// call
|
|
42
45
|
registryGetWebCallIntegrationTool(mcpServer);
|
|
46
|
+
registryGetWebCallKitAPITool(mcpServer);
|
|
43
47
|
registryGetNativeCallIntegrationTool(mcpServer);
|
|
44
48
|
registryGetCallFaqTool(mcpServer);
|
|
45
49
|
// rtcengine
|
package/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,SAAS;AACT,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO;AACP,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,0BAA0B,EAAE,MA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C,SAAS,CAAC,CAAC;IAC7C,OAAO;IACP,iCAAiC,CAAC,SAAS,CAAC,CAAC;AAC/C,CAAC;AAED,OAAO,EACL,aAAa,GACd,CAAA"}
|
|
File without changes
|
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
## TUICallKit (including UI Interface)
|
|
2
|
-
|
|
3
|
-
## TUICallKit APIs
|
|
4
|
-
|
|
5
|
-
UICallKit API, you can quickly implement a WeChat-like audio and video call scenario through simple interfaces.
|
|
6
|
-
<table>
|
|
7
|
-
<tr>
|
|
8
|
-
<td rowspan="1" colSpan="1" >API</td>
|
|
9
|
-
|
|
10
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
11
|
-
</tr>
|
|
12
|
-
|
|
13
|
-
<tr>
|
|
14
|
-
<td rowspan="1" colSpan="1" >[login](https://write.woa.com/document/162412580951224320)</td>
|
|
15
|
-
|
|
16
|
-
<td rowspan="1" colSpan="1" >Login.</td>
|
|
17
|
-
</tr>
|
|
18
|
-
|
|
19
|
-
<tr>
|
|
20
|
-
<td rowspan="1" colSpan="1" >[logout](https://write.woa.com/document/162412580951224320)</td>
|
|
21
|
-
|
|
22
|
-
<td rowspan="1" colSpan="1" >Logout.</td>
|
|
23
|
-
</tr>
|
|
24
|
-
|
|
25
|
-
<tr>
|
|
26
|
-
<td rowspan="1" colSpan="1" >[calls](https://write.woa.com/document/162412580951224320)</td>
|
|
27
|
-
|
|
28
|
-
<td rowspan="1" colSpan="1" >Initiate a one-to-one or multi-person call.</td>
|
|
29
|
-
</tr>
|
|
30
|
-
|
|
31
|
-
<tr>
|
|
32
|
-
<td rowspan="1" colSpan="1" >[call](https://write.woa.com/document/162412580951224320)</td>
|
|
33
|
-
|
|
34
|
-
<td rowspan="1" colSpan="1" >To make a one-on-one call, supports custom room ID, call timeout, offline push content, and more.</td>
|
|
35
|
-
</tr>
|
|
36
|
-
|
|
37
|
-
<tr>
|
|
38
|
-
<td rowspan="1" colSpan="1" >[groupCall](https://write.woa.com/document/162412580951224320)</td>
|
|
39
|
-
|
|
40
|
-
<td rowspan="1" colSpan="1" >To make a group call, supports custom room ID, call timeout, offline push content, and more.</td>
|
|
41
|
-
</tr>
|
|
42
|
-
|
|
43
|
-
<tr>
|
|
44
|
-
<td rowspan="1" colSpan="1" >[joinInGroupCall](https://write.woa.com/document/162412580951224320)</td>
|
|
45
|
-
|
|
46
|
-
<td rowspan="1" colSpan="1" >Join a group call.</td>
|
|
47
|
-
</tr>
|
|
48
|
-
|
|
49
|
-
<tr>
|
|
50
|
-
<td rowspan="1" colSpan="1" >[setCallingBell](https://write.woa.com/document/162412580951224320)</td>
|
|
51
|
-
|
|
52
|
-
<td rowspan="1" colSpan="1" >Customize user's ringtone.</td>
|
|
53
|
-
</tr>
|
|
54
|
-
|
|
55
|
-
<tr>
|
|
56
|
-
<td rowspan="1" colSpan="1" >[enableMuteMode](https://write.woa.com/document/162412580951224320)</td>
|
|
57
|
-
|
|
58
|
-
<td rowspan="1" colSpan="1" >Enable/Disable Ringtone.</td>
|
|
59
|
-
</tr>
|
|
60
|
-
|
|
61
|
-
<tr>
|
|
62
|
-
<td rowspan="1" colSpan="1" >[enableVirtualBackground](https://write.woa.com/document/162412580951224320)</td>
|
|
63
|
-
|
|
64
|
-
<td rowspan="1" colSpan="1" >Enable/disable blurry background feature.</td>
|
|
65
|
-
</tr>
|
|
66
|
-
|
|
67
|
-
<tr>
|
|
68
|
-
<td rowspan="1" colSpan="1" >[setScreenOrientation](https://write.woa.com/document/162412580951224320)</td>
|
|
69
|
-
|
|
70
|
-
<td rowspan="1" colSpan="1" >Set Screen Orientation.</td>
|
|
71
|
-
</tr>
|
|
72
|
-
|
|
73
|
-
<tr>
|
|
74
|
-
<td rowspan="1" colSpan="1" >[on](https://write.woa.com/document/162412580951224320)</td>
|
|
75
|
-
|
|
76
|
-
<td rowspan="1" colSpan="1" >Listen to TUICallKit events.</td>
|
|
77
|
-
</tr>
|
|
78
|
-
|
|
79
|
-
<tr>
|
|
80
|
-
<td rowspan="1" colSpan="1" >[off](https://write.woa.com/document/162412580951224320)</td>
|
|
81
|
-
|
|
82
|
-
<td rowspan="1" colSpan="1" >Cancel listening to TUICallKit events.</td>
|
|
83
|
-
</tr>
|
|
84
|
-
</table>
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
## TUICallEvent
|
|
88
|
-
|
|
89
|
-
TUICallEvent is the callback event class corresponding to TUICallKit. Through this callback, you can listen to the callback events you are interested in.
|
|
90
|
-
<table>
|
|
91
|
-
<tr>
|
|
92
|
-
<td rowspan="1" colSpan="1" >Event</td>
|
|
93
|
-
|
|
94
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
95
|
-
</tr>
|
|
96
|
-
|
|
97
|
-
<tr>
|
|
98
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onError](https://write.woa.com/document/162412628639113216)</td>
|
|
99
|
-
|
|
100
|
-
<td rowspan="1" colSpan="1" >Error Callback during Call.</td>
|
|
101
|
-
</tr>
|
|
102
|
-
|
|
103
|
-
<tr>
|
|
104
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onCallReceived](https://write.woa.com/document/162412628639113216)</td>
|
|
105
|
-
|
|
106
|
-
<td rowspan="1" colSpan="1" >Callback for a Call Request.</td>
|
|
107
|
-
</tr>
|
|
108
|
-
|
|
109
|
-
<tr>
|
|
110
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onCallCancelled](https://write.woa.com/document/162412628639113216)</td>
|
|
111
|
-
|
|
112
|
-
<td rowspan="1" colSpan="1" >Callback for Call Cancellation.</td>
|
|
113
|
-
</tr>
|
|
114
|
-
|
|
115
|
-
<tr>
|
|
116
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onCallBegin](https://write.woa.com/document/162412628639113216)</td>
|
|
117
|
-
|
|
118
|
-
<td rowspan="1" colSpan="1" >Callback for Call Connection.</td>
|
|
119
|
-
</tr>
|
|
120
|
-
|
|
121
|
-
<tr>
|
|
122
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onCallEnd](https://write.woa.com/document/162412628639113216)</td>
|
|
123
|
-
|
|
124
|
-
<td rowspan="1" colSpan="1" >Callback for Call Termination.</td>
|
|
125
|
-
</tr>
|
|
126
|
-
|
|
127
|
-
<tr>
|
|
128
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onUserReject](https://write.woa.com/document/162412628639113216)</td>
|
|
129
|
-
|
|
130
|
-
<td rowspan="1" colSpan="1" >xxxx User declines the call Callback.</td>
|
|
131
|
-
</tr>
|
|
132
|
-
|
|
133
|
-
<tr>
|
|
134
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onUserNoResponse](https://write.woa.com/document/162412628639113216)</td>
|
|
135
|
-
|
|
136
|
-
<td rowspan="1" colSpan="1" >xxxx User Non-response Callback.</td>
|
|
137
|
-
</tr>
|
|
138
|
-
|
|
139
|
-
<tr>
|
|
140
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onUserLineBusy](https://write.woa.com/document/162412628639113216)</td>
|
|
141
|
-
|
|
142
|
-
<td rowspan="1" colSpan="1" >xxxx User Busy Line Callback.</td>
|
|
143
|
-
</tr>
|
|
144
|
-
|
|
145
|
-
<tr>
|
|
146
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onUserJoin](https://write.woa.com/document/162412628639113216)</td>
|
|
147
|
-
|
|
148
|
-
<td rowspan="1" colSpan="1" >xxxx User Joins Call Callback.</td>
|
|
149
|
-
</tr>
|
|
150
|
-
|
|
151
|
-
<tr>
|
|
152
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onUserLeave](https://write.woa.com/document/162412628639113216)</td>
|
|
153
|
-
|
|
154
|
-
<td rowspan="1" colSpan="1" >A user left the call.</td>
|
|
155
|
-
</tr>
|
|
156
|
-
|
|
157
|
-
<tr>
|
|
158
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onCallMediaTypeChanged](https://write.woa.com/document/162412628639113216)</td>
|
|
159
|
-
|
|
160
|
-
<td rowspan="1" colSpan="1" >Callback for a change in the Call's Media Type.</td>
|
|
161
|
-
</tr>
|
|
162
|
-
|
|
163
|
-
<tr>
|
|
164
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onKickedOffline](https://write.woa.com/document/162412628639113216)</td>
|
|
165
|
-
|
|
166
|
-
<td rowspan="1" colSpan="1" >Current user kicked offline.</td>
|
|
167
|
-
</tr>
|
|
168
|
-
|
|
169
|
-
<tr>
|
|
170
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onUserSigExpired](https://write.woa.com/document/162412628639113216)</td>
|
|
171
|
-
|
|
172
|
-
<td rowspan="1" colSpan="1" >Ticket expired while online.</td>
|
|
173
|
-
</tr>
|
|
174
|
-
|
|
175
|
-
<tr>
|
|
176
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onUserVideoAvailable](https://write.woa.com/document/162412628639113216)</td>
|
|
177
|
-
|
|
178
|
-
<td rowspan="1" colSpan="1" >Whether a user has a video stream.</td>
|
|
179
|
-
</tr>
|
|
180
|
-
|
|
181
|
-
<tr>
|
|
182
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onUserAudioAvailable](https://write.woa.com/document/162412628639113216)</td>
|
|
183
|
-
|
|
184
|
-
<td rowspan="1" colSpan="1" >Whether a user has an audio stream.</td>
|
|
185
|
-
</tr>
|
|
186
|
-
|
|
187
|
-
<tr>
|
|
188
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onUserVoiceVolumeChanged](https://write.woa.com/document/162412628639113216)</td>
|
|
189
|
-
|
|
190
|
-
<td rowspan="1" colSpan="1" >The volume levels of all users.</td>
|
|
191
|
-
</tr>
|
|
192
|
-
|
|
193
|
-
<tr>
|
|
194
|
-
<td rowspan="1" colSpan="1" >[TUICallEvent.onUserNetworkQualityChanged](https://write.woa.com/document/162412628639113216)</td>
|
|
195
|
-
|
|
196
|
-
<td rowspan="1" colSpan="1" >The network quality of all users.</td>
|
|
197
|
-
</tr>
|
|
198
|
-
</table>
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
## TUICallEngine (No UI)
|
|
202
|
-
|
|
203
|
-
`TUICallEngine` is an audio/video call component that **does not include UI elements**. If `TUICallKit` does not meet your requirements, you can use the APIs of `TUICallEngine` to customize your project.
|
|
204
|
-
<table>
|
|
205
|
-
<tr>
|
|
206
|
-
<td rowspan="1" colSpan="1" >API</td>
|
|
207
|
-
|
|
208
|
-
<td rowspan="1" colSpan="1" >Description</td>
|
|
209
|
-
</tr>
|
|
210
|
-
|
|
211
|
-
<tr>
|
|
212
|
-
<td rowspan="1" colSpan="1" >[createInstance](https://write.woa.com/document/165654454250659840)</td>
|
|
213
|
-
|
|
214
|
-
<td rowspan="1" colSpan="1" >Creates a `TUICallEngine` instance (singleton mode).</td>
|
|
215
|
-
</tr>
|
|
216
|
-
|
|
217
|
-
<tr>
|
|
218
|
-
<td rowspan="1" colSpan="1" >[destroyInstance](https://write.woa.com/document/165654454250659840)</td>
|
|
219
|
-
|
|
220
|
-
<td rowspan="1" colSpan="1" >Terminates a `TUICallEngine` instance (singleton mode).</td>
|
|
221
|
-
</tr>
|
|
222
|
-
|
|
223
|
-
<tr>
|
|
224
|
-
<td rowspan="1" colSpan="1" >[login](https://write.woa.com/document/165654454250659840)</td>
|
|
225
|
-
|
|
226
|
-
<td rowspan="1" colSpan="1" >Authenticates the basic audio/video call capabilities.</td>
|
|
227
|
-
</tr>
|
|
228
|
-
|
|
229
|
-
<tr>
|
|
230
|
-
<td rowspan="1" colSpan="1" >[on](https://write.woa.com/document/165654454250659840)</td>
|
|
231
|
-
|
|
232
|
-
<td rowspan="1" colSpan="1" >Registers an event listener.</td>
|
|
233
|
-
</tr>
|
|
234
|
-
|
|
235
|
-
<tr>
|
|
236
|
-
<td rowspan="1" colSpan="1" >[off](https://write.woa.com/document/165654454250659840)</td>
|
|
237
|
-
|
|
238
|
-
<td rowspan="1" colSpan="1" >Unregisters an event listener.</td>
|
|
239
|
-
</tr>
|
|
240
|
-
|
|
241
|
-
<tr>
|
|
242
|
-
<td rowspan="1" colSpan="1" >[call](https://write.woa.com/document/165654454250659840)</td>
|
|
243
|
-
|
|
244
|
-
<td rowspan="1" colSpan="1" >Makes a one-to-one call.</td>
|
|
245
|
-
</tr>
|
|
246
|
-
|
|
247
|
-
<tr>
|
|
248
|
-
<td rowspan="1" colSpan="1" >[accept](https://write.woa.com/document/165654454250659840)</td>
|
|
249
|
-
|
|
250
|
-
<td rowspan="1" colSpan="1" >Accepts a call.</td>
|
|
251
|
-
</tr>
|
|
252
|
-
|
|
253
|
-
<tr>
|
|
254
|
-
<td rowspan="1" colSpan="1" >[reject](https://write.woa.com/document/165654454250659840)</td>
|
|
255
|
-
|
|
256
|
-
<td rowspan="1" colSpan="1" >Rejects a call.</td>
|
|
257
|
-
</tr>
|
|
258
|
-
|
|
259
|
-
<tr>
|
|
260
|
-
<td rowspan="1" colSpan="1" >[ignore](https://write.woa.com/document/165654454250659840)</td>
|
|
261
|
-
|
|
262
|
-
<td rowspan="1" colSpan="1" >Ignores a call.</td>
|
|
263
|
-
</tr>
|
|
264
|
-
|
|
265
|
-
<tr>
|
|
266
|
-
<td rowspan="1" colSpan="1" >[hangup](https://write.woa.com/document/165654454250659840)</td>
|
|
267
|
-
|
|
268
|
-
<td rowspan="1" colSpan="1" >Ends a call.</td>
|
|
269
|
-
</tr>
|
|
270
|
-
|
|
271
|
-
<tr>
|
|
272
|
-
<td rowspan="1" colSpan="1" >[switchCallMediaType](https://write.woa.com/document/165654454250659840)</td>
|
|
273
|
-
|
|
274
|
-
<td rowspan="1" colSpan="1" >Changes the call type, for example, from video call to audio call.</td>
|
|
275
|
-
</tr>
|
|
276
|
-
|
|
277
|
-
<tr>
|
|
278
|
-
<td rowspan="1" colSpan="1" >[startRemoteView](https://write.woa.com/document/165654454250659840)</td>
|
|
279
|
-
|
|
280
|
-
<td rowspan="1" colSpan="1" >Subscribes to the video stream of a remote user.</td>
|
|
281
|
-
</tr>
|
|
282
|
-
|
|
283
|
-
<tr>
|
|
284
|
-
<td rowspan="1" colSpan="1" >[stopRemoteView](https://write.woa.com/document/165654454250659840)</td>
|
|
285
|
-
|
|
286
|
-
<td rowspan="1" colSpan="1" >Unsubscribes from the video stream of a remote user.</td>
|
|
287
|
-
</tr>
|
|
288
|
-
|
|
289
|
-
<tr>
|
|
290
|
-
<td rowspan="1" colSpan="1" >[openCamera](https://write.woa.com/document/165654454250659840)</td>
|
|
291
|
-
|
|
292
|
-
<td rowspan="1" colSpan="1" >Turns the camera on.</td>
|
|
293
|
-
</tr>
|
|
294
|
-
|
|
295
|
-
<tr>
|
|
296
|
-
<td rowspan="1" colSpan="1" >[switchCamera](https://write.woa.com/document/165654454250659840)</td>
|
|
297
|
-
|
|
298
|
-
<td rowspan="1" colSpan="1" >Switches between the front and rear cameras.</td>
|
|
299
|
-
</tr>
|
|
300
|
-
|
|
301
|
-
<tr>
|
|
302
|
-
<td rowspan="1" colSpan="1" >[closeCamera](https://write.woa.com/document/165654454250659840)</td>
|
|
303
|
-
|
|
304
|
-
<td rowspan="1" colSpan="1" >Turns the camera off.</td>
|
|
305
|
-
</tr>
|
|
306
|
-
|
|
307
|
-
<tr>
|
|
308
|
-
<td rowspan="1" colSpan="1" >[openMicrophone](https://write.woa.com/document/165654454250659840)</td>
|
|
309
|
-
|
|
310
|
-
<td rowspan="1" colSpan="1" >Turns the mic on.</td>
|
|
311
|
-
</tr>
|
|
312
|
-
|
|
313
|
-
<tr>
|
|
314
|
-
<td rowspan="1" colSpan="1" >[closeMicrophone](https://write.woa.com/document/165654454250659840)</td>
|
|
315
|
-
|
|
316
|
-
<td rowspan="1" colSpan="1" >Turns the mic off.</td>
|
|
317
|
-
</tr>
|
|
318
|
-
|
|
319
|
-
<tr>
|
|
320
|
-
<td rowspan="1" colSpan="1" >[selectAudioPlaybackDevice](https://write.woa.com/document/165654454250659840)</td>
|
|
321
|
-
|
|
322
|
-
<td rowspan="1" colSpan="1" >Selects the audio playback device (receiver or speaker).</td>
|
|
323
|
-
</tr>
|
|
324
|
-
|
|
325
|
-
<tr>
|
|
326
|
-
<td rowspan="1" colSpan="1" >[setVideoRenderParams](https://write.woa.com/document/165654454250659840)</td>
|
|
327
|
-
|
|
328
|
-
<td rowspan="1" colSpan="1" >Set the rendering mode of video image.</td>
|
|
329
|
-
</tr>
|
|
330
|
-
|
|
331
|
-
<tr>
|
|
332
|
-
<td rowspan="1" colSpan="1" >[setVideoEncoderParams](https://write.woa.com/document/165654454250659840)</td>
|
|
333
|
-
|
|
334
|
-
<td rowspan="1" colSpan="1" >Set the encoding parameters of video encoder.</td>
|
|
335
|
-
</tr>
|
|
336
|
-
|
|
337
|
-
<tr>
|
|
338
|
-
<td rowspan="1" colSpan="1" >[setBeautyLevel](https://write.woa.com/document/165654454250659840)</td>
|
|
339
|
-
|
|
340
|
-
<td rowspan="1" colSpan="1" >Set beauty level, support turning off default beauty.</td>
|
|
341
|
-
</tr>
|
|
342
|
-
|
|
343
|
-
<tr>
|
|
344
|
-
<td rowspan="1" colSpan="1" >[setSelfInfo](https://write.woa.com/document/165654454250659840)</td>
|
|
345
|
-
|
|
346
|
-
<td rowspan="1" colSpan="1" >Sets the alias and profile photo.</td>
|
|
347
|
-
</tr>
|
|
348
|
-
|
|
349
|
-
<tr>
|
|
350
|
-
<td rowspan="1" colSpan="1" >[enableMultiDeviceAbility](https://write.woa.com/document/165654454250659840)</td>
|
|
351
|
-
|
|
352
|
-
<td rowspan="1" colSpan="1" >Sets whether to enable multi-device login for `TUICallEngine` .</td>
|
|
353
|
-
</tr>
|
|
354
|
-
</table>
|