Adds an MCP server to a specified PolarClaw application.
Operation description
Request description
ApplicationIdandServerNameare required query parameters.ApplicationIdspecifies the ID of the application program to operate on.ServerNamespecifies the name of the MCP server to add.A successful response returns the request ID, message, status code, application program ID, and server name.
In case of a failed request, a 500 error code may be returned, along with a specific error message describing the fault.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:AddPolarClawMCPServer |
create |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
The application ID. |
pa-************** |
| ServerName |
string |
Yes |
The unique identifier of the MCP server. |
test-v1 |
| ServerConfig |
object |
No |
The MCP server configuration object. |
{ "command": "node", "args": [ "-y", "@polarclaw/mcp-dev" ] } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The successful response example. |
||
| RequestId |
string |
The request ID. |
2281C6C9-CBAB-1AFD-8400-670750CF6025_2212 |
| Message |
string |
The response message. |
successful |
| Code |
integer |
The response status code. |
200 |
| ApplicationId |
string |
The application ID. |
pa-************** |
| Ok |
boolean |
Indicates whether the operation is successful. |
True |
| ServerName |
string |
The ID of the added or updated MCP server. |
test-v1 |
Examples
Success response
JSON format
{
"RequestId": "2281C6C9-CBAB-1AFD-8400-670750CF6025_2212",
"Message": "successful",
"Code": 200,
"ApplicationId": "pa-**************",
"Ok": true,
"ServerName": "test-v1"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.