Repository navigation
Commit ea6cdfa
authored
[4] Public catalog MCP surface for agent assembly (#32)
* [4] Public catalog MCP surface for agent assembly
Add a thin Streamable HTTP MCP server on pegma-dev-api at /api/mcp that
reads the published composition catalog. Tools list/get components and
recipes plus rule-based plan_composition; skill page and llms.txt carry
the config snippet. Catalog remains the system of record.
* [4] Harden plan_composition for deps, green fixtures, logging
Close recommended packages over required component dependencies and
recipe package owners. Gate production plans on green fixtures. Fix
static_host heavy-tag filtering and log MCP error messages.
* [4] Prefer primary recipe and host-filtered adapter packages
plan_composition no longer unions every partial recipe match into one
install set; packages come from the top recipe (or tag match) with
requires-closure. Adapter packages are filtered by host. Enrich
storage-blobs so it is reachable via the storage capability tag.
* [4] Keep tag matches and host-filter recipe pins
Include tag-matched components alongside the primary recipe so combined
capabilities (e.g. accounts+health) stay in the plan. Skip recipe package
pins that are adapters for a different host than requested.
* [4] Distinguish storage_blobs capability from record storage
Add storage_blobs to the catalog capability tag set and tag storage-blobs
with it so plan_composition no longer selects blob packages on generic
storage / host-only queries.
* [4] Tighten plan selection and package pins; stale catalog fallback
Require meaningful core-tag coverage so incidental single-tag hits do not
select heavy recipes. Prefer primary-recipe package pins over dumping every
package on multi-package components. Serve stale catalog on revalidation
failure when a warm isolate cache exists.
* [4] Fix exclusive-tag coverage, host adapters, catalog backoff
Allow singular accounts/passkeys requests while still rejecting incidental
storage-only selection of the accounts recipe. Emit host adapter packages
beside recipe core pins. On revalidation failure, serve stale catalog and
reset TTL to back off.1 parent 6b92d48 commit ea6cdfa
20 files changed
Lines changed: 4016 additions & 147 deletions
File tree
- docs
- catalog
- public
- src
- data
- layouts
- pages
- worker
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
313 | 317 | | |
314 | 318 | | |
315 | 319 | | |
316 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
317 | 328 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
322 | 338 | | |
323 | 339 | | |
324 | 340 | | |
325 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
326 | 346 | | |
327 | 347 | | |
328 | 348 | | |
| |||
398 | 418 | | |
399 | 419 | | |
400 | 420 | | |
401 | | - | |
402 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
403 | 424 | | |
404 | 425 | | |
405 | 426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments