Server Deployment
A server deployment represents a specific instance of an MCP server that can be connected to. It contains configuration for the MCP server, such as API keys for the underlying MCP server.
Server Deployment object
Attributes
object
Stringid
StringThe unique identifier of the server deployment
status
EnumThe current status of the server deployment
name
StringThe name of the server deployment
description
StringNullableAn optional description of the server deployment
oauth_connection
ObjectNullablecallback
ObjectNullableresult
ObjectThe result status of the server deployment, indicating success, pending actions, or failure details
metadata
ObjectAdditional arbitrary metadata related to the server deployment
secret_id
StringIdentifier for associated secrets related to this deployment
server
Objectconfig
Objectserver_implementation
Objectaccess
ObjectNullablecreated_at
DateTimestamp when the server deployment was created
updated_at
DateTimestamp when the server deployment was last updated
{"object": "server.server_deployment","status": "active","oauth_connection": {"object": "provider_oauth.connection","status": "active","metadata": {},"provider": {"name": "GitHub","url": "https://github.com","image_url": "https://camo.metorial.com/igu4hi54high"},"config": {"type": "json","config": {},"scopes": ["repo","repo"]}},"callback": {"object": "callback","type": "webhook_managed","schedule": {"object": "callback.schedule"}},"result": {"status": "active"},"metadata": {},"server": {"object": "server#preview","type": "public"},"config": {"object": "server.server_deployment.config","status": "active"},"server_implementation": {"object": "server.server_implementation","status": "active","metadata": {},"server_variant": {"object": "server.server_variant#preview","source": {"type": "docker","docker": {}}},"server": {"object": "server#preview","type": "public"}},"access": {"ip_allowlist": {"status": "enabled"}}}
List server deployments
Retrieve a list of server deployments within the instance. Supports filtering by status, server, variant, and session.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalserver_id
UnionOptionalserver_variant_id
UnionOptionalserver_implementation_id
UnionOptionalsession_id
UnionOptionalsearch
StringOptionalcurl -X GET "https://api.metorial.com/server-deployments" \-H "Authorization: Bearer metorial_sk_..."
Get server deployment
Fetch detailed information about a specific server deployment.
URL Parameters
server_deployment_id
StringThe unique identifier for the server_deployment
curl -X GET "https://api.metorial.com/server-deployments/ser_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create server deployment
Create a new server deployment using an existing or newly defined server implementation.
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalA key-value map
oauth_config
ObjectOptionalaccess
ObjectOptionalserver_deployment_template_id
StringOptionalcurl -X POST "https://api.metorial.com/server-deployments" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"oauth_config": {"client_id": "example_client_id","client_secret": "example_client_secret"},"access": {"ip_allowlist": {"ip_whitelist": ["example_item"],"ip_blacklist": ["example_item"]}},"server_deployment_template_id": "example_server_deployment_template_id","config": {},"server_implementation": {"name": "example_name","description": "example_description","metadata": {},"get_launch_params": "example_get_launch_params"}}'
Update server deployment
Update metadata, configuration, or other properties of a server deployment.
URL Parameters
server_deployment_id
StringThe unique identifier for the server_deployment
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalA key-value map
config
ObjectOptionalA key-value map
access
ObjectOptionalcurl -X PATCH "https://api.metorial.com/server-deployments/ser_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"config": {},"access": {"ip_allowlist": {"ip_whitelist": ["example_item"],"ip_blacklist": ["example_item"]}}}'
Delete server deployment
Delete a server deployment from the instance.
URL Parameters
server_deployment_id
StringThe unique identifier for the server_deployment
curl -X DELETE "https://api.metorial.com/server-deployments/ser_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."