---
title: "Update Mcp Connection"
method: PATCH
path: "/api/v1/mcp-connections/{connection_id}"
tags: ["authed"]
---

# Update Mcp Connection

`PATCH /api/v1/mcp-connections/{connection_id}`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/mcp-connections/{connection_id}`
- Auth: none declared

Change a connection's tools: its member within their role, a holder of
member.manage only by unticking — power comes only from the member's
consent. The row stays locked from its read to the save, so no other
change is judged against tools this one replaces.

## Path parameters

- `connection_id` string, uuid, required

## Request body

- UpdateMcpConnectionRequest
  - `tools` string[], required: The tools the AI tool may call; organization basics are always added.

## Response `200`

Successful Response

- McpConnectionResponse
  - `id` string, uuid, required
  - `user_id` string, uuid, required: The member who connected the tool.
  - `oauth_client_id` string, required
  - `client_name` string, required: The name the tool registered under.
  - `tools` string[], required: The tools it may call that teaflask still offers.
  - `usable_tools` string[], required: The choosable tools its member's current role can give an AI tool; a stored tool outside them is off until the role allows it.
  - `new_tools` string[], required: Choosable tools teaflask added since its member last chose; they stay off until the member ticks them.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `last_used_at` string, date-time, nullable, required
  - `revoked_at` string, date-time, nullable, required
  - `sign_out_pending` boolean, required: Disconnected, but the tool may still hold its sign-in; its member finishes the sign-out by disconnecting it again.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `422`: Validation error
- `500`: Internal server error

---

[API](https://skmtc.dev/teaflask/apis/teaflask-api.md) - [All operations](https://skmtc.dev/teaflask/apis/teaflask-api/llms.txt) - [OpenAPI document](https://skmtc.dev/teaflask/apis/teaflask-api/revisions/d23e9286b847?raw)
