create-template
Generate and customize templates for Novita MCP Server instances, specifying Docker images, environment variables, exposed ports, and startup commands. Ideal for streamlining instance deployments and configurations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
template | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"template": {
"additionalProperties": false,
"properties": {
"channel": {
"default": "private",
"description": "Channel for the template",
"enum": [
"private",
"community"
],
"type": "string"
},
"env": {
"description": "Environment variables",
"items": {
"additionalProperties": false,
"properties": {
"key": {
"description": "Environment variable key",
"maxLength": 2048,
"minLength": 1,
"type": "string"
},
"value": {
"description": "Environment variable value",
"maxLength": 2048,
"type": "string"
}
},
"required": [
"key",
"value"
],
"type": "object"
},
"type": "array"
},
"image": {
"description": "Docker image address for instance startup",
"maxLength": 500,
"minLength": 1,
"type": "string"
},
"imageAuth": {
"description": "ID of the container registry auth. Required only when the channel is private, or else keep it empty. You can use the `list-container-registry-auths` tool to check the ID if you're not sure.",
"type": "string"
},
"name": {
"description": "Name for the template, must be unique.",
"minLength": 2,
"type": "string"
},
"ports": {
"description": "Ports to expose",
"items": {
"additionalProperties": false,
"properties": {
"ports": {
"description": "Exposed port numbers, maximum of 10",
"items": {
"description": "Exposed port numbers, maximum of 10",
"maximum": 65535,
"minimum": 1,
"type": "number"
},
"maxItems": 10,
"type": "array"
},
"type": {
"description": "Type of exposed port",
"enum": [
"http",
"udp",
"tcp"
],
"type": "string"
}
},
"required": [
"type",
"ports"
],
"type": "object"
},
"type": "array"
},
"readme": {
"description": "Template README content (in Markdown format)",
"maxLength": 20480,
"type": "string"
},
"rootfsSize": {
"description": "Root filesystem size (/Container disk size) in GB",
"minimum": 10,
"type": "number"
},
"startCommand": {
"description": "Command to run when the instance starts",
"maxLength": 2047,
"type": "string"
},
"type": {
"default": "instance",
"description": "Type of template",
"enum": [
"instance",
"serverless"
],
"type": "string"
}
},
"required": [
"name",
"image",
"rootfsSize",
"ports"
],
"type": "object"
}
},
"required": [
"template"
],
"type": "object"
}