-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
stacklok/toolhive
#4039Description
Details
When running remote MCP servers via the CLI, the --proxy-port flag works correctly. However, when using the registry configuration, the proxy_port field is not part of the RemoteServerMetadata schema and is ignored for remote servers.
ImageMetadata has proxy_port (toolhive-core registry/types/registry_types.go), but RemoteServerMetadata does not. The config builder in pkg/runner/config_builder.go only reads proxy port from ImageMetadata, so registry-defined remote servers can never pin a proxy port.
Changes needed
toolhive-core: AddProxyPort intfield toRemoteServerMetadatainregistry/types/registry_types.gotoolhive: Updatepkg/runner/config_builder.goto readProxyPortfromRemoteServerMetadatawhenimageMetadatais nil- Update the publisher-provided and legacy registry JSON schemas to allow
proxy_porton remote server entries
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels