# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary

# Example configuration for the standalone Nemotron Speech MCP server.
#
# Copy this file to riva_speech_mcp_config.yaml and update the endpoints to
# match your self-hosted Speech NIM deployment.
#
# The MCP server should usually run in the same private network as the NIMs.
# grpc_uri/realtime_url are the addresses the MCP server uses to reach
# the NIMs. public_realtime_url is the address returned to agents when agents
# need to open a realtime WebSocket directly.

server:
  name: nemotron-speech-mcp
  title: Nemotron Speech MCP
  bearer_token_env: RIVA_MCP_BEARER_TOKEN
  allow_origins: []
  allow_local_files: false
  max_audio_bytes: 104857600
  max_request_bytes: 157286400
  streaming_chunk_bytes: 65536
  grpc_timeout: 30.0

backends:
  - id: asr-primary
    description: Primary English ASR NIM
    modalities: ["asr"]
    grpc_uri: "localhost:50051"
    realtime_url: "ws://localhost:9000/v1/realtime"
    public_realtime_url: "ws://localhost:9000/v1/realtime"
    default_language_code: "en-US"
    use_ssl: false

  - id: tts-primary
    description: Primary TTS NIM
    modalities: ["tts"]
    grpc_uri: "localhost:50052"
    realtime_url: "ws://localhost:9002/v1/realtime"
    public_realtime_url: "ws://localhost:9002/v1/realtime"
    default_language_code: "en-US"
    use_ssl: false

  - id: nmt-primary
    description: Primary NMT NIM
    modalities: ["nmt"]
    grpc_uri: "localhost:50053"
    use_ssl: false
