Skip to content

Commit 5a76699

Browse files
authored
fix: add inline tags to embedded BaseServerMetadata structs (#1375)
Signed-off-by: Juan Antonio Osorio <[email protected]>
1 parent bce35e0 commit 5a76699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/registry/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type BaseServerMetadata struct {
5353

5454
// ImageMetadata represents the metadata for an MCP server image stored in our registry.
5555
type ImageMetadata struct {
56-
BaseServerMetadata
56+
BaseServerMetadata `yaml:",inline"`
5757
// Image is the Docker image reference for the MCP server
5858
Image string `json:"image" yaml:"image"`
5959
// TargetPort is the port for the container to expose (only applicable to SSE and Streamable HTTP transports)
@@ -149,7 +149,7 @@ type OAuthConfig struct {
149149
// RemoteServerMetadata represents the metadata for a remote MCP server accessed via HTTP/HTTPS.
150150
// Remote servers are accessed through the thv proxy command which handles authentication and tunneling.
151151
type RemoteServerMetadata struct {
152-
BaseServerMetadata
152+
BaseServerMetadata `yaml:",inline"`
153153
// URL is the endpoint URL for the remote MCP server (e.g., https://api.example.com/mcp)
154154
URL string `json:"url" yaml:"url"`
155155
// Headers defines HTTP headers that can be passed to the remote server for authentication

0 commit comments

Comments
 (0)