MCP Server Framework - v1.1.2
    Preparing search index...
    • Interpolate a template string with parameters.

      Replaces {variableName} placeholders with values from the params object. Unmatched placeholders are preserved as-is.

      Parameters

      • template: string

        The template string with {variable} placeholders

      • params: MessageParams

        The parameters to interpolate

      Returns string

      The interpolated string

      interpolate("Hello {name}!", { name: "World" })
      // "Hello World!"