Kubernetes Local Bridge Template
Local-bridge template for pods, deployments, and logs. Astrail cloud does not load arbitrary kubeconfigs; run a local MCP bridge against your cluster.
Credential setup
local-bridgeThis template is not executable on Astrail cloud. Use a local MCP bridge with access to the host runtime, then point your agent client at that local endpoint.
Install a local Kubernetes MCP server with a least-privilege kubeconfig on your machine or CI runner, then point your agent at that local endpoint.
CLI: astrail connectors describe preset-kubernetes
Hosted MCP endpoint
/api/mcp/preset-kubernetesPrivate servers require an Astrail API key in the Authorization header.
MCP client snippets
ConnectClaude Desktop config
{
"mcpServers": {
"kubernetes-local-bridge-template": {
"url": "/api/mcp/preset-kubernetes"
}
}
}cURL initialize
curl -sS -X POST "/api/mcp/preset-kubernetes" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'cURL tools/list
curl -sS -X POST "/api/mcp/preset-kubernetes" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'cURL tools/call
curl -sS -X POST "/api/mcp/preset-kubernetes" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"kubernetes_list_pods","arguments":{"namespace":"example","selector":"example"}}}'Runtime behavior
needs_mappingnot_checkedmapping_requirednot recordednot recordednot recordednonestructured fallbackstandardauth_required / oauth_requiredmapping_requiredAstrail does not evaluate generated TypeScript inside Next.js. Hosted calls are routed through stored tool metadata and endpoint maps.
Tools
3kubernetes_list_podsList pods by namespace and labels via a local Kubernetes bridge.
kubernetes_get_logsFetch pod logs via a local Kubernetes bridge.
kubernetes_rollout_statusCheck rollout status for a deployment via a local Kubernetes bridge.
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const server = new McpServer({ name: "Kubernetes Local Bridge Template", version: "1.0.0" });
// Curated Astrail local-bridge template for: kubernetes_list_pods, kubernetes_get_logs, kubernetes_rollout_status.
// This is a local-bridge template. Astrail does not host Docker sockets or Kubernetes API access from its cloud runtime. Run a local MCP bridge and point your client at that endpoint.
server.tool("connector_status", "Confirm this curated connector template is installed.", z.object({}), async () => ({
content: [{ type: "text", text: "Local-bridge template only. Install a local Docker/Kubernetes MCP bridge; Astrail cloud runtime will not open host sockets or kubeconfigs." }],
}));
const transport = new StdioServerTransport();
await server.connect(transport);