# Function MCPClient

- MCPClient(
  settings?: TMCPClientSettings,
  agent?: Agent,
  ): { in: (inputs: TMCPClientInputs) => void; out: TMCPClientOutputs }

  #### Parameters

  - `Optional` settings: TMCPClientSettings
  - `Optional` agent: Agent

  #### Returns { in: (inputs: TMCPClientInputs) => void; out: TMCPClientOutputs }

  - ##### in: (inputs: TMCPClientInputs) => void

    Create or Connect the component inputs if the input does not exist, it will be created

    #### Examples

    - component.in({ Input: source.out.data })
      - component.in({ Input: { type: 'string', source:source.out.data } })

  - ##### out: TMCPClientOutputs

    Component outputs - access via .out.OutputName

  - Defined in src/Components/generated/MCPClient.ts:34