Custom MCP Services
This topic describes how to create and configure a custom MCP server and debug it in an agent.
Create custom MCP server
-
Log in to theĀ Tuya Developer Platform.
-
Go toĀ MCP ManagementĀ >Ā Custom MCP Service, and clickĀ Add custom MCP.

Custom MCP Services -
In theĀ Sign up MCP ServerĀ dialog, enter the service name and description in Chinese and English, upload an image as the icon, and then clickĀ ConfirmĀ to save.

Custom MCP Services
Configure custom MCP server
If your custom MCP service is deployed across multiple data centers, ensure consistent service versions and tool configurations in all data centers to prevent compatibility issues that may disrupt agent orchestration or cause functional failures.
-
After creating the MCP server, you will automatically be redirected to itsĀ Service DetailsĀ page.
-
In the section ofĀ Service Access Configuration ManagementĀ >Ā Data Center, clickĀ Add Data CenterĀ on the right, select a data center as needed, and then clickĀ OK.

Custom MCP Services -
Click the selected data center, and you can see theĀ Endpoint,Ā Access ID, andĀ Access Secret. Copy and paste the information to your local device. Please note that these parameters will be used when running the MCP SDK later. For more information, see theĀ READMEĀ in theĀ GitHub source code.

Custom MCP Services
Access MCP server via SDK
Download the MCP SDK fromĀ GitHubĀ and read the relevant documents. Currently, only the SSE mode is supported.

Run and debug MCP Server
To ensure your custom MCP server operates properly, follow these steps to run and debug it within the agent environment:
Run and debugā
-
In the selected data center, check the service status of the MCP server.

Custom MCP Services -
On theĀ ToolĀ tab, view the available tools for your MCP server.

Custom MCP Services -
ClickĀ Test RunĀ to test your desired tool.

Custom MCP Services -
In theĀ Test RunĀ window, clickĀ Run. WhenĀ Commissioning passedĀ appear in the lower left corner, the MCP tool has been debugged successfully.

Custom MCP Services
Add server to agentā
-
Go to theĀ My AgentĀ page, clickĀ DevelopĀ in theĀ OperationĀ column.
-
In the sectionĀ 01 Model ConfigurationĀ >Ā Skills Configuration, findĀ PluginĀ and clickĀ +Ā on the right.

Custom MCP Services -
On theĀ Add ToolĀ page, selectĀ MCPĀ tab, clickĀ Custom MCP ServiceĀ and add the desired MCP server to your agent.

Custom MCP Services
So far, you have completed the development and debugging process of a custom MCP server.