Skip to content

Commit 612fc8c

Browse files
committed
lint fix
1 parent d5fcdc3 commit 612fc8c

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

packages/core/src/integrations/mcp-server/handlers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ function createWrappedHandler(originalHandler: MCPHandler, methodName: keyof MCP
4343
handlerArgs,
4444
extraHandlerData,
4545
);
46-
} catch (error) {
47-
DEBUG_BUILD && debug.warn('MCP handler wrapping failed:', error);
48-
return originalHandler.apply(this, handlerArgs);
49-
}
46+
} catch (error) {
47+
DEBUG_BUILD && debug.warn('MCP handler wrapping failed:', error);
48+
return originalHandler.apply(this, handlerArgs);
49+
}
5050
};
5151
}
5252

packages/core/src/integrations/mcp-server/transport.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ function captureJsonRpcErrorResponse(
130130
// Only capture server-side errors, not client validation errors
131131
// Per JSON-RPC 2.0 error object spec:
132132
// https://www.jsonrpc.org/specification#error_object
133-
const isServerError = jsonRpcError.code === -32603 || (jsonRpcError.code >= -32099 && jsonRpcError.code <= -32000);
133+
const isServerError =
134+
jsonRpcError.code === -32603 || (jsonRpcError.code >= -32099 && jsonRpcError.code <= -32000);
134135

135136
if (isServerError) {
136137
const error = new Error(jsonRpcError.message);

packages/core/test/lib/integrations/mcp-server/semanticConventions.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ describe('MCP Server Semantic Conventions', () => {
371371
setStatus: setStatusSpy,
372372
end: endSpy,
373373
};
374-
startInactiveSpanSpy.mockReturnValueOnce(mockSpan as unknown as ReturnType<typeof tracingModule.startInactiveSpan>);
374+
startInactiveSpanSpy.mockReturnValueOnce(
375+
mockSpan as unknown as ReturnType<typeof tracingModule.startInactiveSpan>,
376+
);
375377

376378
const toolCallRequest = {
377379
jsonrpc: '2.0',

0 commit comments

Comments
 (0)