@@ -213,7 +213,7 @@ func TestValidate(t *testing.T) {
213213 },
214214 },
215215 },
216- Remotes : []model.RemoteTransport {
216+ Remotes : []model.Transport {
217217 {
218218 Type : "streamable-http" ,
219219 URL : "https://example.com/remote" ,
@@ -531,7 +531,7 @@ func TestValidate(t *testing.T) {
531531 Source : "github" ,
532532 },
533533 Version : "1.0.0" ,
534- Remotes : []model.RemoteTransport {
534+ Remotes : []model.Transport {
535535 {
536536 Type : "streamable-http" ,
537537 URL : "not-a-valid-url" ,
@@ -550,7 +550,7 @@ func TestValidate(t *testing.T) {
550550 Source : "github" ,
551551 },
552552 Version : "1.0.0" ,
553- Remotes : []model.RemoteTransport {
553+ Remotes : []model.Transport {
554554 {
555555 Type : "streamable-http" ,
556556 URL : "example.com/remote" ,
@@ -569,7 +569,7 @@ func TestValidate(t *testing.T) {
569569 Source : "github" ,
570570 },
571571 Version : "1.0.0" ,
572- Remotes : []model.RemoteTransport {
572+ Remotes : []model.Transport {
573573 {
574574 Type : "streamable-http" ,
575575 URL : "http://localhost" ,
@@ -588,7 +588,7 @@ func TestValidate(t *testing.T) {
588588 Source : "github" ,
589589 },
590590 Version : "1.0.0" ,
591- Remotes : []model.RemoteTransport {
591+ Remotes : []model.Transport {
592592 {
593593 Type : "streamable-http" ,
594594 URL : "http://localhost:3000" ,
@@ -607,7 +607,7 @@ func TestValidate(t *testing.T) {
607607 Source : "github" ,
608608 },
609609 Version : "1.0.0" ,
610- Remotes : []model.RemoteTransport {
610+ Remotes : []model.Transport {
611611 {
612612 Type : "streamable-http" ,
613613 URL : "https://valid.com/remote" ,
@@ -646,7 +646,7 @@ func TestValidate(t *testing.T) {
646646 },
647647 Version : "1.0.0" ,
648648 Packages : []model.Package {},
649- Remotes : []model.RemoteTransport {},
649+ Remotes : []model.Transport {},
650650 },
651651 expectedError : "" ,
652652 },
@@ -677,7 +677,7 @@ func TestValidate_RemoteNamespaceMatch(t *testing.T) {
677677 name : "valid match - example.com domain" ,
678678 serverDetail : apiv0.ServerJSON {
679679 Name : "com.example/test-server" ,
680- Remotes : []model.RemoteTransport {
680+ Remotes : []model.Transport {
681681 {
682682 Type : "streamable-http" ,
683683 URL : "https://example.com/mcp" ,
@@ -690,7 +690,7 @@ func TestValidate_RemoteNamespaceMatch(t *testing.T) {
690690 name : "valid match - subdomain mcp.example.com" ,
691691 serverDetail : apiv0.ServerJSON {
692692 Name : "com.example/test-server" ,
693- Remotes : []model.RemoteTransport {
693+ Remotes : []model.Transport {
694694 {
695695 Type : "streamable-http" ,
696696 URL : "https://mcp.example.com/endpoint" ,
@@ -703,7 +703,7 @@ func TestValidate_RemoteNamespaceMatch(t *testing.T) {
703703 name : "valid match - api subdomain" ,
704704 serverDetail : apiv0.ServerJSON {
705705 Name : "com.example/api-server" ,
706- Remotes : []model.RemoteTransport {
706+ Remotes : []model.Transport {
707707 {
708708 Type : "streamable-http" ,
709709 URL : "https://api.example.com/mcp" ,
@@ -716,7 +716,7 @@ func TestValidate_RemoteNamespaceMatch(t *testing.T) {
716716 name : "invalid - wrong domain" ,
717717 serverDetail : apiv0.ServerJSON {
718718 Name : "com.example/test-server" ,
719- Remotes : []model.RemoteTransport {
719+ Remotes : []model.Transport {
720720 {
721721 Type : "streamable-http" ,
722722 URL : "https://google.com/mcp" ,
@@ -730,7 +730,7 @@ func TestValidate_RemoteNamespaceMatch(t *testing.T) {
730730 name : "invalid - different domain entirely" ,
731731 serverDetail : apiv0.ServerJSON {
732732 Name : "com.microsoft/server" ,
733- Remotes : []model.RemoteTransport {
733+ Remotes : []model.Transport {
734734 {
735735 Type : "streamable-http" ,
736736 URL : "https://api.github.com/endpoint" ,
@@ -744,7 +744,7 @@ func TestValidate_RemoteNamespaceMatch(t *testing.T) {
744744 name : "invalid URL format" ,
745745 serverDetail : apiv0.ServerJSON {
746746 Name : "com.example/test" ,
747- Remotes : []model.RemoteTransport {
747+ Remotes : []model.Transport {
748748 {
749749 Type : "streamable-http" ,
750750 URL : "not-a-valid-url" ,
@@ -758,15 +758,15 @@ func TestValidate_RemoteNamespaceMatch(t *testing.T) {
758758 name : "empty remotes array" ,
759759 serverDetail : apiv0.ServerJSON {
760760 Name : "com.example/test" ,
761- Remotes : []model.RemoteTransport {},
761+ Remotes : []model.Transport {},
762762 },
763763 expectError : false ,
764764 },
765765 {
766766 name : "multiple valid remotes - different subdomains" ,
767767 serverDetail : apiv0.ServerJSON {
768768 Name : "com.example/server" ,
769- Remotes : []model.RemoteTransport {
769+ Remotes : []model.Transport {
770770 {
771771 Type : "streamable-http" ,
772772 URL : "https://api.example.com/sse" ,
@@ -783,7 +783,7 @@ func TestValidate_RemoteNamespaceMatch(t *testing.T) {
783783 name : "one valid, one invalid remote" ,
784784 serverDetail : apiv0.ServerJSON {
785785 Name : "com.example/server" ,
786- Remotes : []model.RemoteTransport {
786+ Remotes : []model.Transport {
787787 {
788788 Type : "streamable-http" ,
789789 URL : "https://example.com/sse" ,
@@ -1351,7 +1351,7 @@ func TestValidate_TransportValidation(t *testing.T) {
13511351 Name : "com.example/test-server" ,
13521352 Description : "A test server" ,
13531353 Version : "1.0.0" ,
1354- Remotes : []model.RemoteTransport {
1354+ Remotes : []model.Transport {
13551355 {
13561356 Type : "streamable-http" ,
13571357 URL : "https://example.com/mcp" ,
@@ -1366,7 +1366,7 @@ func TestValidate_TransportValidation(t *testing.T) {
13661366 Name : "com.example/test-server" ,
13671367 Description : "A test server" ,
13681368 Version : "1.0.0" ,
1369- Remotes : []model.RemoteTransport {
1369+ Remotes : []model.Transport {
13701370 {
13711371 Type : "streamable-http" ,
13721372 },
@@ -1381,7 +1381,7 @@ func TestValidate_TransportValidation(t *testing.T) {
13811381 Name : "com.example/test-server" ,
13821382 Description : "A test server" ,
13831383 Version : "1.0.0" ,
1384- Remotes : []model.RemoteTransport {
1384+ Remotes : []model.Transport {
13851385 {
13861386 Type : "sse" ,
13871387 URL : "https://example.com/events" ,
@@ -1396,7 +1396,7 @@ func TestValidate_TransportValidation(t *testing.T) {
13961396 Name : "com.example/test-server" ,
13971397 Description : "A test server" ,
13981398 Version : "1.0.0" ,
1399- Remotes : []model.RemoteTransport {
1399+ Remotes : []model.Transport {
14001400 {
14011401 Type : "sse" ,
14021402 },
@@ -1411,7 +1411,7 @@ func TestValidate_TransportValidation(t *testing.T) {
14111411 Name : "com.example/test-server" ,
14121412 Description : "A test server" ,
14131413 Version : "1.0.0" ,
1414- Remotes : []model.RemoteTransport {
1414+ Remotes : []model.Transport {
14151415 {
14161416 Type : "stdio" ,
14171417 },
@@ -1425,7 +1425,7 @@ func TestValidate_TransportValidation(t *testing.T) {
14251425 Name : "com.example/test-server" ,
14261426 Description : "A test server" ,
14271427 Version : "1.0.0" ,
1428- Remotes : []model.RemoteTransport {
1428+ Remotes : []model.Transport {
14291429 {
14301430 Type : "websocket" ,
14311431 URL : "wss://example.com/ws" ,
@@ -1460,7 +1460,7 @@ func TestValidate_TransportValidation(t *testing.T) {
14601460 Name : "com.example/test-server" ,
14611461 Description : "A test server" ,
14621462 Version : "1.0.0" ,
1463- Remotes : []model.RemoteTransport {
1463+ Remotes : []model.Transport {
14641464 {
14651465 Type : "streamable-http" ,
14661466 URL : "http://localhost:3000/mcp" ,
@@ -1584,7 +1584,7 @@ func createValidServerWithArgument(arg model.Argument) apiv0.ServerJSON {
15841584 RuntimeArguments : []model.Argument {arg },
15851585 },
15861586 },
1587- Remotes : []model.RemoteTransport {
1587+ Remotes : []model.Transport {
15881588 {
15891589 Type : "streamable-http" ,
15901590 URL : "https://example.com/remote" ,
0 commit comments