European Parliament MCP Server API - v1.0.1
    Preparing search index...

    Function sanitizeParams

    • Returns a copy of params with sensitive values replaced by '[REDACTED]'.

      Only top-level keys are inspected. Nested objects are passed through unchanged, so callers should sanitise nested params separately if needed.

      Parameters

      • params: Record<string, unknown>

        Original parameter map

      • sensitiveKeys: readonly string[] = DEFAULT_SENSITIVE_KEYS

        Keys to redact (defaults to DEFAULT_SENSITIVE_KEYS)

      Returns Record<string, unknown>

      Sanitised copy of params

      This function does NOT recurse into nested objects. Callers are responsible for sanitising nested parameter structures.

      0.9.0