Skip to content

mecatequi/mecak8s: register --mcp-server and per-server bearer-token env (factory mode) #341

Description

@JAORMX

Part of the dark-factory epic (stacklok/stacklok-epics#297). Phase 0/1. Pairs with stacklok/titlani#37 / stacklok/titlani#38.

Gap. The factory-facing binaries have no MCP wiring surface: --mcp-server + the MCP_<NAME>_TOKEN bearer env are wired only in mecated (cmd/mecated/main.go); mecatequi and mecak8s register neither, though app.Config.MCPServers already exists. A scheduler (titlani) launching one-shot runs needs the run to reach a vmcp/tequitl MCP endpoint with a per-run bearer.

What

  • Register --mcp-server (and the MCP_<NAME>_TOKEN env convention) on mecatequi and mecak8s.
  • Decide --run-id/--task-ref: accept as run-correlation metadata (echoed in Summary/events) or reject and let the scheduler drop them — record in the joint contract ADR (stacklok/titlani#37).
  • Document the factory invocation profile: --posture auto, --no-scheduler, --untrusted-prompt fencing for externally-sourced task bodies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions