Logotype Sitevision Developer
Log in
Log in

McpServerImport REST API endpoint

Disclaimer: This endpoint documentation is generated from the latest Sitevision version. It might differ from the actual Sitevision environment where your website resides.

Use the RestApi utility of the Public API for server-side access of this endpoint.

McpServerImport

Import a McpServer archive to a MCP server custom module and remove an imported McpServer.

Applicable to: sv:mcpServerCustomModule of the sv:addonRepository.

POST (MULTI-PART)

Upload and install a McpServer to a sv:mcpServerCustomModule.

Permissions

Requires the feature "webapp" and that the user is authorized to MANAGE_ADDONS or has DEVELOPER authorization.

Example URL

213.6b9bf2d0177f80c4d6315/mcpServerImport

Curl example

Example using "curl" to upload the archive "./mcpserver.zip" to the MCP server custom module "myMcpServerModule" for site "www.intranet.com". The upload is performed by the "system" user.

curl --user system -X POST -H "Content-Type: multipart/form-data"
   -F "data=@./mcpserver.zip"
   https://www.intranet.com/rest-api/1/0/Intranet/Addon%20Repository/myMcpServerModule/mcpServerImport

Example response

{
   "id": "362.605cf571880f24240b34",
   "type": "sv:mcpServer",
   "name": "myMcpServer-1.0.0",
   "path": "/Intranet/McpServer Repository/myMcpServer-1.0.0"
}

DELETE

Delete a McpServer of a sv:mcpServerCustomModule.

Note that the active McpServer of a MCP server custom module cannot be removed.

Permissions

Requires the feature "webapp" and that the user is authorized to MANAGE_ADDONS or has DEVELOPER authorization.

Example URL

213.6b9bf2d0177f80c4d6315/mcpServerImport/362.605cf571880f24240b34

Example response

{
   "id": "362.605cf571880f24240b34",
   "type": "sv:mcpServer",
   "name": "myMcpServer-1.0.0",
   "path": "/Intranet/McpServer Repository/myMcpServer-1.0.0"
}
Did you find the content on this page useful?