> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apowerb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Mcp Config

> Update an existing MCP config (rebuilds tool_config_params from the
payload, re-encrypts, and refreshes the toolbox if it is a DB config).



## OpenAPI

````yaml /api-reference/openapi.json put /api/mcp_configs/{mcp_config_id}
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/mcp_configs/{mcp_config_id}:
    put:
      tags:
        - tools
      summary: Update Mcp Config
      description: |-
        Update an existing MCP config (rebuilds tool_config_params from the
        payload, re-encrypts, and refreshes the toolbox if it is a DB config).
      operationId: update_mcp_config_api_mcp_configs__mcp_config_id__put
      parameters:
        - name: mcp_config_id
          in: path
          required: true
          schema:
            type: string
            title: Mcp Config Id
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              title: Mcp Data
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [List Mcp Configs](/api-reference/tools/list-mcp-configs.md)
- [Save Mcp Config](/api-reference/tools/save-mcp-config.md)
- [Update Tool Configs](/api-reference/tools_config/update-tool-configs.md)
- [Update Agent](/api-reference/agents/update-agent.md)
- [Reload Mcp Toolbox](/api-reference/tools/reload-mcp-toolbox.md)
