Skip to main content

MCP Server

The MCP server container packages the Stemix IDP MCP adapter so AI agents can interact with the portal without installing Node.js or knowing the BFF's HTTP conventions. It is stack-independent and connects to any running BFF.

Image​

ImageDefault PortBase Image
stemix-mcp-server8080node:24-alpine

Build​

make -C tools/mcp build-container

Run​

docker run --rm -p 8080:8080 \
-e OUR_IDP_BFF_URL=http://host.docker.internal:8000 \
ghcr.io/ourchitecture/idp/stemix-mcp-server:edge

Environment Variables​

VariableDefaultDescription
OUR_IDP_BFF_URLhttp://localhost:8000Base URL of the BFF to connect to
OUR_IDP_MCP_PORT8080HTTP port the MCP server listens on
MCP_HTTP_HOST0.0.0.0Bind address (use 127.0.0.1 for local-only)

Tools Exposed​

ToolDescription
get_portal_summaryReturns the shared IDP status summary contract for IDP-owned components
check_healthReturns BFF /health and /readiness responses
list_flow_insightsLists flow insights with optional provider/service/repo/team/actor filters and role-aware summaries
get_flow_insightReturns one flow insight by insightId, matching the HTTP detail contract
list_my_blockersReturns blocker signals (blocked_on_review, waiting_on_evidence, aging_implementation) for a given actor
list_service_risk_signalsReturns aggregated risk signals for the specified service scope

Example prompts and shapes for the flow tools live in Flow Insights HTTP API.

Dockerfile​

Located at tools/mcp/Dockerfile. Multi-stage node:24-alpine image: builder stage runs tsc, runtime stage copies compiled output and installs production dependencies only.