-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
1227 lines (1158 loc) · 41.5 KB
/
Copy pathopenapi.yaml
File metadata and controls
1227 lines (1158 loc) · 41.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
#
# BoJ Server — OpenAPI 3.1 Specification
#
# Describes the REST API surface of the BoJ cartridge server (port 7700).
# The Zig adapter (replacing the zig adapter) implements these routes, backed
# by Idris2 ABI proofs and Zig FFI execution layers.
openapi: 3.1.0
info:
title: BoJ Server REST API
version: 0.4.7
summary: Formally verified cartridge server for cloud infrastructure, databases, git, containers, and more.
description: |
BoJ (Bundle of Joy) Server is a cartridge-based infrastructure management
platform. Each cartridge is a formally verified module (Idris2 ABI proofs,
Zig FFI execution, Zig network adapter) that exposes tools for managing
cloud providers, databases, git repositories, containers, Kubernetes clusters,
observability, secrets, IaC, and more.
The server exposes four protocol surfaces:
- **REST** (port 7700) — described by this specification
- **gRPC** (port 7701) — uses Protocol Buffers (protobuf) for serialization
- **GraphQL** (port 7702) — uses JSON for queries and responses
- **MCP/SSE** (port 7703) — remote MCP transport using NDJSON for event streaming
Internal communication between Idris2 proofs and Zig FFI uses:
- **Cap'n Proto** for high-performance, schema-based serialization
- **Bebop3** for lightweight, schema-based serialization
- **AVOW Protocol** for safety-critical operations and verification
Cartridges are organised into three tiers:
- **Teranga** — general-purpose cartridges (database, cloud, git, etc.)
- **Shield** — security-sensitive cartridges (secrets, proof verification)
- **Ayo** — community-contributed cartridges (require review before mounting)
license:
name: MPL-2.0
identifier: MPL-2.0
contact:
name: Jonathan D.A. Jewell
email: j.d.a.jewell@open.ac.uk
url: https://github.com/hyperpolymath/boj-server
servers:
- url: http://localhost:7700
description: Local development server (REST port)
tags:
- name: Core
description: Server health, status, and menu endpoints.
- name: Cartridges
description: Cartridge discovery, lifecycle (load/unload/reload), and tool invocation.
- name: Federation
description: Umoja federation, coprocessor dispatch, SLA monitoring, community submissions, and auto-SDP.
security: []
paths:
# ─────────────────────────────────────────────────────────────────────
# Core endpoints
# ─────────────────────────────────────────────────────────────────────
/health:
get:
operationId: getHealth
summary: Server health check
description: Returns a simple health status. Always responds with 200 when the server is running.
tags: [Core]
responses:
"200":
description: Server is healthy.
content:
application/json:
schema:
$ref: "#/components/schemas/HealthStatus"
# ─────────────────────────────────────────────────────────────────────
# GraphQL endpoints
# ─────────────────────────────────────────────────────────────────────
/graphql:
post:
operationId: graphqlQuery
summary: GraphQL query endpoint
description: |
GraphQL endpoint for querying cartridge data, status, and events.
Supports subscriptions for real-time updates (e.g., cartridge mount/unmount events).
Input is validated according to OWASP guidelines to prevent injection attacks.
Uses JSON for serialization.
tags: [Core]
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: GraphQL query string. Validated to prevent injection.
variables:
type: object
description: Query variables (optional). Validated for safety.
required: [query]
responses:
"200":
description: GraphQL response.
content:
application/json:
schema:
type: object
properties:
data:
type: object
description: Query results.
errors:
type: array
items:
type: object
description: Error details (if any).
"400":
description: Invalid GraphQL query or unsafe input.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/status:
get:
operationId: getStatus
summary: Detailed server status
description: |
Returns comprehensive server status including catalogue version, cartridge
counts (total, ready, mounted), uptime, and protocol surface information.
tags: [Core]
responses:
"200":
description: Full server status.
content:
application/json:
schema:
$ref: "#/components/schemas/ServerStatus"
/menu:
get:
operationId: getMenu
summary: List all cartridges (Teranga menu)
description: |
Returns the full cartridge menu organised by tier (Teranga, Shield, Ayo).
Each entry includes cartridge name, version, domain, supported protocols,
status, and availability. This is the primary discovery endpoint.
tags: [Core]
responses:
"200":
description: Cartridge menu grouped by tier.
content:
application/json:
schema:
$ref: "#/components/schemas/Menu"
/matrix:
get:
operationId: getMatrix
summary: Protocol-domain cartridge matrix
description: |
Returns a grid showing which cartridges serve which protocol/domain
combinations. Mounted cartridges are marked with [M] prefix.
tags: [Core]
responses:
"200":
description: Cartridge matrix grid.
content:
application/json:
schema:
$ref: "#/components/schemas/MatrixResponse"
# ─────────────────────────────────────────────────────────────────────
# Cartridge endpoints
# ─────────────────────────────────────────────────────────────────────
/cartridges:
get:
operationId: getCartridges
summary: Cartridge matrix (alias)
description: |
Alias for `/matrix`. Returns the protocol-domain cartridge grid.
tags: [Cartridges]
responses:
"200":
description: Cartridge matrix grid.
content:
application/json:
schema:
$ref: "#/components/schemas/MatrixResponse"
/cartridge/{name}:
get:
operationId: getCartridgeInfo
summary: Get cartridge details
description: |
Returns detailed information about a specific cartridge including its
version, domain, supported protocols, mount status, and endpoint URIs
for REST, gRPC, and GraphQL access.
tags: [Cartridges]
parameters:
- $ref: "#/components/parameters/CartridgeName"
responses:
"200":
description: Cartridge details.
content:
application/json:
schema:
$ref: "#/components/schemas/CartridgeDetail"
"404":
description: Cartridge not found.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"503":
description: Cartridge exists but is not mounted.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/cartridge/{name}/invoke:
post:
operationId: invokeCartridge
summary: Invoke a cartridge tool
description: |
Sends a tool invocation request to a mounted cartridge. The request body
must include a `tool` field identifying the operation and an `args` object
with tool-specific parameters.
Each cartridge exposes domain-specific tools. For example:
- **database-mcp**: health, list_octads, create_octad, vql, sql, drift, etc.
- **container-mcp**: list, build, run, stop, logs, inspect, etc.
- **git-mcp**: status, log, diff, branches, remotes, list_repos, etc.
- **ssg-mcp**: build, preview, deploy, new, etc.
- **secrets-mcp**: list, get, set, delete, encrypt, decrypt, etc.
- **proof-mcp**: check, verify, typecheck, etc.
- **iac-mcp**: validate, eval, plan_summary, etc.
- **k8s-mcp**: list_stacks, validate_stack, security_scan, gap_analysis, generate, etc.
- **observe-mcp**: status, metrics, logs, alerts, etc.
- **agent-mcp**: dispatch, status, list_agents, etc.
- **fleet-mcp**: scan_repo, diagnostics, list_repos, etc.
- **lsp-mcp**: diagnostics, completions, hover, references, etc.
- **dap-mcp**: list_debug_targets, launch, breakpoints, etc.
- **bsp-mcp**: build, targets, list_build_files, etc.
tags: [Cartridges]
parameters:
- $ref: "#/components/parameters/CartridgeName"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/InvokeRequest"
examples:
database_health:
summary: Check database-mcp health
value:
tool: health
args: {}
database_vql:
summary: Execute a VQL query
value:
tool: vql
args:
vql: '{"query": "SELECT * FROM octads LIMIT 10"}'
database_sql:
summary: Execute a SQL query
value:
tool: sql
args:
path: /path/to/db.sqlite
sql: "SELECT * FROM users LIMIT 5"
container_list:
summary: List running containers
value:
tool: list
args: {}
git_status:
summary: Git repository status
value:
tool: status
args:
path: /path/to/repo
ssg_build:
summary: Build a static site
value:
tool: build
args:
engine: zola
path: /path/to/site
responses:
"200":
description: Tool invocation succeeded.
content:
application/json:
schema:
$ref: "#/components/schemas/InvokeResponse"
"400":
description: Invalid request (missing tool, bad arguments).
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"404":
description: Cartridge not found.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"405":
description: Method not allowed (must be POST).
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"503":
description: Cartridge not mounted.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/cartridge/{name}/load:
post:
operationId: loadCartridge
summary: Mount a cartridge
description: |
Mounts (activates) a cartridge so it can receive tool invocations.
A cartridge must be in the Ready state to be mounted. Emits a
"mount" event to GraphQL subscribers.
tags: [Cartridges]
parameters:
- $ref: "#/components/parameters/CartridgeName"
responses:
"200":
description: Cartridge mounted successfully.
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: mounted
cartridge:
type: string
example: database-mcp
required: [status, cartridge]
"404":
description: Cartridge not found.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"500":
description: Mount failed (not ready, or catalogue error).
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/cartridge/{name}/unload:
post:
operationId: unloadCartridge
summary: Unmount a cartridge
description: |
Unmounts (deactivates) a cartridge. Emits an "unmount" event to
GraphQL subscribers.
tags: [Cartridges]
parameters:
- $ref: "#/components/parameters/CartridgeName"
responses:
"200":
description: Cartridge unmounted successfully.
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: unmounted
cartridge:
type: string
example: database-mcp
required: [status, cartridge]
"404":
description: Cartridge not found.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"500":
description: Unmount error.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/cartridge/{name}/reload:
post:
operationId: reloadCartridge
summary: Reload a cartridge (unmount, verify, remount)
description: |
Hot-reloads a cartridge by unmounting it, re-verifying its binary
hash (if one is stored in the catalogue), and remounting it. Useful
after rebuilding a cartridge's Zig FFI library.
tags: [Cartridges]
parameters:
- $ref: "#/components/parameters/CartridgeName"
responses:
"200":
description: Cartridge reloaded successfully.
content:
application/json:
schema:
$ref: "#/components/schemas/ReloadResponse"
"404":
description: Cartridge not found.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"409":
description: Hash mismatch during reload verification.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"500":
description: Reload failed (binary not found, or mount error).
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
# ─────────────────────────────────────────────────────────────────────
# gRPC endpoints
# ─────────────────────────────────────────────────────────────────────
/grpc/{service}/{method}:
post:
operationId: grpcMethod
summary: gRPC method endpoint
description: |
JSON-over-HTTP gRPC compatibility endpoint. Maps to gRPC service/method
paths (e.g., `/grpc/CartridgeService/Invoke`).
Service and method names are validated to prevent path traversal.
Uses Protocol Buffers (protobuf) for serialization.
tags: [Core]
parameters:
- name: service
in: path
description: gRPC service name. Validated to prevent path traversal.
required: true
schema:
type: string
- name: method
in: path
description: gRPC method name. Validated to prevent path traversal.
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
description: gRPC request payload. Validated for safety.
responses:
"200":
description: gRPC response.
content:
application/json:
schema:
type: object
description: gRPC response payload.
"400":
description: Invalid gRPC request or unsafe input.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"404":
description: Service or method not found.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
# ─────────────────────────────────────────────────────────────────────
# MCP/SSE endpoints
# ─────────────────────────────────────────────────────────────────────
/sse:
get:
operationId: sseStream
summary: MCP/SSE event stream
description: |
Server-Sent Events (SSE) stream for remote MCP clients (Glama, Claude Desktop, Cursor).
Streams real-time events such as cartridge mount/unmount, federation updates, and tool invocations.
Access is rate-limited to prevent abuse. Uses NDJSON for event serialization.
tags: [Core]
responses:
"200":
description: SSE stream.
content:
text/event-stream:
schema:
type: string
description: SSE event stream in NDJSON format.
"400":
description: Invalid SSE request.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"429":
description: Too many requests. Rate limit exceeded.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
# ─────────────────────────────────────────────────────────────────────
# Order endpoints (Teranga ordering model)
# ─────────────────────────────────────────────────────────────────────
/order:
post:
operationId: submitOrder
summary: Submit a cartridge order
description: |
Submits an order to a cartridge using the Teranga ordering model.
Orders are validated, dispatched to the target cartridge, and tracked.
tags: [Cartridges]
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/OrderRequest"
responses:
"200":
description: Order accepted and processed.
content:
application/json:
schema:
$ref: "#/components/schemas/OrderResponse"
"400":
description: Invalid order JSON.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"405":
description: Method not allowed (must be POST).
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/order-ticket:
post:
operationId: submitOrderTicket
summary: Submit an order ticket
description: |
Submits a raw order ticket for asynchronous processing.
tags: [Cartridges]
requestBody:
required: true
content:
application/json:
schema:
type: object
description: Raw order ticket body.
responses:
"200":
description: Ticket accepted.
content:
application/json:
schema:
type: object
"405":
description: Method not allowed (must be POST).
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
# ─────────────────────────────────────────────────────────────────────
# Federation endpoints (Umoja)
# ─────────────────────────────────────────────────────────────────────
/umoja/status:
get:
operationId: getUmojaStatus
summary: Umoja federation status
description: Returns the current state of this node's Umoja federation membership.
tags: [Federation]
responses:
"200":
description: Federation status.
content:
application/json:
schema:
$ref: "#/components/schemas/UmojaStatus"
/umoja/peers:
get:
operationId: getUmojaPeers
summary: List federation peers
description: Returns the list of known Umoja federation peers.
tags: [Federation]
responses:
"200":
description: Peer list.
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/UmojaPeer"
post:
operationId: addUmojaPeer
summary: Add a federation peer
description: Registers a new peer in the Umoja federation mesh.
tags: [Federation]
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/UmojaPeer"
responses:
"200":
description: Peer added.
content:
application/json:
schema:
type: object
/umoja/transport:
get:
operationId: getUmojaTransport
summary: Federation transport mode
description: Returns the current transport mode (QUIC or UDP) for federation traffic.
tags: [Federation]
responses:
"200":
description: Transport mode.
content:
application/json:
schema:
type: object
properties:
mode:
type: string
enum: [quic, udp]
required: [mode]
/coprocessor/status:
get:
operationId: getCoprocessorStatus
summary: Coprocessor dispatch status
description: Returns the status of the coprocessor dispatch subsystem.
tags: [Federation]
responses:
"200":
description: Coprocessor status.
content:
application/json:
schema:
type: object
/coprocessor/select:
post:
operationId: selectCoprocessor
summary: Select a coprocessor
description: Selects a coprocessor for dispatching workloads.
tags: [Federation]
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
"200":
description: Coprocessor selected.
content:
application/json:
schema:
type: object
/sla/status:
get:
operationId: getSlaStatus
summary: SLA monitoring status
description: Returns SLA metrics including total requests processed.
tags: [Federation]
responses:
"200":
description: SLA metrics.
content:
application/json:
schema:
$ref: "#/components/schemas/SlaStatus"
/community/submissions:
get:
operationId: getCommunitySubmissions
summary: List community cartridge submissions
description: Returns all pending community-contributed cartridge submissions.
tags: [Federation]
responses:
"200":
description: Submission list.
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/CommunitySubmission"
/community/submit:
post:
operationId: submitCommunityCartridge
summary: Submit a community cartridge
description: Submit a cartridge for community review and potential inclusion in the Ayo tier.
tags: [Federation]
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CommunitySubmission"
responses:
"200":
description: Submission accepted.
content:
application/json:
schema:
type: object
/sdp/status:
get:
operationId: getSdpStatus
summary: Auto-SDP status
description: Returns the status of the automatic Service Delivery Platform subsystem.
tags: [Federation]
responses:
"200":
description: SDP status.
content:
application/json:
schema:
type: object
# ─────────────────────────────────────────────────────────────────────
# Webhook endpoint
# ─────────────────────────────────────────────────────────────────────
/cartridges/ssg-mcp/webhook:
post:
operationId: ssgWebhook
summary: SSG webhook receiver (GitHub push events)
description: |
Receives GitHub webhook payloads for static site generation cartridge.
Validates HMAC-SHA256 signature via X-Hub-Signature-256 header before
dispatching to the ssg-mcp cartridge invoke handler.
tags: [Cartridges]
parameters:
- name: X-Hub-Signature-256
in: header
required: true
schema:
type: string
description: HMAC-SHA256 signature from GitHub.
requestBody:
required: true
content:
application/json:
schema:
type: object
description: GitHub webhook event payload.
responses:
"200":
description: Webhook processed.
content:
application/json:
schema:
$ref: "#/components/schemas/InvokeResponse"
"401":
description: Invalid webhook signature.
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
"405":
description: Method not allowed (must be POST).
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
# ═══════════════════════════════════════════════════════════════════════
# Components
# ═══════════════════════════════════════════════════════════════════════
components:
parameters:
CartridgeName:
name: name
in: path
required: true
description: |
Cartridge identifier. Lowercase alphanumeric with hyphens, max 64 characters.
Examples: database-mcp, container-mcp, git-mcp, secrets-mcp.
schema:
type: string
pattern: "^[a-z0-9][a-z0-9-]{0,63}$"
examples:
- database-mcp
- container-mcp
- git-mcp
- secrets-mcp
- proof-mcp
schemas:
# ── Core schemas ──────────────────────────────────────────────────
HealthStatus:
type: object
description: Simple health check response.
properties:
status:
type: string
enum: [ok]
description: Always "ok" when the server is running.
required: [status]
examples:
- status: ok
ServerStatus:
type: object
description: Detailed server status with catalogue metrics.
properties:
server:
type: string
description: Server name.
example: boj-server
version:
type: string
description: Server version.
example: 0.3.0
catalogue_version:
type: string
description: ABI catalogue version from the Zig FFI layer.
total_cartridges:
type: integer
description: Total number of registered cartridges.
ready_cartridges:
type: integer
description: Number of cartridges in Ready state.
mounted_cartridges:
type: integer
description: Number of currently mounted cartridges.
protocols:
type: object
description: Protocol surface URIs.
properties:
rest:
type: string
example: "http://localhost:7700"
grpc:
type: string
example: "grpc://localhost:7701"
graphql:
type: string
example: "http://localhost:7702"
mcp_sse:
type: string
example: "http://localhost:7703"
Menu:
type: object
description: Cartridge menu grouped by security tier.
properties:
tier_teranga:
type: array
description: General-purpose cartridges.
items:
$ref: "#/components/schemas/CartridgeInfo"
tier_shield:
type: array
description: Security-sensitive cartridges (secrets, proofs).
items:
$ref: "#/components/schemas/CartridgeInfo"
tier_ayo:
type: array
description: Community-contributed cartridges (pending review).
items:
$ref: "#/components/schemas/CartridgeInfo"
summary:
type: object
description: Aggregate counts.
properties:
total:
type: integer
ready:
type: integer
mounted:
type: integer
required: [total, ready, mounted]
required: [tier_teranga, tier_shield, tier_ayo, summary]
CartridgeInfo:
type: object
description: Summary information about a single cartridge.
properties:
name:
type: string
description: Cartridge identifier.
example: database-mcp
version:
type: string
description: Semantic version.
example: 0.2.0
domain:
type: string
description: Functional domain.
enum: [Database, NeSy, Fleet, Cloud, Container, Kubernetes, "Git/VCS", Queues, IaC, Observability, SSG, Feedback, Communications, "ML/AI", Research, Languages, Secrets, Proof]
protocols:
type: array
description: Supported protocol surfaces.
items:
type: string
enum: [MCP, REST, gRPC, NeSy, Fleet, Agentic, LSP, DAP, BSP]
status:
type: string
description: Current cartridge status.
enum: [Available, Mounted, Error, Pending]
available:
type: boolean
description: Whether the cartridge can be mounted.
backends:
type: array
description: Backend implementations (cartridge-specific, optional).
items:
type: string
languages:
type: array
description: Supported languages (lang-mcp only, optional).
items:
type: string
required: [name, version, domain, protocols, status, available]
CartridgeDetail:
type: object
description: Detailed cartridge information including endpoint URIs.
properties:
name:
type: string
example: database-mcp
version:
type: string
example: 0.2.0
domain:
type: string
example: Database
protocols:
type: array
items:
type: string
status:
type: string
example: Available
mounted:
type: boolean
description: Whether the cartridge is currently mounted.
endpoints:
$ref: "#/components/schemas/EndpointInfo"
required: [name, version, domain, protocols, status, mounted, endpoints]
EndpointInfo:
type: object
description: Protocol endpoint URIs for a specific cartridge.
properties:
cartridge:
type: string