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 checkandgap 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
gapbinary (from release assets or./dist/build-reproducible.sh --offlineat./target/dist/gap). - Python 3.10+ (for the built-in sample REST and MCP fixtures under
examples/walking-skeleton/fixtures/).
Step-by-Step Setup
-
Inspect and validate the configuration
Run static validation against
examples/walking-skeleton/gap.tomlbefore starting listeners. Unknown keys, unreferenced inline secrets, or missing spec files fail closed immediately:./target/dist/gap config check examples/walking-skeleton/gap.toml ./target/dist/gap doctor --config examples/walking-skeleton/gap.tomlok: `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 thedev-agentAPI key is hashed with BLAKE3 in TOML—no plaintext secret is ever persisted.
- Notice: Both commands exit
-
Start both upstream fixtures
Open two terminal tabs (or run in background) to launch the mock REST API on port
9101and the MCP server on port9102:python3 examples/walking-skeleton/fixtures/rest_fixture.py --port 9101 & python3 examples/walking-skeleton/fixtures/mcp_fixture.py --port 9102 & -
Boot the GAP Gateway
Start
gap servepointing at the walking-skeleton configuration:./target/dist/gap serve --config examples/walking-skeleton/gap.toml- Readiness probe:
GET http://127.0.0.1:8080/readyzreturns HTTP200({"status":"ready","generation":1}) once snapshot generation1is pinned.
- Readiness probe:
-
Execute your first cross-branch query
Fetch customer profile and order rows from OpenAPI
shopalongside the JSON notes payload from MCPnotes(note:customer_notesreturns aJSONscalar leaf, so select it without subfields):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{ "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.
{
"mcpServers": {
"gap-gateway": {
"command": "/path/to/GraphProtocol/target/dist/gap",
"args": ["serve", "--config", "examples/walking-skeleton/gap.toml", "--stdio"]
}
}
}
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) }"}}}'