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

# agent.mcp.update(name, entry)



## OpenAPI

````yaml /api-reference/openapi.json put /agents/{id}/mcp/{name}
openapi: 3.1.0
info:
  title: paddock API
  version: 1.0.0
  description: >-
    The paddock API. Send an API key, or a session token on its own session, as
    a bearer token.
servers:
  - url: https://api.paddock.build/v1
security:
  - bearer: []
paths:
  /agents/{id}/mcp/{name}:
    put:
      summary: agent.mcp.update(name, entry)
      operationId: updateMcp
      parameters:
        - $ref: '#/components/parameters/AgentId'
        - $ref: '#/components/parameters/EntryName'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpEntry'
      responses:
        '200':
          description: The updated entry
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentMcpEntry'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    AgentId:
      name: id
      in: path
      required: true
      description: The agent's ID
      schema:
        type: string
        pattern: ^agt_[0-7][0-9a-hjkmnp-tv-z]{25}$
    EntryName:
      name: name
      in: path
      required: true
      description: The capability entry's name
      schema:
        type: string
  schemas:
    McpEntry:
      description: 'An MCP server: a remote one by URL, or one that runs in the sandbox.'
      oneOf:
        - $ref: '#/components/schemas/McpRemoteEntry'
        - $ref: '#/components/schemas/McpLocalEntry'
    AgentMcpEntry:
      type: object
      required:
        - name
        - source
        - generation
        - spec
      properties:
        name:
          type: string
        source:
          $ref: '#/components/schemas/EntrySource'
        generation:
          description: The agent generation at which it last changed; 1 for the template's.
          type: integer
          minimum: 1
        spec:
          description: An MCP server, as a template's mcp list declares it.
          oneOf:
            - $ref: '#/components/schemas/McpRemoteEntry'
            - $ref: '#/components/schemas/McpLocalEntry'
    McpRemoteEntry:
      type: object
      additionalProperties: false
      required:
        - name
        - url
      properties:
        name:
          type: string
        url:
          type: string
        headers:
          type: object
          additionalProperties:
            type: string
    McpLocalEntry:
      type: object
      additionalProperties: false
      required:
        - name
        - command
      properties:
        name:
          type: string
        command:
          type: string
        args:
          type: array
          items:
            type: string
        env:
          type: object
          additionalProperties:
            type: string
    EntrySource:
      type: string
      enum:
        - template
        - agent
    ErrorBody:
      description: The body of every non-2xx response.
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    ErrorObject:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
        details:
          type: object
    ErrorCode:
      type: string
      enum:
        - invalid_request
        - unauthorized
        - forbidden
        - not_found
        - conflict
        - payload_too_large
        - unsupported
        - unavailable
        - internal
  headers:
    RequestId:
      description: The request's ID, for support and logs
      schema:
        type: string
  responses:
    Error:
      description: Every non-2xx response
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key, or a session token on its own session

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.