We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/containers/kubernetes-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
identify-context-for-task.yaml•979 B
kind: Task
apiVersion: mcpchecker/v1alpha2
metadata:
name: "identify-context-for-task"
difficulty: medium
spec:
requires:
- extension: kubernetes
setup:
# No setup needed - working with existing kubeconfig
verify:
- kubernetes.getCurrentContext:
# This operation returns the current context name
# Returns:
# - context: name of the current context
- kubernetes.listContexts:
# Also list all available contexts for comparison
# Returns:
# - current: name of current context
# - count: number of contexts found
- llmJudge:
contains: "{steps.kubernetes.getCurrentContext.context}"
# Validates the agent mentioned the actual current context name
# Template expands to e.g., "kind-kind" or "minikube"
cleanup:
# No cleanup needed - read-only operation
prompt:
inline: What is the current Kubernetes context I'm using, and what other contexts are available?