mcp-maigret
by BurtTheCoder
- testdata
- with_k3d
case: List nodes using tool
in:
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 2,
"params":
{
"name": "list-k8s-nodes",
"arguments":
{ "context": "k3d-mcp-k8s-integration-test" },
},
}
out:
{
"jsonrpc": "2.0",
"id": 2,
"result":
{
"content":
[
{
"type": "text",
"text": !!ere '{"name":"k3d-mcp-k8s-integration-test-server-0","status":"Ready","age":"/[0-9sm]{2,4}/","created_at":"/.+/"}',
# ^ this is a pattern, this ^ too
# this just to match a duration // and this is for timestamp
}
],
"isError": false,
},
}
---
case: List nodes using tool with current context
in:
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 2,
"params":
{
"name": "list-k8s-nodes",
},
}
out:
{
"jsonrpc": "2.0",
"id": 2,
"result":
{
"content":
[
{
"type": "text",
"text": !!ere '{"name":"k3d-mcp-k8s-integration-test-server-0","status":"Ready","age":"/[0-9sm]{2,4}/","created_at":"/.+/"}',
# ^ this is a pattern, this ^ too
# this just to match a duration // and this is for timestamp
}
],
"isError": false,
},
}