Multi-Agent Security Patterns
Because lyftdata mcp-server is a lightweight client-hosted process included in every edition (including free Community), security teams do not need to grant one broad copilot full administrative access. Instead, you can run multiple narrow, single-purpose MCP sessions in parallel — using Codex, Claude Code, Cursor, or any MCP-compatible client — while keeping every session locked to its exact tenant, environment, tool tier, and Server role.
Three scoped Blue Team session profiles
Section titled “Three scoped Blue Team session profiles”Separate inspection, non-production testing/drafting, and pre-approved circuit-breaker invocation into distinct identities and MCP registrations:
| Profile | Local --max-tool-tier |
Server RBAC identity | Allowed work | What it cannot do |
|---|---|---|---|---|
| Read-only Watchers | read_only (default) |
Viewer or api_read API key |
Inspect scope, jobs, alerts, traces, and read-only previews (mcp_session_scope_get, tool_inventory, job_yaml_preview; server_status for Viewer/User/Admin profiles or jobs_list for api_read API keys) |
Cannot run job_test_run, generate Deployment Manager plans (/api/deployments/plan requires Admin + Community+), edit jobs, apply deployments, or fire Triggers |
| Triage & Plan Drafters | read_only for inspection; separate non-production write session for testing & drafting |
Dedicated staging Server authoring identity (Job read/write grants; Admin needed for deployment_plan_preview on Community+) |
Inspect alerts and schemas at read_only; test declarative DSL fixes on small synthetic samples via job_test_run (Run & Trace) and stage Plan diffs or Proposals (Community+) on a dedicated staging Server |
Cannot touch production Server or invoke destructive tools |
| Circuit-Breaker Responders | write |
Dedicated User principal (short-lived User JWT or User CLI profile) authorized by each Trigger’s tenant and role policy | Discover and invoke only published MCP Triggers (trigger_invoke__<normalized_slug>) whose role and tenant policy permit that User (JSON Schema validated, rate-limited) |
Cannot see unpublished or unauthorized Triggers, perform Admin deployment mutations, or read ${secret|scope/name} values |
Two-lock least privilege and approval boundaries
Section titled “Two-lock least privilege and approval boundaries”Every MCP call passes through two independent gates:
Effective authority = narrower of (local --max-tool-tier, Server RBAC)- A read-only MCP process constrains even an administrator token to read-only tools.
- A
--max-tool-tier writeprocess cannot elevate a viewer or User Server identity (for example,deployment_plan_previewsits in the localread_onlyMCP tier, but/api/deployments/planstill requires Admin Server authority and a licensed Community+ deployment). - Conditional approval honesty: Ordinary writes through MCP or LyftData Operator (Preview) use ordinary Server authorization — LyftData adds no separate human approval step when the authenticated identity is already allowed to apply directly. When you want mandatory human review before a change takes effect, route drafting through Proposals (Community+ and above) or Governed effect review, where a person validates and approves the diff before apply.
Configure scoped sessions
Section titled “Configure scoped sessions”Keep credentials out of process argument lists: store headless API keys in a private 0600 file passed with --api-key-file (never --api-key "${VAR}" on shared hosts), and use a dedicated CLI profile or short-lived JWT for User Trigger sessions.
Watcher session (read_only, private key file)
Section titled “Watcher session (read_only, private key file)”/absolute/path/to/lyftdata \ --url https://lyftdata.example.com \ mcp-server --stdio \ --api-key-file /etc/lyftdata/mcp/watcher.key \ --ttl 1800 \ --tenant secops \ --environment default \ --max-tool-tier read_onlyNon-production Triage & Test session (write, dedicated staging Server)
Section titled “Non-production Triage & Test session (write, dedicated staging Server)”In LyftData 3.0.1, MCP write tools such as job_test_run run against --environment default only (multi-environment promotion belongs to GitOps). Isolate non-production authoring and testing by pointing the write session at a dedicated staging Server’s default environment with an authorized tenant and Job read/write grants:
/absolute/path/to/lyftdata \ --url https://staging.lyftdata.example.com \ mcp-server --stdio \ --api-key-file /etc/lyftdata/mcp/triage-staging.key \ --ttl 1800 \ --tenant secops \ --environment default \ --max-tool-tier writeTrigger Responder session (write, User principal)
Section titled “Trigger Responder session (write, User principal)”Sign in with a dedicated least-privilege User account via a named profile (lyftdata --profile responder --url https://lyftdata.example.com auth login responder-user) — or supply a short-lived User JWT — and restrict MCP exposure via each published Trigger’s tenant and role policy:
/absolute/path/to/lyftdata \ --profile responder \ --url https://lyftdata.example.com \ mcp-server --stdio \ --tenant secops \ --environment default \ --max-tool-tier writeExternal-agent data egress and synthetic-sample hygiene
Section titled “External-agent data egress and synthetic-sample hygiene”LyftData sends nothing to a model provider on its own. What your own agent reads through MCP goes where that agent sends it, so you decide what it may read.
Follow these operating rules for every external MCP client:
- Use small synthetic samples only: When authoring or testing pipelines with
job_test_run(Run & Trace), supply synthetic security fixtures rather than live customer payloads. - Keep credentials out of prompts and YAML: Reference secrets through
${secret|scope/name}or Credential Manager; never paste raw tokens, API keys, or production logs into chat prompts. - Keep the event path deterministic by default: Self-hosted Rust Workers run your data plane with no LLM in the hot data path by default (AI enters the event stream only if an operator explicitly configures an opt-in
inferaction on Community+ and above, and zero data leaves LyftData’s embedded AI features unless an administrator configures a provider and records explicit per-feature consent).
Evidence ladder: verify every outcome
Section titled “Evidence ladder: verify every outcome”Dispatch is never reported as delivery — callers verify the strongest evidence level reached across intent, accepted change, applied state, observed runtime, and external acceptance.
LyftData cannot police what a third-party assistant writes in prose, and read-only snapshots (such as mcp_server_metrics or quarantine_census_get) do not stamp a five-level tag onto their responses. Require operators and automation scripts to verify the strongest evidence reached across all five levels:
- Intent — proposed YAML, workflow edit, or Trigger parameters.
- Accepted Change — Server accepted a saved job, Proposal, or
accepted_for_dispatchTrigger invocation. - Applied State — Deployment Manager converged desired state onto target Workers.
- Observed Runtime — Worker reports the exact target job Running with expected input/output counters and zero step errors.
- External Acceptance — destination-side readback (Splunk search, Sentinel KQL, object-store
jq -echeck, or HTTPwait-for-workflow+response-completereply).
Verify a scoped session before use
Section titled “Verify a scoped session before use”MCP initialization alone confirms stdio framing (in unauthenticated metadata-only mode, lyftdata mcp-server exposes only its two Provider Pack bootstrap tools). Run all four checks below before giving any client real work, picking the Server-backed read that matches the session’s identity (server_status for Viewer/User/Admin profiles, which calls /api/diagnostics/runtime; jobs_list for an api_read API key):
Call
mcp_session_scope_get,mcp_server_metrics,tool_inventory, and your role-matched Server-backed read (server_statusfor Viewer/User/Admin profiles, orjobs_listfor anapi_readAPI key). Confirm the server version matcheslyftdata --version, verify the selectedtenant,environment, Server roles, and--max-tool-tier, confirm live Server reachability and authentication, and verify that disallowed tools (such asjob_createon Watchers or non-approved Triggers on Responders) are absent fromtool_inventory.