Skip to content

Conversation

@rdimitrov
Copy link
Member

The following PR:

  • Rebases to the code to the latest registry release
  • Updates the validation we do on the generated entries + the whole registry (now that the registry hosts the reference schema this is much easier). Added also a unit test to ensure the registry schema matches the version of the server json schema in the version of the registry we depend on
  • Added the target_port field to several servers (it was missing, but required in the upstream format)
  • Simplified the OCI identifier to use full image reference (yey)
  • Removed the registry extensions since they are no longer part of the server object

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2025

🔧 MCP Server Tool List Updates

The tool lists for modified MCP server specs have been automatically updated using thv mcp list.

Summary

Server Status Details
No changes detected

This comment is automatically generated and will be updated as the workflow progresses.

@rdimitrov rdimitrov force-pushed the rebase-registry-dep branch from 1cf745f to 03298de Compare October 23, 2025 13:14
go.mod Outdated
module github.com/stacklok/toolhive-registry

go 1.24.5
go 1.25
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does ToolHive import this at all? If so, we're gonna have some trouble. We're on 1.24 in toolhive because that's what UBI currently supports.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I was unsure about this too but it comes from registry which is unfortunately on 1.25, would it be possible to bump UBI?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not. The version wil bump in a month or so

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, that's a bummer. Let's figure out something then

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made it to work with 1.24.6 👍

pulls: 8029
last_updated: "2025-10-21T02:31:33Z"
repository_url: https://github.com/StacklokLabs/ocireg-mcp
target_port: 8080
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the oci registry MCP supports the MCP_PORT environment variable, so the target port is not needed. The same is true for most other Stacklok MCP servers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comes from the upstream format where we have to set an explicit value if the server is using an HTTP-based transport type. I guess we can still overwrite it in the runtime by passing the MCP_PORT env var, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could. But that's not how toolhive works. If you dont specify a port, toolhive will assign one. If you do specify it, toolhive will take the one that's been specified. So, ultimately this kind of setup where containers have the same port will result in conflicts and not being able to run MCP servers of HTTP or SSE transports if they have the same port.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait, I might have gotten this wrong. My understanding is target_port is the port that the server is implemented to listen on (inside the container)? From there on if that port is free on the host, toolhive may use it, otherwise it will choose a random one, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toolhive will use it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what happens if that port is not available?

rdimitrov and others added 7 commits October 24, 2025 23:35
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
…:\n- sqlite\n\nAutomatically updated using 'thv mcp list' command.\n\nCo-authored-by: rdimitrov <rdimitrov@users.noreply.github.com>
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
@rdimitrov rdimitrov force-pushed the rebase-registry-dep branch from ceb8d9c to 7059b7f Compare October 24, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants