Creating Tools
Backing service contract
Section titled “Backing service contract”Your tool backend should expose an HTTP endpoint that accepts and returns JSON.
Example service declaration
Section titled “Example service declaration”apiVersion: v1kind: Servicemetadata: name: my-tool-svc namespace: mcp-systemspec: selector: app: my-tool ports: - port: 8080 targetPort: 8080Register MCPTool
Section titled “Register MCPTool”apiVersion: kubemcp.io/v1alpha1kind: MCPToolmetadata: name: my-tool namespace: mcp-system labels: mcp-server: mainspec: name: my-tool description: Internal business tool service: name: my-tool-svc port: 8080 path: /invoke method: POST ingressPath: /tools/my-toolUse the full schema in MCPTool reference.