Skip to content

Commit ffa0a54

Browse files
authored
chore: upgrade thv to v0.6.6 (#1267)
1 parent e1e8f03 commit ffa0a54

File tree

3 files changed

+118
-8
lines changed

3 files changed

+118
-8
lines changed

api/generated/types.gen.ts

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,7 @@ export type RunnerRunConfig = {
782782
* ThvCABundle is the path to the CA certificate bundle for ToolHive HTTP operations
783783
*/
784784
thv_ca_bundle?: string
785+
token_exchange_config?: TokenexchangeConfig
785786
/**
786787
* ToolsFilter is the list of tools to filter
787788
*/
@@ -895,6 +896,47 @@ export type TelemetryConfig = {
895896
tracingEnabled?: boolean
896897
}
897898

899+
/**
900+
* TokenExchangeConfig contains token exchange configuration for external authentication
901+
*/
902+
export type TokenexchangeConfig = {
903+
/**
904+
* Audience is the target audience for the exchanged token
905+
*/
906+
audience?: string
907+
/**
908+
* ClientID is the OAuth 2.0 client identifier
909+
*/
910+
client_id?: string
911+
/**
912+
* ClientSecret is the OAuth 2.0 client secret
913+
*/
914+
client_secret?: string
915+
/**
916+
* ExternalTokenHeaderName is the name of the custom header to use when HeaderStrategy is "custom"
917+
*/
918+
external_token_header_name?: string
919+
/**
920+
* HeaderStrategy determines how to inject the token
921+
* Valid values: HeaderStrategyReplace (default), HeaderStrategyCustom
922+
*/
923+
header_strategy?: string
924+
/**
925+
* Scopes is the list of scopes to request for the exchanged token
926+
*/
927+
scopes?: Array<string>
928+
/**
929+
* SubjectTokenType specifies the type of the subject token being exchanged.
930+
* Common values: tokenTypeAccessToken (default), tokenTypeIDToken, tokenTypeJWT.
931+
* If empty, defaults to tokenTypeAccessToken.
932+
*/
933+
subject_token_type?: string
934+
/**
935+
* TokenURL is the OAuth 2.0 token endpoint URL
936+
*/
937+
token_url?: string
938+
}
939+
898940
export type TypesMiddlewareConfig = {
899941
/**
900942
* Parameters is a JSON object containing the middleware parameters.
@@ -929,9 +971,13 @@ export type V1RegistryType = string
929971
*/
930972
export type V1UpdateRegistryRequest = {
931973
/**
932-
* Allow private IP addresses for registry URL
974+
* Allow private IP addresses for registry URL or API URL
933975
*/
934976
allow_private_ip?: boolean
977+
/**
978+
* MCP Registry API URL
979+
*/
980+
api_url?: string
935981
/**
936982
* Local registry file path
937983
*/

api/openapi.json

Lines changed: 70 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@
141141
"LMStudio",
142142
"Goose",
143143
"Trae",
144-
"Continue"
144+
"Continue",
145+
"OpenCode",
146+
"Kiro",
147+
"Antigravity"
145148
]
146149
},
147150
"client.MCPClientStatus": {
@@ -166,7 +169,10 @@
166169
"LMStudio",
167170
"Goose",
168171
"Trae",
169-
"Continue"
172+
"Continue",
173+
"OpenCode",
174+
"Kiro",
175+
"Antigravity"
170176
]
171177
},
172178
"installed": {
@@ -871,6 +877,9 @@
871877
"description": "ThvCABundle is the path to the CA certificate bundle for ToolHive HTTP operations",
872878
"type": "string"
873879
},
880+
"token_exchange_config": {
881+
"$ref": "#/components/schemas/tokenexchange.Config"
882+
},
874883
"tools_filter": {
875884
"description": "ToolsFilter is the list of tools to filter",
876885
"items": { "type": "string" },
@@ -996,6 +1005,46 @@
9961005
},
9971006
"type": "object"
9981007
},
1008+
"tokenexchange.Config": {
1009+
"description": "TokenExchangeConfig contains token exchange configuration for external authentication",
1010+
"properties": {
1011+
"audience": {
1012+
"description": "Audience is the target audience for the exchanged token",
1013+
"type": "string"
1014+
},
1015+
"client_id": {
1016+
"description": "ClientID is the OAuth 2.0 client identifier",
1017+
"type": "string"
1018+
},
1019+
"client_secret": {
1020+
"description": "ClientSecret is the OAuth 2.0 client secret",
1021+
"type": "string"
1022+
},
1023+
"external_token_header_name": {
1024+
"description": "ExternalTokenHeaderName is the name of the custom header to use when HeaderStrategy is \"custom\"",
1025+
"type": "string"
1026+
},
1027+
"header_strategy": {
1028+
"description": "HeaderStrategy determines how to inject the token\nValid values: HeaderStrategyReplace (default), HeaderStrategyCustom",
1029+
"type": "string"
1030+
},
1031+
"scopes": {
1032+
"description": "Scopes is the list of scopes to request for the exchanged token",
1033+
"items": { "type": "string" },
1034+
"type": "array",
1035+
"uniqueItems": false
1036+
},
1037+
"subject_token_type": {
1038+
"description": "SubjectTokenType specifies the type of the subject token being exchanged.\nCommon values: tokenTypeAccessToken (default), tokenTypeIDToken, tokenTypeJWT.\nIf empty, defaults to tokenTypeAccessToken.",
1039+
"type": "string"
1040+
},
1041+
"token_url": {
1042+
"description": "TokenURL is the OAuth 2.0 token endpoint URL",
1043+
"type": "string"
1044+
}
1045+
},
1046+
"type": "object"
1047+
},
9991048
"types.MiddlewareConfig": {
10001049
"properties": {
10011050
"parameters": {
@@ -1030,16 +1079,21 @@
10301079
"x-enum-varnames": [
10311080
"RegistryTypeFile",
10321081
"RegistryTypeURL",
1082+
"RegistryTypeAPI",
10331083
"RegistryTypeDefault"
10341084
]
10351085
},
10361086
"v1.UpdateRegistryRequest": {
10371087
"description": "Request containing registry configuration updates",
10381088
"properties": {
10391089
"allow_private_ip": {
1040-
"description": "Allow private IP addresses for registry URL",
1090+
"description": "Allow private IP addresses for registry URL or API URL",
10411091
"type": "boolean"
10421092
},
1093+
"api_url": {
1094+
"description": "MCP Registry API URL",
1095+
"type": "string"
1096+
},
10431097
"local_path": {
10441098
"description": "Local registry file path",
10451099
"type": "string"
@@ -1091,7 +1145,10 @@
10911145
"LMStudio",
10921146
"Goose",
10931147
"Trae",
1094-
"Continue"
1148+
"Continue",
1149+
"OpenCode",
1150+
"Kiro",
1151+
"Antigravity"
10951152
]
10961153
},
10971154
"type": "array",
@@ -1153,7 +1210,10 @@
11531210
"LMStudio",
11541211
"Goose",
11551212
"Trae",
1156-
"Continue"
1213+
"Continue",
1214+
"OpenCode",
1215+
"Kiro",
1216+
"Antigravity"
11571217
]
11581218
}
11591219
},
@@ -1187,7 +1247,10 @@
11871247
"LMStudio",
11881248
"Goose",
11891249
"Trae",
1190-
"Continue"
1250+
"Continue",
1251+
"OpenCode",
1252+
"Kiro",
1253+
"Antigravity"
11911254
]
11921255
}
11931256
},
@@ -1360,6 +1423,7 @@
13601423
"x-enum-varnames": [
13611424
"RegistryTypeFile",
13621425
"RegistryTypeURL",
1426+
"RegistryTypeAPI",
13631427
"RegistryTypeDefault"
13641428
]
13651429
},

utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
* This is managed by Renovate and updated automatically when new versions are released.
44
* renovate: datasource=github-releases depName=stacklok/toolhive versioning=semver
55
*/
6-
export const TOOLHIVE_VERSION = process.env.THV_VERSION ?? 'v0.6.2'
6+
export const TOOLHIVE_VERSION = process.env.THV_VERSION ?? 'v0.6.6'

0 commit comments

Comments
 (0)