---
title: "PUT /mcp/config/"
method: PUT
path: "/mcp/config/"
tags: ["mcp"]
---

# PUT /mcp/config/

`PUT /mcp/config/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/mcp/config/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Get or update MCP connection configuration.

## Request body

- MCPConnectionUpdate
  - `connection_mode` 'remote' | 'stdio'
  - `is_active` boolean

## Response `200`

OK

- MCPConnectionResponse
  - `status` boolean
  - `result` MCPConnectionResult, required
    - `id` string, uuid
    - `connection_mode` 'remote' | 'stdio'
    - `is_active` boolean
    - `client_name` string
    - `client_version` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `tool_config` MCPToolGroupConfig
      - `enabled_groups` object
      - `disabled_tools` object
      - `available_groups` string
    - `mcp_url` string, nullable

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
