NAME
Claude::Agent::MCP::SSEServer - SSE MCP server configuration
DESCRIPTION
Configuration for a remote MCP server using Server-Sent Events.
ATTRIBUTES
url - Server URL
headers - HashRef of HTTP headers
Security note: Headers containing sensitive data (authorization tokens, API keys) are automatically redacted in debug output. Common sensitive headers like
Authorization,X-API-Key, etc. are detected automatically. You can also explicitly mark additional headers as sensitive usingsensitive_headers.sensitive_headers - ArrayRef of header names to redact (optional)
Additional header names to treat as sensitive beyond the auto-detected ones.
type - Always 'sse'
METHODS
is_sensitive_header
if ($server->is_sensitive_header('Authorization')) { ... }
Check if a header name is considered sensitive (should be redacted in logs).
redacted_headers
my $safe_headers = $server->redacted_headers();
Returns a copy of headers with sensitive values replaced by '[REDACTED]'. Use this for debug output instead of accessing headers directly.
to_hash
my $hash = $server->to_hash();
Convert the server configuration to a hash for JSON serialization. Note: This returns actual header values for the CLI. Use redacted_headers for debug/logging purposes.
AUTHOR
LNATION, <email at lnation.org>
LICENSE
This software is Copyright (c) 2026 by LNATION.
This is free software, licensed under The Artistic License 2.0 (GPL Compatible).