You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add default resource limits to VirtualMCPServer vmcp container #2873
@jhrozek When user define part value of resources, like either request or limit. Should we consider this case here? Or just all or nothing?
In general I would mirror what we do for MCPServer for now
Actually the case for MCPServer is complicated. I need some time to figure this out.
The vMCPServer is straight but for mcp server, it is managed by toolhive.
When we have default resource, and with user's customization, then more cases will be present.
This is wrong. We need to define the resource for toolhive too. toolhive here is like a manager it should have a resource scope,
according to its workload, like hundreds of mcp server or just a few. This is different.
I should make this clearer:
For MCP server there two containers here:
all the mcp servers
the mcp managers, toolhive.
The problem is not toolhive got no resources as container in k8s.
Activity
4t8dd commentedon Dec 4, 2025
@jhrozek assign this to me.
jhrozek commentedon Dec 4, 2025
done!
4t8dd commentedon Dec 6, 2025
@jhrozek When user define part value of resources, like either request or limit. Should we consider this case here? Or just all or nothing?
jhrozek commentedon Dec 8, 2025
In general I would mirror what we do for MCPServer for now
4t8dd commentedon Dec 12, 2025
Actually the case for MCPServer is complicated. I need some time to figure this out.
The vMCPServer is straight but for mcp server, it is managed by toolhive.
When we have default resource, and with user's customization, then more cases will be present.
4t8dd commentedon Dec 12, 2025
Currently we have two possible resources, one from MCPServerSpec and the other from the podTemplateSpec. But the existing code just gives this to toolhive although in the spec saying it is for mc server.
spec code: https://github.com/stacklok/toolhive/blob/main/cmd/thv-operator/api/v1alpha1/mcpserver_types.go#L106
and controller: https://github.com/stacklok/toolhive/blob/main/cmd/thv-operator/controllers/mcpserver_controller.go#L1160
This is wrong. We need to define the resource for toolhive too. toolhive here is like a manager it should have a resource scope,
according to its workload, like hundreds of mcp server or just a few. This is different.
I should make this clearer:
For MCP server there two containers here:
The problem is not toolhive got no resources as container in k8s.
Add default resource limits and separate proxy runner resource config…
Add default resource limits and separate proxy runner resource config…
Add default resource limits and separate proxy runner resource config…
Add default resource limits and separate proxy runner resource config…
Add default resource limits and separate proxy runner resource config…
Add default resource limits and separate proxy runner resource config…
4t8dd commentedon Dec 17, 2025
@jhrozek please help review the PR for this issue.
Add default resource limits to VirtualMCPServer vmcp container
Add default resource limits to VirtualMCPServer vmcp container (#3689)