Skip to content

Commit 51b70e9

Browse files
Update ToolHive API models (#42)
Automated update of ToolHive API models from OpenAPI specification. Co-authored-by: aponcedeleonch <7890853+aponcedeleonch@users.noreply.github.com>
1 parent 98f3583 commit 51b70e9

File tree

15 files changed

+57
-27
lines changed

15 files changed

+57
-27
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# generated by datamodel-codegen:
22
# filename: http://127.0.0.1:8080/api/openapi.json
3-
# timestamp: 2025-09-30T12:49:55+00:00
3+
# timestamp: 2025-11-02T00:37:46+00:00

src/mcp_optimizer/toolhive/api_models/audit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: http://127.0.0.1:8080/api/openapi.json
3-
# timestamp: 2025-09-30T12:49:55+00:00
3+
# timestamp: 2025-11-02T00:37:46+00:00
44

55
from __future__ import annotations
66

src/mcp_optimizer/toolhive/api_models/auth.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: http://127.0.0.1:8080/api/openapi.json
3-
# timestamp: 2025-09-30T12:49:55+00:00
3+
# timestamp: 2025-11-02T00:37:46+00:00
44

55
from __future__ import annotations
66

@@ -36,6 +36,11 @@ class TokenValidatorConfig(BaseModel):
3636
alias='clientSecret',
3737
description='ClientSecret is the optional OIDC client secret for introspection',
3838
)
39+
insecure_allow_http: Optional[bool] = Field(
40+
None,
41+
alias='insecureAllowHTTP',
42+
description='InsecureAllowHTTP allows HTTP (non-HTTPS) OIDC issuers for development/testing\nWARNING: This is insecure and should NEVER be used in production',
43+
)
3944
introspection_url: Optional[str] = Field(
4045
None,
4146
alias='introspectionURL',

src/mcp_optimizer/toolhive/api_models/authz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: http://127.0.0.1:8080/api/openapi.json
3-
# timestamp: 2025-09-30T12:49:55+00:00
3+
# timestamp: 2025-11-02T00:37:46+00:00
44

55
from __future__ import annotations
66

src/mcp_optimizer/toolhive/api_models/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: http://127.0.0.1:8080/api/openapi.json
3-
# timestamp: 2025-09-30T12:49:55+00:00
3+
# timestamp: 2025-11-02T00:37:46+00:00
44

55
from __future__ import annotations
66

src/mcp_optimizer/toolhive/api_models/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: http://127.0.0.1:8080/api/openapi.json
3-
# timestamp: 2025-09-30T12:49:55+00:00
3+
# timestamp: 2025-11-02T00:37:46+00:00
44

55
from __future__ import annotations
66

@@ -35,7 +35,7 @@ class Workload(BaseModel):
3535
)
3636
proxy_mode: Optional[str] = Field(
3737
None,
38-
description='ProxyMode is the proxy mode for stdio transport (sse or streamable-http).',
38+
description='ProxyMode is the proxy mode that clients should use to connect.\nFor stdio transports, this will be the proxy mode (sse or streamable-http).\nFor direct transports (sse/streamable-http), this will be the same as TransportType.',
3939
)
4040
remote: Optional[bool] = Field(
4141
None,

src/mcp_optimizer/toolhive/api_models/groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: http://127.0.0.1:8080/api/openapi.json
3-
# timestamp: 2025-09-30T12:49:55+00:00
3+
# timestamp: 2025-11-02T00:37:46+00:00
44

55
from __future__ import annotations
66

src/mcp_optimizer/toolhive/api_models/ignore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: http://127.0.0.1:8080/api/openapi.json
3-
# timestamp: 2025-09-30T12:49:55+00:00
3+
# timestamp: 2025-11-02T00:37:46+00:00
44

55
from __future__ import annotations
66

src/mcp_optimizer/toolhive/api_models/permissions.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: http://127.0.0.1:8080/api/openapi.json
3-
# timestamp: 2025-09-30T12:49:55+00:00
3+
# timestamp: 2025-11-02T00:37:46+00:00
44

55
from __future__ import annotations
66

@@ -9,6 +9,12 @@
99
from pydantic import BaseModel, Field
1010

1111

12+
class InboundNetworkPermissions(BaseModel):
13+
allow_host: Optional[list[str]] = Field(
14+
None, description='AllowHost is a list of allowed hosts for inbound connections'
15+
)
16+
17+
1218
class OutboundNetworkPermissions(BaseModel):
1319
allow_host: Optional[list[str]] = Field(
1420
None, description='AllowHost is a list of allowed hosts'
@@ -22,6 +28,11 @@ class OutboundNetworkPermissions(BaseModel):
2228

2329

2430
class NetworkPermissions(BaseModel):
31+
inbound: Optional[InboundNetworkPermissions] = None
32+
mode: Optional[str] = Field(
33+
None,
34+
description='Mode specifies the network mode for the container (e.g., "host", "bridge", "none")\nWhen empty, the default container runtime network mode is used',
35+
)
2536
outbound: Optional[OutboundNetworkPermissions] = None
2637

2738

src/mcp_optimizer/toolhive/api_models/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: http://127.0.0.1:8080/api/openapi.json
3-
# timestamp: 2025-09-30T12:49:55+00:00
3+
# timestamp: 2025-11-02T00:37:46+00:00
44

55
from __future__ import annotations
66

0 commit comments

Comments
 (0)