Skip to main content
Glama

Inspektor Gadget MCP Server

Dockerfile1.4 kB
# Dockerfile for Inspektor Gadget MCP Server ARG BUILDER_IMAGE=golang:1.24.2-bullseye@sha256:f0fe88a509ede4f792cbd42056e939c210a1b2be282cfe89c57a654ef8707cd2 ARG BASE_IMAGE=gcr.io/distroless/static-debian11:latest@sha256:1dbe426d60caed5d19597532a2d74c8056cd7b1674042b88f7328690b5ead8ed FROM --platform=${BUILDPLATFORM} ${BUILDER_IMAGE} AS builder ARG TARGETARCH ARG TARGETARCH ARG VERSION=0.0.0 ENV VERSION=${VERSION} # Copy the source code COPY . /ig-mcp-server WORKDIR /ig-mcp-server # Build the ig-mcp-server binary RUN --mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/root/.cache/go-build \ CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \ -ldflags="-X main.version=${VERSION} -extldflags '-static'" \ github.com/inspektor-gadget/ig-mcp-server/cmd/ig-mcp-server # Final image FROM ${BASE_IMAGE} LABEL org.opencontainers.image.source=https://github.com/inspektor-gadget/ig-mcp-server LABEL org.opencontainers.image.title="Inspektor Gadget MCP Server" LABEL org.opencontainers.image.description="An AI interface for Inspektor Gadget to debug and monitor applications in Kubernetes clusters." LABEL org.opencontainers.image.documentation="https://inspektor-gadget.io" LABEL org.opencontainers.image.licenses=Apache-2.0 COPY --from=builder /ig-mcp-server/ig-mcp-server /ig-mcp-server ENV KUBECONFIG=/kubeconfig ENTRYPOINT ["/ig-mcp-server"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/inspektor-gadget/ig-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server