Skip to main content
POST
Replace a host's server attachments

Authorizations

Authorization
string
header
required

MCPJam API key (sk_…). Create one at Settings → API keys. Guest sessions cannot use the API, and API keys cannot manage other API keys.

Path Parameters

projectId
string
required

ID of the hosted project that contains the server.

hostId
string
required

Host ID, as returned by the project's host list.

Body

application/json

Replaces the host's server attachments wholesale. Every id must name a live server in the same project.

serverIds
string[]
required
optionalServerIds
string[]

Attached but not required to connect.

Response

The updated host.

A host plus its resolved host config (model, capabilities, host context, MCP profile).

id
string
required
name
string
required
config
object
required

Host config v2 DTO. Opaque object; shape mirrors the inspector's host editor.