MCPcopy Create free account
hub / github.com/PSPDFKit/nutrient-document-engine-mcp-server / response

Method response

src/utils/Logger.ts:149–159  ·  view source on GitHub ↗
(mcpServer: McpServer | null, status: number, url: string, context?: unknown)

Source from the content-addressed store, hash-verified

147 }
148
149 response(mcpServer: McpServer | null, status: number, url: string, context?: unknown): void {
150 const message = `Response: ${status} ${url}`;
151
152 if (status >= 400) {
153 this.error(mcpServer, message, context);
154 } else if (this.serverLogLevel === 'debug') {
155 this.debug(mcpServer, message, context);
156 } else {
157 this.info(mcpServer, message);
158 }
159 }
160
161 retry(
162 mcpServer: McpServer | null,

Callers 2

logger.test.tsFile · 0.80
setupInterceptorsFunction · 0.80

Calls 3

errorMethod · 0.95
debugMethod · 0.95
infoMethod · 0.95

Tested by

no test coverage detected