prodserver.mcp.deploy

June 16, 2026 ยท View on GitHub

endpoint = deploy(archive,host,port,opts)

Upload a Model Context Protocol-enabled CTF archive to an active MATLAB Production Server instance. Uses MATLAB Production Server's RESTful API. Before using this function, configure MATLAB Production Server to allow archive management via --enable-archive-management in the instance's main_config file.

Inputs

ArgumentTypeDescriptionExample
archivestringBase name of the generated archive."primeSequence"
hoststringName of the network host running MATLAB Production Server."mps.mathworks.com"
portuint16Port number on host.9910

Outputs

ArgumentTypeDescriptionExample
endpointstringNetwork endpoint of MCP server."http://localhost:9910/primeSequence/mcp"

Optional Inputs (Name/Value pairs)

Pass optional arguments with argument=value syntax following required inputs. For example: timeout=120.

ArgumentTypeDescriptionDefaultExample
httpslogicalUse HTTPS? Uses HTTP if false.falsetrue
overwritelogicalOverwrite existing archives?truetrue
retryintegerHow many times to retry HTTP requests?217
timeoutintegerNumber of seconds to wait for HTTP requests.18060
tokenstringJSON Web Token for authorizationNoneN/A
verifyintegerNumber of times to retry upload verification. Zero turns off verification.53

If verify is non-zero, deploy sends a ping to the uploaded archive to verify that upload an installation was successful. A newly uploaded archive is typically recogized by MATLAB Production Server very quickly -- expect verification to take a few seconds.

Examples

Upload primeSequence.ctf to a MATLAB Production Server instance running at localhost:9910 using HTTPS:

endpoint = prodserver.mcp.deploy("/work/deploy/primeSequence.ctf","localhost",9910,https=true);

Do not verify upload of "primeSequence.ctf":

endpoint = prodserver.mcp.deploy("/work/deploy/primeSequence.ctf","localhost",9910,verify=0);