MCP client for use by picoclaw and other crustaceans
A Model Context Protocol (MCP) server for interacting with pico-agent.
pico-agent.pico-agent using the call_pico_task tool.pv_resize tool for Kubernetes PVC resizing.list_pico_tasks to see what tasks the agent supports.pico-agent running and accessible.go build -o pico-mcp ./cmd/pico-mcpRun the server via Stdio (standard for MCP clients):
./pico-mcp --config config.yamlCreate a config.yaml to define your agents:
spire:
agent_socket: "unix:///run/spire/sockets/agent.sock"
enabled: true
agents:
- id: "cluster-alpha"
url: "http://pico-agent.alpha.svc.cluster.local:8080"
jwt_audience: "pico-agent-alpha"
- id: "cluster-beta"
url: "http://pico-agent.beta.svc.cluster.local:8080"
jwt_audience: "pico-agent-beta"list_pico_agentsLists all configured pico-agent IDs.
list_pico_tasksLists all available task types on a specific pico-agent.
Arguments:
agent_id (string, required): The ID of the target pico-agent.call_pico_taskCalls a generic task on a specific pico-agent.
Arguments:
agent_id (string, required): The ID of the target pico-agent.type (string, required): The task type.payload (object, required): The JSON payload for the task.pv_resizeResizes a Kubernetes PersistentVolumeClaim on a specific pico-agent.
Arguments:
agent_id (string, required): The ID of the target pico-agent.namespace (string, required): The K8s namespace.pvc_name (string, required): The name of the PVC.new_size (string, required): The target size (e.g., 10Gi).wait (boolean, optional): Wait for resize to complete.timeout (string, optional): Timeout for the wait (e.g., 5m).MIT (c) 2026 Andy Lo-A-Foe. See LICENSE for details.
loafoe/pico-mcp
April 13, 2026
April 13, 2026
Go