---
title: "Duplicate a host"
method: POST
path: "/projects/{projectId}/hosts/{hostId}/duplicate"
tags: ["Hosts"]
---

# Duplicate a host

`POST /projects/{projectId}/hosts/{hostId}/duplicate`

Copies the host and responds `201` with the new host's detail. The copy SHARES the source's content-addressed config row rather than cloning it, so both hosts continue to describe the same configuration. Requires project admin.

## Path parameters

- `projectId` string, required
- `hostId` string, required

## Request body

- HostDuplicateRequest — Optional name for the copy; defaults to a derived name.
  - `name` string

## Response `201`

The duplicated host.

- HostDetail — 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.

## Other responses

- `400` — Malformed body or parameters.
- `401` — Missing, invalid, revoked, or orphaned key (`UNAUTHORIZED`) — or the **target MCP server** needs an OAuth grant (`OAUTH_REQUIRED`), which is a property of the server, not your key.
- `403` — Key is valid but not allowed to do this.
- `404` — Unknown project, server, or resource.
- `429` — Per-key rate limit exceeded (60 requests/minute sustained, bursts up to 10). Honor `Retry-After` and back off with jitter.
- `500` — Something failed on MCPJam's side.
- `502` — Could not connect to the target MCP server.

---

[API](https://skmtc.net/mcpjam/apis/mcpjam-api.md) · [All operations](https://skmtc.net/mcpjam/apis/mcpjam-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mcpjam/mcpjam-api/versions/75f218486b1d/schema)
