1
1
import { beforeEach , describe , expect , it , vi } from 'vitest' ;
2
- import { wrapMcpServerWithSentry } from '../../src/mcp-server' ;
2
+ import { wrapMcpServerWithSentry } from '../../src/integrations/ mcp-server' ;
3
3
import * as tracingModule from '../../src/tracing' ;
4
4
5
5
describe ( 'wrapMcpServerWithSentry' , ( ) => {
@@ -497,7 +497,7 @@ describe('wrapMcpServerWithSentry', () => {
497
497
attributes : expect . objectContaining ( {
498
498
'mcp.method.name' : 'notifications/resources/updated' ,
499
499
'mcp.resource.uri' : 'file:///tmp/data.json' ,
500
- 'mcp.resource.protocol' : 'file: ' ,
500
+ 'mcp.resource.protocol' : 'file' ,
501
501
'sentry.op' : 'mcp.notification.client_to_server' ,
502
502
'sentry.origin' : 'auto.mcp.notification' ,
503
503
'sentry.source' : 'route' ,
@@ -671,7 +671,7 @@ function createMockTransport() {
671
671
send = vi . fn ( ) . mockResolvedValue ( undefined ) ;
672
672
sessionId = 'test-session-123' ;
673
673
}
674
-
674
+
675
675
return new StreamableHTTPServerTransport ( ) ;
676
676
}
677
677
@@ -684,7 +684,7 @@ function createMockStdioTransport() {
684
684
send = vi . fn ( ) . mockResolvedValue ( undefined ) ;
685
685
sessionId = 'stdio-session-456' ;
686
686
}
687
-
687
+
688
688
return new StdioServerTransport ( ) ;
689
689
}
690
690
@@ -697,6 +697,6 @@ function createMockSseTransport() {
697
697
send = vi . fn ( ) . mockResolvedValue ( undefined ) ;
698
698
sessionId = 'sse-session-789' ;
699
699
}
700
-
700
+
701
701
return new SSEServerTransport ( ) ;
702
702
}
0 commit comments