10-Minute Quickstart

Follow these four steps to run the Walking Skeleton supergraph—combining a REST OpenAPI store (shop) and an MCP server (notes)—and query both in one typed request.

What you'll learn

  • Validate configuration files fail-closed with gap config check and gap doctor.
  • Boot the local REST + MCP sample fixtures alongside gap serve.
  • Send your first cross-branch GraphQL query joining both upstream sources.
On this page

Prerequisites

  • Built gap binary (from release assets or ./dist/build-reproducible.sh --offline at ./target/dist/gap).
  • Python 3.10+ (for the built-in sample REST and MCP fixtures under examples/walking-skeleton/fixtures/).

Step-by-Step Setup

  1. Inspect and validate the configuration

    Run static validation against examples/walking-skeleton/gap.toml before starting listeners. Unknown keys, unreferenced inline secrets, or missing spec files fail closed immediately:

    terminal Terminal — Validate gap.toml
    ./target/dist/gap config check examples/walking-skeleton/gap.toml
    ./target/dist/gap doctor --config examples/walking-skeleton/gap.toml
    text Expected Output (Exit 0 · OPS-044)
    ok: `examples/walking-skeleton/gap.toml` valid (2 branches)
    [ok] config.parse: parsed examples/walking-skeleton/gap.toml (profile=dev)
    [ok] security.sandbox: OS sandbox operational
    [ok] security.egress_guard: egress SSRF self-test matrix passed
    [warn] models.s1: model cache incomplete offline; degrades safely to baseline (RTE-044)
    summary: 11 ok, 1 warn, 0 fail, 0 skip
    • Notice: Both commands exit 0 (OPS-044), and the dev-agent API key is hashed with BLAKE3 in TOML—no plaintext secret is ever persisted.
  2. Start both upstream fixtures

    Open two terminal tabs (or run in background) to launch the mock REST API on port 9101 and the MCP server on port 9102:

    terminal Terminal — Mock OpenAPI + MCP Upstreams
    python3 examples/walking-skeleton/fixtures/rest_fixture.py --port 9101 &
    python3 examples/walking-skeleton/fixtures/mcp_fixture.py --port 9102 &
  3. Boot the GAP Gateway

    Start gap serve pointing at the walking-skeleton configuration:

    terminal Terminal — Start Gateway
    ./target/dist/gap serve --config examples/walking-skeleton/gap.toml
    • Readiness probe: GET http://127.0.0.1:8080/readyz returns HTTP 200 ({"status":"ready","generation":1}) once snapshot generation 1 is pinned.
  4. Execute your first cross-branch query

    Fetch customer profile and order rows from OpenAPI shop alongside the JSON notes payload from MCP notes (note: customer_notes returns a JSON scalar leaf, so select it without subfields):

    terminal Terminal — Federated GraphQL Query
    curl -sS -X POST http://127.0.0.1:8080/graphql \
      -H "Content-Type: application/json" \
      -H "Accept: application/graphql-response+json" \
      -H "Authorization: Bearer gap_dev_skeleton_key_01" \
      -d '{"query": "{ customer(id: 1) { id name tier } orders(customer_id: 1) { id total_cents status } customer_notes(customer_id: 1) }"}' | python3 -m json.tool
    json Expected Output — HTTP 200 JSON
    {
      "data": {
        "customer": { "id": 1, "name": "Ada Lovelace", "tier": "vip" },
        "orders": [
          { "id": 101, "total_cents": 4200, "status": "paid" },
          { "id": 103, "total_cents": 8500, "status": "pending" }
        ],
        "customer_notes": {
          "customer_id": 1,
          "notes": [{ "note_id": "n-1", "customer_id": 1, "summary": "Prefers consolidated monthly invoice" }]
        }
      },
      "extensions": {
        "gap": { "cost": { "actual": 7, "planned": 306 }, "generation": 1, "partial": false }
      }
    }

Step 5: Connect MCP Hosts or Stream AG-UI Events

Rather than exposing every REST endpoint individually, attach your AI client to GAP's fixed 5-tool MCP 2026-07-28 server over stdio or HTTP, or stream AG-UI v1.0 events over SSE. Read full host details on MCP, A2A & AG-UI Facades.

json mcp_servers.json — Stdio Client Config
{
  "mcpServers": {
    "gap-gateway": {
      "command": "/path/to/GraphProtocol/target/dist/gap",
      "args": ["serve", "--config", "examples/walking-skeleton/gap.toml", "--stdio"]
    }
  }
}
terminal Terminal — Live AG-UI v1.0 SSE Stream
curl -sS -N -X POST http://127.0.0.1:8080/ag-ui \
  -H "Content-Type: application/json" \
  -H "Accept: text/event-stream" \
  -H "Authorization: Bearer gap_dev_skeleton_key_01" \
  -d '{"threadId":"t1","runId":"r1","messages":[],"forwardedProps":{"graphql":{"query":"{ customer(id: 1) { id name } customer_notes(customer_id: 1) }"}}}'