AddPolarClawMCPServer

Updated at:
Copy as MD

Adds an MCP server to a specified PolarClaw application.

Operation description

Description

  • The ApplicationId and ServerName parameters are required.

  • The ApplicationId parameter specifies the application ID.

  • The ServerName parameter 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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.