Skip to content

Commit b5fe36e

Browse files
authored
Merge branch 'main' into converters_0
2 parents b1f1195 + ed9e92e commit b5fe36e

File tree

9 files changed

+1096
-113
lines changed

9 files changed

+1096
-113
lines changed

.github/workflows/security-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
output: 'trivy-results.sarif'
3333

3434
- name: Upload Trivy scan results to GitHub Security tab
35-
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4
35+
uses: github/codeql-action/upload-sarif@014f16e7ab1402f30e7c3329d33797e7948572db # v4
3636
if: always()
3737
with:
3838
sarif_file: 'trivy-results.sarif'

docs/thv-registry-api/docs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/thv-registry-api/swagger.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/thv-registry-api/swagger.yaml

Lines changed: 344 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -671,13 +671,148 @@ paths:
671671
summary: Get deployed servers by registry name
672672
tags:
673673
- deployed-servers
674-
/extension/v0/servers/{id}:
674+
/extension/v0/registries:
675+
get:
676+
description: List all registries
677+
requestBody:
678+
content:
679+
application/json:
680+
schema:
681+
type: object
682+
responses:
683+
"501":
684+
content:
685+
application/json:
686+
schema:
687+
additionalProperties:
688+
type: string
689+
type: object
690+
description: Not implemented
691+
summary: List registries
692+
tags:
693+
- extension
694+
/extension/v0/registries/{registryName}:
695+
delete:
696+
description: Delete a registry
697+
parameters:
698+
- description: Registry Name
699+
in: path
700+
name: registryName
701+
required: true
702+
schema:
703+
type: string
704+
requestBody:
705+
content:
706+
application/json:
707+
schema:
708+
type: object
709+
responses:
710+
"400":
711+
content:
712+
application/json:
713+
schema:
714+
additionalProperties:
715+
type: string
716+
type: object
717+
description: Bad request
718+
"501":
719+
content:
720+
application/json:
721+
schema:
722+
additionalProperties:
723+
type: string
724+
type: object
725+
description: Not implemented
726+
summary: Delete registry
727+
tags:
728+
- extension
729+
get:
730+
description: Get a registry by name
731+
parameters:
732+
- description: Registry Name
733+
in: path
734+
name: registryName
735+
required: true
736+
schema:
737+
type: string
738+
requestBody:
739+
content:
740+
application/json:
741+
schema:
742+
type: object
743+
responses:
744+
"400":
745+
content:
746+
application/json:
747+
schema:
748+
additionalProperties:
749+
type: string
750+
type: object
751+
description: Bad request
752+
"501":
753+
content:
754+
application/json:
755+
schema:
756+
additionalProperties:
757+
type: string
758+
type: object
759+
description: Not implemented
760+
summary: Get registry
761+
tags:
762+
- extension
763+
put:
764+
description: Create or update a registry
765+
parameters:
766+
- description: Registry Name
767+
in: path
768+
name: registryName
769+
required: true
770+
schema:
771+
type: string
772+
requestBody:
773+
content:
774+
application/json:
775+
schema:
776+
type: object
777+
responses:
778+
"400":
779+
content:
780+
application/json:
781+
schema:
782+
additionalProperties:
783+
type: string
784+
type: object
785+
description: Bad request
786+
"501":
787+
content:
788+
application/json:
789+
schema:
790+
additionalProperties:
791+
type: string
792+
type: object
793+
description: Not implemented
794+
summary: Create or update registry
795+
tags:
796+
- extension
797+
/extension/v0/registries/{registryName}/servers/{serverName}/versions/{version}:
675798
delete:
676799
description: Delete a server from the registry
677800
parameters:
678-
- description: Server ID
801+
- description: Registry Name
802+
in: path
803+
name: registryName
804+
required: true
805+
schema:
806+
type: string
807+
- description: URL-encoded server name (e.g., \
808+
in: path
809+
name: serverName
810+
required: true
811+
schema:
812+
type: string
813+
- description: URL-encoded version to retrieve (e.g., \
679814
in: path
680-
name: id
815+
name: version
681816
required: true
682817
schema:
683818
type: string
@@ -709,9 +844,21 @@ paths:
709844
put:
710845
description: Create or update a server in the registry
711846
parameters:
712-
- description: Server ID
847+
- description: Registry Name
848+
in: path
849+
name: registryName
850+
required: true
851+
schema:
852+
type: string
853+
- description: URL-encoded server name (e.g., \
854+
in: path
855+
name: serverName
856+
required: true
857+
schema:
858+
type: string
859+
- description: URL-encoded version to retrieve (e.g., \
713860
in: path
714-
name: id
861+
name: version
715862
required: true
716863
schema:
717864
type: string
@@ -778,6 +925,194 @@ paths:
778925
summary: Readiness check
779926
tags:
780927
- system
928+
/registry/{registryName}/v0.1/publish:
929+
post:
930+
description: Publish a server to the registry
931+
parameters:
932+
- description: Registry name
933+
in: path
934+
name: registryName
935+
required: true
936+
schema:
937+
type: string
938+
requestBody:
939+
content:
940+
application/json:
941+
schema:
942+
type: object
943+
responses:
944+
"501":
945+
content:
946+
application/json:
947+
schema:
948+
additionalProperties:
949+
type: string
950+
type: object
951+
description: Not implemented
952+
summary: Publish server
953+
tags:
954+
- registry
955+
- official
956+
/registry/{registryName}/v0.1/servers:
957+
get:
958+
description: Get a list of available servers in the registry
959+
parameters:
960+
- description: Registry name
961+
in: path
962+
name: registryName
963+
required: true
964+
schema:
965+
type: string
966+
- description: Pagination cursor for retrieving next set of results
967+
in: query
968+
name: cursor
969+
schema:
970+
type: string
971+
- description: Maximum number of items to return
972+
in: query
973+
name: limit
974+
schema:
975+
type: integer
976+
- description: Search servers by name (substring match)
977+
in: query
978+
name: search
979+
schema:
980+
type: string
981+
- description: Filter by version ('latest' for latest version, or an exact version
982+
like '1.2.3')
983+
in: query
984+
name: version
985+
schema:
986+
type: string
987+
requestBody:
988+
content:
989+
application/json:
990+
schema:
991+
type: object
992+
responses:
993+
"200":
994+
content:
995+
application/json:
996+
schema:
997+
$ref: '#/components/schemas/v0.ServerListResponse'
998+
description: OK
999+
"400":
1000+
content:
1001+
application/json:
1002+
schema:
1003+
additionalProperties:
1004+
type: string
1005+
type: object
1006+
description: Bad request
1007+
summary: List servers
1008+
tags:
1009+
- registry
1010+
- official
1011+
/registry/{registryName}/v0.1/servers/{serverName}/versions:
1012+
get:
1013+
description: Returns all available versions for a specific MCP server, ordered
1014+
by publication date (newest first)
1015+
parameters:
1016+
- description: Registry name
1017+
in: path
1018+
name: registryName
1019+
required: true
1020+
schema:
1021+
type: string
1022+
- description: URL-encoded server name (e.g., \
1023+
in: path
1024+
name: serverName
1025+
required: true
1026+
schema:
1027+
type: string
1028+
requestBody:
1029+
content:
1030+
application/json:
1031+
schema:
1032+
type: object
1033+
responses:
1034+
"200":
1035+
content:
1036+
application/json:
1037+
schema:
1038+
$ref: '#/components/schemas/v0.ServerListResponse'
1039+
description: A list of all versions for the server
1040+
"400":
1041+
content:
1042+
application/json:
1043+
schema:
1044+
additionalProperties:
1045+
type: string
1046+
type: object
1047+
description: Bad request
1048+
"404":
1049+
content:
1050+
application/json:
1051+
schema:
1052+
additionalProperties:
1053+
type: string
1054+
type: object
1055+
description: Server not found
1056+
summary: List all versions of an MCP server
1057+
tags:
1058+
- registry
1059+
- official
1060+
/registry/{registryName}/v0.1/servers/{serverName}/versions/{version}:
1061+
get:
1062+
description: |-
1063+
Returns detailed information about a specific version of an MCP server.
1064+
Use the special version `latest` to get the latest version.
1065+
parameters:
1066+
- description: Registry name
1067+
in: path
1068+
name: registryName
1069+
required: true
1070+
schema:
1071+
type: string
1072+
- description: URL-encoded server name (e.g., \
1073+
in: path
1074+
name: serverName
1075+
required: true
1076+
schema:
1077+
type: string
1078+
- description: URL-encoded version to retrieve (e.g., \
1079+
in: path
1080+
name: version
1081+
required: true
1082+
schema:
1083+
type: string
1084+
requestBody:
1085+
content:
1086+
application/json:
1087+
schema:
1088+
type: object
1089+
responses:
1090+
"200":
1091+
content:
1092+
application/json:
1093+
schema:
1094+
$ref: '#/components/schemas/v0.ServerResponse'
1095+
description: Detailed server information
1096+
"400":
1097+
content:
1098+
application/json:
1099+
schema:
1100+
additionalProperties:
1101+
type: string
1102+
type: object
1103+
description: Bad request
1104+
"404":
1105+
content:
1106+
application/json:
1107+
schema:
1108+
additionalProperties:
1109+
type: string
1110+
type: object
1111+
description: Server or version not found
1112+
summary: Get specific MCP server version
1113+
tags:
1114+
- registry
1115+
- official
7811116
/registry/v0.1/publish:
7821117
post:
7831118
description: Publish a server to the registry
@@ -889,7 +1224,8 @@ paths:
8891224
description: Server not found
8901225
summary: List all versions of an MCP server
8911226
tags:
892-
- servers
1227+
- registry
1228+
- official
8931229
/registry/v0.1/servers/{serverName}/versions/{version}:
8941230
get:
8951231
description: |-
@@ -938,7 +1274,8 @@ paths:
9381274
description: Server or version not found
9391275
summary: Get specific MCP server version
9401276
tags:
941-
- servers
1277+
- registry
1278+
- official
9421279
/v0/publish:
9431280
post:
9441281
deprecated: true

0 commit comments

Comments
 (0)