AddPolarClawMCPServer
Adds an MCP server to a specified PolarClaw application.
Operation description
Description
The
ApplicationIdandServerNameparameters are required.The
ApplicationIdparameter specifies the application ID.The
ServerNameparameter specifies the MCP server name to add.A successful response returns the request ID, a message, a status code, the application ID, and the server name.
If the request fails, the API may return a 500 error code with a detailed error message.
Try it now
Test
RAM authorization
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 for the MCP server. |
test-v1 |
| ServerConfig |
object |
No |
The configuration object for the MCP server. |
{ "command": "node", "args": [ "-y", "@polarclaw/mcp-dev" ] } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned for a successful request. |
||
| RequestId |
string |
The request ID. |
2281C6C9-CBAB-1AFD-8400-670750CF6025_2212 |
| Message |
string |
The returned message. |
successful |
| Code |
integer |
The returned status code. |
200 |
| ApplicationId |
string |
The application ID. |
pa-************** |
| Ok |
boolean |
Indicates whether the operation was successful. |
True |
| ServerName |
string |
The name 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.