@nogoo9/no-crd / index / registerTemplateResources
Function: registerTemplateResources()
registerTemplateResources(
server,k8sContext,enabledTools):void
Defined in: src/mcp/templates.ts:113
Registers MCP template resources and tools with the MCP Server. Registered resources:
pod-template://{namespace}/{name}: Provides the JSON config of a template.
Registered tools:
list_templates: Lists template ConfigMaps in a namespace.get_template: Gets a template's raw configuration spec.create_template: Creates a template ConfigMap.update_template: Modifies an existing template ConfigMap.delete_template: Deletes a template ConfigMap.create_pod_from_template: Creates a new Kubernetes Pod from a template with optional overrides.
Parameters
server
McpServer
The MCP Server instance.
k8sContext
Active Kubernetes API client context.
enabledTools
string[]
List of tool names that are allowed/enabled to be registered.
Returns
void
