MCP tools reference

DriftGuard MCP server tools — offline-first for diff and config preview; hosted tools when DRIFTGUARD_API_KEY is set.

Setup: Connect MCP in Cursor · OSS entry: dist/mcp/server.js · Examples: examples/

Authentication

Set DRIFTGUARD_API_KEY in the MCP server env block (user or project mcp.json). Offline tools work without a key. Hosted tools return clear trial/pricing hints when the key is missing.

Offline tools (no API key)

ToolPurpose
compare_jsonDiff two JSON strings for breaking schema changes — CI fixtures, API responses, MCP tool output
parse_mcp_configPreview watch candidates from URLs or mcp.json — does not create watches
explain_driftAdd remediation hints (agentAction) to SchemaChange arrays from compare_json
hosted_infoExplain offline vs hosted boundary, pricing, and upgrade paths

Hosted tools (API key required)

ToolPurpose
register_watchCreate continuous watch on REST/OpenAPI or remote MCP URL
check_watchOn-demand snapshot + diff for one watch
list_watchesList watches and health
get_watch_statusCanonical drift_status, incident, agentActions — preflight per watch
get_agent_statusAgent binding status — preflight per agent id/slug
list_affected_agentsAgents impacted when a watch drifts
acknowledge_driftAck open incident (unblocks ack-gated policies)
trigger_remediationOpen SchemaSync draft PR when policy allows
list_drift_eventsRecent change records from monitoring
suggest_watchesParse URLs/mcp.json with catalog matching; optional auto-create
assert_coverageCI gate — fail when suggested deps are unwatched

When not to use MCP

  • Continuous monitoring → hosted watches, not repeated compare_json
  • Bulk fleet status → Preflight or REST API
  • GitLab-only CI → OSS GitLab CI docs

Related

  • Getting started (local-first)
  • Pre-run check (preflight)
  • REST API reference