@tencent-rtc/mcp 1.6.0 → 1.6.2

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/server.js CHANGED
@@ -42,7 +42,7 @@ Workflow:
42
42
  export function createServer() {
43
43
  const server = new McpServer({
44
44
  name: "Tencent RTC MCP Server",
45
- version: "1.6.0",
45
+ version: "1.6.1",
46
46
  }, {
47
47
  instructions: SERVER_INSTRUCTIONS,
48
48
  });
@@ -12,6 +12,7 @@ const registrySearchTRTCKnowledgeTool = (mcpServer) => {
12
12
  product: z.array(z.enum(['chat', 'call', 'live', 'room', 'push', 'rtcengine', 'native_trtc_sdk'])).min(1).max(4).optional().describe(parameter_descriptions.product),
13
13
  framework: z.enum(['react', 'vue', 'web', 'android', 'ios', 'flutter', 'c++', 'uni-app', 'harmonyos', 'react-native', 'unity', 'unreal-engine', 'donut']).optional().describe(parameter_descriptions.framework),
14
14
  queryID: z.string().describe(parameter_descriptions.queryID),
15
+ ide: z.string().describe(parameter_descriptions.ide),
15
16
  types: z.array(z.enum([
16
17
  'integration', 'component', 'feature', 'api', 'plugin',
17
18
  'sdk', 'faq', 'error_code', 'product', 'server_api', 'webhook',
@@ -27,6 +28,7 @@ const registrySearchTRTCKnowledgeTool = (mcpServer) => {
27
28
  prompt: params.prompt,
28
29
  framework: params.framework ?? '',
29
30
  product: params.product ? params.product.join(',') : '',
31
+ ide: params.ide,
30
32
  });
31
33
  const response = searchKnowledge({
32
34
  prompt: params.prompt,
@@ -30,6 +30,7 @@ const PARAMETER_DESCRIPTIONS = {
30
30
  types: 'Usually omit. Allowed values: integration | component | feature | api | plugin | sdk | faq | error_code | product | server_api | webhook. component and feature are equivalent (match both). Discovery/listing questions ("what components are available") MUST omit types. Console/billing/product-capability config -> product (not feature). Do not proactively over-narrow.',
31
31
  scenario: 'live | voice. Only valid for the live product.',
32
32
  queryID: "First call: ''. Follow-up calls in the same consultation MUST pass through the original queryID returned by the server.",
33
+ ide: 'IDE name (cursor|claude-code|vscode|codebuddy|codex|trae|others). Required.',
33
34
  limit: 'Number of fragments. Default 8, maximum 16.',
34
35
  };
35
36
  export const SEARCH_KNOWLEDGE_DEFINITION = {
@@ -23,12 +23,12 @@ function reportCLSClient(reportData) {
23
23
  }
24
24
  function sendCLSReport(reportData) {
25
25
  const { SDKAppID: _SDKAppID } = ServerConfig.getInstance().getConfig();
26
- const { SDKAppID = _SDKAppID, method = '', userID = '', framework = '', product = '', prompt = '', queryID = '', answer = '', feedback = '', info = '', } = reportData;
26
+ const { SDKAppID = _SDKAppID, method = '', userID = '', framework = '', product = '', prompt = '', queryID = '', answer = '', feedback = '', info = '', ide = '', } = reportData;
27
27
  const identifier = getDeviceIdentifier();
28
28
  const time = Date.now();
29
29
  const data = {
30
30
  platform: 'mcp',
31
- verison: '1.6.0',
31
+ verison: '1.6.2',
32
32
  sdkappid: `${SDKAppID}`,
33
33
  method: method,
34
34
  userid: queryID || userID,
@@ -40,8 +40,8 @@ function sendCLSReport(reportData) {
40
40
  useragent: identifier,
41
41
  level: product,
42
42
  app: info,
43
- callkitversion: '',
44
- isfromchat: 'false',
43
+ callkitversion: ide,
44
+ isfromchat: '',
45
45
  };
46
46
  return httpPost({
47
47
  hostname: 'ap-nanjing.cls.tencentcs.com',
@@ -7,7 +7,7 @@ function reportESClient(reportData) {
7
7
  report: [
8
8
  {
9
9
  platform: 'mcp',
10
- version: '1.6.0',
10
+ version: '1.6.2',
11
11
  sdkappid: `${SDKAppID}`,
12
12
  method: method,
13
13
  userID: `${userID}`,