Tencent Cloud Code AnalysisTencent Cloud Code Analysis
Guide
API
  • IDE

    • Visual Studio Code TCA Plugin
    • JetBrains IDEs TCA Plugin
  • CNB

    • CNB TCA Plugin
    • CNB TCA Badge
  • Jenkins

    • Jenkins TCA Plugin
  • MCP

    • TCA MCP Server
  • Advanced

    • Intranet Repository Analysis
    • Trigger Analysis via API
    • Optimizing Analysis Speed
    • Improving the Issue Detection Rate
  • Other

    • Issue Ignoring Methods
Try Now
  • Service Agreement
  • Privacy Agreement
  • 简体中文
  • English
Guide
API
  • IDE

    • Visual Studio Code TCA Plugin
    • JetBrains IDEs TCA Plugin
  • CNB

    • CNB TCA Plugin
    • CNB TCA Badge
  • Jenkins

    • Jenkins TCA Plugin
  • MCP

    • TCA MCP Server
  • Advanced

    • Intranet Repository Analysis
    • Trigger Analysis via API
    • Optimizing Analysis Speed
    • Improving the Issue Detection Rate
  • Other

    • Issue Ignoring Methods
Try Now
  • Service Agreement
  • Privacy Agreement
  • 简体中文
  • English
  • IDE

    • Visual Studio Code TCA Plugin
    • JetBrains IDEs TCA Plugin
  • CNB

    • CNB TCA Plugin
    • CNB TCA Badge
  • Jenkins

    • Jenkins TCA Plugin
  • MCP

    • TCA MCP Server

TCA MCP Server

The TCA MCP Server supports the MCP protocol, enabling rapid initiation of code analysis and obtaining code analysis reports via AI Q&A.

Tips

  • The TCA MCP service is hosted on Tencent Cloud MCP Square, and the source code for the TCA MCP Server can also be accessed from the open-source repository.

  • It is recommended to use Tencent Cloud CodeBuddy and install the TCA MCP Server in its MCP Marketplace.

Usage Guide

  1. First, create a team and project on TCA (if they already exist, you can skip this step), connect to the code repository to be analyzed, configure the analysis scheme as needed, and create an analysis project. For details, refer to Quick Start.

  2. Create a tca-mcp.ini configuration file in the code repository. The configuration file is stored in the root directory of the code repository, and its content is as follows:

    [config]
    org_sid=<org_sid>
    team_name=<team_name>
    repo_id=<repo_id>
    project_id=<project_id>
    

    The relevant parameters can be obtained from the routes on the corresponding pages, as shown in the following figure:

    MCP Server Configuration Guide

  3. Configure the TCA MCP Server:

    {
      "mcpServers": {
        "tca-mcp-server": {
          "command": "npx",
          "args": ["-y", "-p", "tca-mcp-server@latest", "tca-mcp-stdio"],
          "env": {
            "TCA_TOKEN": "<TCA_TOKEN>", 
            "TCA_USER_NAME": "<TCA_USER_NAME>"
          }
        }
      }
    }
    

    The corresponding TCA_TOKEN and TCA_USER_NAME can be obtained from Personal Center - Personal Token.

Last Updated:: 12/9/25, 2:27 PM
Contributors: faberihe