Skip to main content

Save MCP Server

Used to create or update an MCP (Model Context Protocol) server. This allows you to register MCP server metadata in your project, enabling integration with external services and tools that support the Model Context Protocol.

API Endpoint

PropertyValue
Request MethodPOST
Request URLhttps://api.seliseblocks.com/tools/mcp-server

Request

Request Example

curl -X POST 'https://api.seliseblocks.com/tools/mcp-server' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"id": "mcp_server_123",
"name": "Customer Data Server",
"description": "MCP server for accessing customer data and analytics",
"project_key": "YOUR_PROJECT_KEY"
}'

Request Headers

FieldTypeRequiredDescription
acceptstringYesAccepted response format. Use application/json
Content-Typeapplication/jsonYesData type, must be application/json.

Request Body

Request Body Schema

{
"id": "string",
"name": "string",
"description": "string",
"project_key": "string"
}

Request Body Parameters

FieldTypeRequiredDescription
idstringYesUnique identifier for the MCP server.
namestringYesDisplay name of the MCP server.
descriptionstringYesDetailed description of the MCP server's purpose and functionality.
project_keystringYesThe project key for your project.
note

MCP Server Configuration

  • id: Use a unique, descriptive identifier for the MCP server
  • name: Should be human-readable and clearly identify the server's purpose
  • description: Provide context about what data or services the MCP server provides
  • This endpoint saves metadata only; actual MCP server connection details are configured separately
tip

After saving an MCP server, the system will:

  • Create a new MCP server entry if the ID doesn't exist
  • Update the existing MCP server if the ID already exists
  • Associate the server with the specified project
  • Make the server available for use with AI agents in the project
  • Validate that all required fields are provided

Response

Success Response (201 Created)

Returns an object containing the save status.

{
"is_success": true,
"item_id": "mcp_server_123",
"detail": "MCP server saved successfully",
"error": {}
}

Response Fields

FieldTypeDescription
is_successbooleanIndicates whether the operation was successful.
item_idstringThe identifier of the saved MCP server.
detailstringSuccess or failure message with additional context.
errorobjectError details if the operation failed (empty if successful).

Error Response (422 Unprocessable Entity)

Returns validation error details when the request body is invalid.

{
"detail": [
{
"loc": [
"body",
"project_key"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}

Error Response Fields

FieldTypeDescription
detailarrayArray of validation error objects.
locarrayLocation of the error in the request (e.g., body field).
msgstringHuman-readable error message.
typestringError type identifier.

Error Codes

Status CodeDescriptionResponse Type
201Created - MCP server saved successfullySuccess
400Bad Request - Invalid MCP server dataBad Request
409Conflict - MCP server ID already existsConflict
422Validation Error - Invalid request parametersUnprocessable Entity