Skip to content

AI Agents & MCP 2.0

GatherGate ships with a built-in stateless MCP 2.0 server at POST /mcp and a bundled Agent Skill (SKILL.md, SEP-2640). Because everything runs inside your own GatherGate container or Node.js process, AI agents can create checklists, triage overdue packs, adjust deadlines, and send follow-up reminders 100% offline/self-hosted with zero external SaaS dependencies.

GatherGate’s MCP endpoint is metadata-only by design, strictly separating workflow triage from raw client submissions:

  • What MCP tools return: Request titles, statuses, deadlines, item completion counts, validator keys, operator review_url deep links, client_name (for non-purged requests; null once purged), and masked client emails (cl***@example.com.au, or ***@domain for 1-2 character local parts).
  • Never exposed to LLMs: Decrypted national IDs (TFN, Medicare, NINO, SSN), any submitted item text values, client notes, uploaded file names, raw file bytes, download/ZIP streams, workspace secrets (SMTP/Resend/webhook keys), and raw client magic-link tokens (/c/<token>).
  • Human-in-the-loop review: Every pack summary returns an operator review_url (https://your-host/requests/<id>). Agents direct humans to inspect uploaded documents or reveal masked IDs inside GatherGate’s browser ReviewSheet.
  • Bearer-only + Origin-checked: POST /mcp requires a scoped workspace API key (Authorization: Bearer gg_live_...), rejects session cookies (eliminating CSRF), enforces Origin validation when present, and logs all mutations under actor: "api_key" in audit_events.
  1. Open your GatherGate instance and navigate to Settings > API Keys.
  2. Create a key with the minimum scopes your agent needs:
    • Read-only triage: mcp:read
    • Create packs, update due dates, and chase clients: mcp:read + requests:write
  3. Copy the gg_live_... secret once and export it in your shell or secret manager as GATHERGATE_API_KEY.

GatherGate ships three built-in CLI helpers (zero extra dependencies, works without Docker):

Terminal window
# 1. Verify Node runtime, DATA_DIR, SQLite header, /healthz, and authenticated POST /mcp
npx gathergate doctor --url https://intake.yourfirm.com.au
# 2. Print MCP client config for any supported tool (add --write for JSON configs; claude-code prints a CLI command and codex prints TOML)
npx gathergate setup --client claude-desktop --url https://intake.yourfirm.com.au --write
# 3. Run the built-in stdio-to-HTTP MCP bridge (zero mcp-remote needed)
GATHERGATE_URL=https://intake.yourfirm.com.au GATHERGATE_API_KEY=gg_live_... npx gathergate mcp

Both doctor and mcp require https:// before transmitting GATHERGATE_API_KEY to non-loopback hosts (http:// is permitted only on localhost, 127.0.0.1, and [::1]), disable HTTP redirects (redirect: "error"), and never echo secrets into reports or stderr.

Replace https://intake.yourfirm.com.au/mcp with your GatherGate base URL (http://127.0.0.1:3080/mcp for local setups). You can generate any tab below automatically with npx gathergate setup --client <name> --url <url>.

Add GatherGate to your Antigravity MCP configuration (mcp_config.json):

{
"mcpServers": {
"gathergate": {
"serverUrl": "https://intake.yourfirm.com.au/mcp",
"headers": {
"Authorization": "Bearer ${env:GATHERGATE_API_KEY}"
}
}
}
}

GatherGate also advertises skill://gathergate/SKILL.md over MCP (SEP-2640), or you can install the local skill folder directly from skills/gathergate/SKILL.md in the repository.

GatherGate advertises the io.modelcontextprotocol/skills extension (SEP-2640) in both server/discover and legacy initialize capabilities. Hosts can inspect digests and pull progressive-disclosure Markdown files on demand:

  • skills/list and skills/get return frontmatter plus SHA-256 digest and byte size for each skill resource.
  • resources/read serves:
    • skill://gathergate/SKILL.md (core operator workflows and zero-PII rules)
    • skill://gathergate/references/intake-workflows.md (AU/UK/US/EU packs, OTP defaults, partial submissions)
    • skill://gathergate/references/security-boundary.md (scopes, masking, and audit trail)

For agents that read skills from disk, the exact same files live at skills/gathergate/ in FAAS19/gathergate and inside the published gathergate npm package.

Tool Required Scope Behaviour
list_templates mcp:read Lists workspace templates, item counts, validator keys, and sensitivity flags.
list_requests mcp:read Lists active/closed packs with client_name (non-purged), masked emails (cl***@example.com.au), item counts, and review_url.
get_request_status mcp:read Returns pack metadata (client_name for non-purged packs, masked email), per-item status (pending, submitted, approved, rejected), has_value, has_client_note, upload_count, and review_url.
list_overdue_requests mcp:read Lists overdue packs (or packs due within within_days 0..30) with client_name (non-purged), masked email, and outstanding item labels.
create_request requests:write Creates a checklist from a workspace template and optionally emails the client invite. Never returns the raw client magic token.
send_reminder requests:write Sends a polite manual reminder for outstanding items, enforcing the 15-minute cooldown and per-request concurrency lock.
update_due_date requests:write Updates or clears due_at on an active pack.

GatherGate supports both MCP 2026-07-28 (stateless server/discover, resultType: "complete", Mcp-Method/Mcp-Name header validation, ttlMs/cacheScope) and legacy revisions (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05).

Verify your live endpoint with npx gathergate doctor or curl:

Terminal window
GATHERGATE_API_KEY=gg_live_... npx gathergate doctor --url https://intake.yourfirm.com.au
curl -sS -X POST https://intake.yourfirm.com.au/mcp \
-H "Authorization: Bearer $GATHERGATE_API_KEY" \
-H "Content-Type: application/json" \
-H "MCP-Protocol-Version: 2026-07-28" \
-H "Mcp-Method: server/discover" \
-d '{"jsonrpc":"2.0","id":1,"method":"server/discover"}'

Every page on gathergate.app/docs/ is also served as clean raw Markdown by replacing its trailing / with .md (or fetching /docs/index.md for the overview), and the complete documentation is compiled into a single file:

  • Concise install index: https://gathergate.app/llms.txt
  • Full agent documentation: https://gathergate.app/docs/llms-full.txt
  • This page as raw Markdown: https://gathergate.app/docs/guides/ai-agents.md