Astrail
Back to Marketplace
Local bridge templateDevOpsJan 1, 20260 calls

Docker Local Bridge Template

Local-bridge template for containers, images, and logs. Astrail cloud does not attach to host Docker sockets; run a local MCP bridge.

Credential setup

local-bridge

This 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 Docker MCP server (stdio/HTTP) that can reach the Docker engine, then register that endpoint in your agent client. Do not paste socket paths into Astrail cloud credentials.

CLI: astrail connectors describe preset-docker

Hosted MCP endpoint

/api/mcp/preset-docker

Private servers require an Astrail API key in the Authorization header.

MCP client snippets

Connect

Claude Desktop config

{
  "mcpServers": {
    "docker-local-bridge-template": {
      "url": "/api/mcp/preset-docker"
    }
  }
}

cURL initialize

curl -sS -X POST "/api/mcp/preset-docker" \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'

cURL tools/list

curl -sS -X POST "/api/mcp/preset-docker" \
  -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-docker" \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"docker_list_containers","arguments":{"all":"example"}}}'

Runtime behavior

Runtime healthneeds_mapping
Endpoint healthnot_checked
Execution modemapping_required
Deterministic executionNot yet executable
Generated sourceExport only
Endpoint mapRequired
Endpoint mappedNo
Auth-required endpointsNone detected
Browser runtime endpointsNone detected
Last statusnot recorded
Last execution modenot recorded
Last toolnot recorded
Last latencynot recorded
Upstream statusnot recorded
Trace IDnot recorded
Error codenone
Observabilitystructured fallback
Rate limit modestandard
Missing authauth_required / oauth_required
Missing mappingmapping_required

Astrail does not evaluate generated TypeScript inside Next.js. Hosted calls are routed through stored tool metadata and endpoint maps.

Tools

3
docker_list_containers

List containers and current status via a local Docker bridge.

docker_get_logs

Fetch recent logs for a container via a local Docker bridge.

docker_restart_container

Restart a container after approval via a local Docker bridge.

server.ts
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: "Docker Local Bridge Template", version: "1.0.0" });

// Curated Astrail local-bridge template for: docker_list_containers, docker_get_logs, docker_restart_container.
// 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);