CreateMcpServer
Creates an MCP Server.
Operation description
Operation description
After submission, the system verifies the availability of the MCP Server based on the provided connection information.
If the MCP Server connection is unavailable, the operation returns the corresponding error message.
The Name field must start with a lowercase letter and can contain only lowercase letters, digits, underscores (_), and hyphens (-). The name must be unique within the current account.
The Visibility field defines the visibility level of the MCP Server. Valid values:
TENANT(visible within the account),PROJECT(visible to specified projects), andUSER(visible to specified users). Depending on the selected value, provide the correspondingVisibilityScopeparameter to further specify the visibility scope.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:CreateMcpServer |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the MCP Server. The name must be unique at the tenant level. It must start with a lowercase letter and can contain only |
my-mcp-server |
| Config |
object |
No |
The connection configuration of the MCP Server. |
- |
| Url |
string |
No |
The service URL of the MCP Server. The URL must start with |
https://example.com/mcp/sse |
| Transport |
string |
No |
The transport protocol. |
SSE |
| CustomHeaders |
object |
No |
The custom request headers (key-value pairs). Reserved headers cannot be overwritten. |
{} |
| Visibility |
string |
No |
The visibility level. |
TENANT |
| VisibilityScope |
object |
No |
The visibility scope. The corresponding field is used based on the Visibility value. |
|
| ProjectIds |
array |
No |
The list of project IDs that are visible. This parameter takes effect when Visibility is set to |
|
|
string |
No |
The DataWorks workspace ID. |
123456 |
|
| UserIds |
array |
No |
The list of user IDs that are visible. This parameter takes effect when Visibility is set to |
|
|
string |
No |
The user ID. |
123456 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The MCP Server that is created. |
||
| RequestId |
string |
The request ID. |
valueA |
| McpServer |
object |
The registered MCP Server. |
|
| Name |
string |
The name of the MCP Server. |
my-mcp-server |
| GmtCreateTime |
string |
The time when the MCP Server was created. The value is a 13-digit number, such as |
1780555634000 |
Examples
Success response
JSON format
{
"RequestId": "valueA",
"McpServer": {
"Name": "my-mcp-server",
"GmtCreateTime": "1780555634000"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.