---
title: "Patch Agent Mcp Connection"
method: PATCH
path: "/agents/connections/mcp/{name}"
tags: ["Agents"]
---

# Patch Agent Mcp Connection

`PATCH /agents/connections/mcp/{name}`

Partial-update one external MCP connection by name.

``name`` is URL-encoded by the FE so quirks like spaces survive.
Switching ``authMode`` mid-patch swaps the discriminated-union
variant; the merged row re-validates fully so the FE can't end up
with an "unknown" auth mode mid-flight.

## Path parameters

- `name` string, required

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

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