Skip to content

MCPResource

This page is auto-generated by scripts/generate-schema-docs.ts. Do not edit manually.

  • Kind: MCPResource
  • API Group: kubemcp.io
  • Version: v1alpha1
  • apiVersion: kubemcp.io/v1alpha1
  • Reference Slug: /reference/mcpresource/
FieldTypeRequiredDescriptionDefault
specunknown | unknownYes
statusobjectNo
FieldTypeRequiredDescriptionDefault
namestringYesMCP resource name (must be unique within server)
descriptionstringNoHuman-readable description of the resource
operationsarray<object>NoHTTP operations for service-backed resources
contentobjectNoInline content for simple static resources
FieldTypeRequiredDescriptionDefault
methodstring ("GET", "POST", "PUT", "DELETE", "PATCH")YesHTTP method for this operation
ingressPathstringYesIngress path with optional {param} placeholders
serviceobjectYes
parametersarray<object>NoParameters for this operation
FieldTypeRequiredDescriptionDefault
namestringYesKubernetes service name
namespacestringNoService namespace (defaults to same as MCPResource)
portintegerYesService port number
pathstringYesService path with optional {param} placeholders
FieldTypeRequiredDescriptionDefault
namestringYesParameter name
instring ("path", "query", "header")YesParameter location
requiredbooleanNoWhether parameter is requiredfalse
descriptionstringNoParameter description

Inline content for simple static resources

FieldTypeRequiredDescriptionDefault
uristringNoResource URI identifier
mimeTypestringNoMIME type of the content”text/plain”
textstringNoText content of the resource
blobstring [byte]NoBase64-encoded binary content
FieldTypeRequiredDescriptionDefault
readybooleanNoWhether resource is ready for use
operationCountintegerNoNumber of operations configured
lastSyncTimestring [date-time]NoLast time resource was synced
conditionsarray<object>No
FieldTypeRequiredDescriptionDefault
typestringYes
statusstring ("True", "False", "Unknown")Yes
lastTransitionTimestring [date-time]No
reasonstringNo
messagestringNo
---
# Example MCPResource - inline configuration
apiVersion: kubemcp.io/v1alpha1
kind: MCPResource
metadata:
name: sample-config
namespace: mcp-test
labels:
mcp-server: echo
spec:
name: sample-config
description: Sample configuration resource
content:
uri: "config://sample/settings"
mimeType: "application/json"
text: |
{
"debug": true,
"log_level": "info",
"features": {
"echo": true,
"calculator": true
}
}
ConditionReasonStatusDescription
ReadyContentValidTrueInline spec.content validated successfully
ReadyOperationsValidTrueAll spec.operations validated and service endpoints resolved
ReadyInvalidSpecFalseNeither spec.operations nor spec.content is defined
ReadyEmptyContentFalsespec.content has neither text nor blob
ReadyServiceNotFoundFalseA Service referenced in spec.operations does not exist in the namespace

See the Observability guide for diagnostic patterns using these conditions.