PATH:
home
/
thebhoeo
/
.trash
/
backwpup
/
patches
/
wordpress
/
mcp-adapter
--- a/includes/Transport/Infrastructure/RequestRouter.php +++ b/includes/Transport/Infrastructure/RequestRouter.php @@ -10,7 +10,7 @@ namespace WP\MCP\Transport\Infrastructure; use WP\MCP\Infrastructure\ErrorHandling\McpErrorFactory; -use WP\MCP\Infrastructure\Observability\McpObservabilityHelperTrait; +use WP\MCP\Infrastructure\Observability\ErrorLogMcpObservabilityHandler; use WP\McpSchema\Common\AbstractDataTransferObject; use WP\McpSchema\Common\Content\DTO\TextContent; use WP\McpSchema\Common\JsonRpc\DTO\JSONRPCErrorResponse; @@ -289,7 +289,8 @@ // Filter argument keys to exclude sensitive-looking ones. $safe_keys = array(); foreach ( array_keys( $params['arguments'] ) as $arg_key ) { - if ( McpObservabilityHelperTrait::is_sensitive_key( (string) $arg_key ) ) { + // @todo Replace this with a less-coupled way to access `McpObservabilityHelperTrait:is_sensitive_key()`. + if ( ErrorLogMcpObservabilityHandler::is_sensitive_key( (string) $arg_key ) ) { $safe_keys[] = '[REDACTED]'; } else { $safe_keys[] = $arg_key;
[+]
..
[-] fix-static-trait-call.patch
[edit]