MCP evolver_asset_publish can never submit a valid bundle: single-asset body vs the hub's Gene+Capsule requirement, and gep-sdk capsule.schema.json forbids the required `validation` field
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with dist/proxyClient.js and the MCP tool schema for evolver_asset_publish, then inspect the mentioned submitAssetBundle helper and the bundled schemas/capsule.schema.json and schemas/gene.schema.json. Trace how the publish receipt is formed and how mailbox failures are represented. Done means a hub-compliant Gene and Capsule can be submitted through MCP, the local schemas accept the hub-required fields, and the receipt does not report a failed publish as successfully queued or stored.
Written by the indexing model from the issue text.
Description
Summary
The MCP publish path (evolver_asset_publish) cannot succeed for any hub-compliant bundle, and it reports success while the asset never reaches the hub. Two independent defects combine, and the receipt hides both.
All three findings below were reproduced on 2026-10-11 against evomap.ai with a single asset submit.
Environment
@evomap/evolver2.0.42 (global npm install, Windows 11 x64)@evomap/evolver-mcp(bundled) ->dist/proxyClient.js@evomap/gep-sdk1.14.0 ->schemas/capsule.schema.json,schemas/gene.schema.json- proxy: running,
hub_auth_status: ok, nodenode_cd8a0948549519f6,hub_mode: public
Defect 1: the MCP tool is structurally limited to one asset, but the hub requires a pair
The tool schema accepts exactly one asset object:
{ "type": "object", "required": ["asset"], "properties": { "asset": { "type": "object" } } }
proxyClient.js then hardcodes the single-asset body (line ~174):
submitAsset(asset) {
// MCP publishing remains durable and outage-tolerant; the bare route is reserved for V1 synchronous callers.
return this.call('POST', '/asset/submit?mode=async', this.modeBoundBody({
assets: [asset],
request_id: randomUUID(),
}));
}
The hub's publish contract (GET /a2a/skill?topic=publish) requires payload.assets to contain a Gene and a Capsule, so every MCP submit is a 400 invalid_request. The same file already has a submitAssetBundle(bundle) helper that posts to /asset/submit, but it is not exposed through MCP.
Defect 2: capsule.schema.json forbids the field the hub requires
@evomap/gep-sdk 1.14.0 schemas/capsule.schema.json:
"required": ["type", "schema_version", "id", "trigger", "gene", "summary",
"confidence", "blast_radius", "outcome", "asset_id"],
"additionalProperties": false
There is no validation property at all, and additionalProperties: false rejects it. schemaGate.js therefore reports Capsule: 多余字段(additionalProperties:false 会 reject): validation for a hub-compliant Capsule.
The hub spec (GET /a2a/skill?topic=structure) says the opposite:
| validation | Yes | Array of validation commands -- same sandbox rules as Gene.validation: node/npm/npx only, min 1 command, each min 10 chars, self-contained |
Because both sides set additionalProperties: false, no single Capsule can satisfy the local wire schema and the hub spec at the same time. The same divergence exists on the Gene side, where gene.schema.json additionally requires id, constraints, schema_version and validation, none of which the hub lists as required (schema_version is explicitly "No", validation "Recommended").
A side effect: evolver_gep_build returns wire_valid: false with Gene: 缺 required 字段: constraints / 缺 required 字段: asset_id even for input that it just built an asset_id for, because the gate validates the pre-build input.
Defect 3: the receipt is false green
Submitting one valid Gene through the MCP tool returns:
{ "status": "pending", "publish_status": "pending", "queued": true, "stored": true }
The proxy's own mailbox (~/.evolver/proxy/mailbox.db, WAL mode) records:
type: asset_submit | status: failed | attempts: 1 | dlq: 1
lastError: publish invalid_request: hub 400
and evolver_asset_fetch for that asset_id returns null. At the time of writing the mailbox holds 5 messages, all status: failed, all with the same hub 400. Note that the rows live in the -wal file, so a plain copy of mailbox.db alone shows an empty messages table.
There is no signal in the receipt that lets a caller distinguish "queued for real" from "will fail forever".
Reproduction
npm i -g @evomap/evolver
# start the proxy, then from any MCP client:
evolver_gep_build({ asset: <a valid Gene with validation commands> })
evolver_asset_publish({ asset: <that Gene> }) # -> pending / queued: true / stored: true
# then:
sqlite3 ~/.evolver/proxy/mailbox.db "SELECT status, dlq, lastError FROM messages;"
evolver_asset_fetch({ asset_id: <the id> }) # -> null
The hub itself accepts the bundle
To confirm this is client-side, the same content published directly works:
POST https://evomap.ai/a2a/publish
Authorization: Bearer <node-scoped secret from the proxy's mailbox kv>
Idempotency-Key: <uuid>
{ "protocol": "gep-a2a", "protocol_version": "1.0.0", "message_type": "publish",
"message_id": "...", "sender_id": "node_...", "timestamp": "...",
"payload": { "assets": [Gene, Capsule, EvolutionEvent] } }
Response: 200, decision: accept, reason: auto_promoted, bundle_id: bundle_21f098ad2cecb001. The Gene (sha256:7710499dc7da20f2...) is readable through GET /a2a/fetch with status: promoted, gdi_score: 37.8, source_node_id matching the node. Note that a user-level ek_ API key is rejected on this endpoint with auth_scope_mismatch; only the node-scoped secret works.
Suggested fixes
- Expose the pair through MCP, for example
evolver_asset_publish_bundle({ assets: [...] }), or letevolver_asset_publishacceptassetsas an array while keepingassetfor the single case. - Add
validationtocapsule.schema.json(required, min 1 command, node/npm/npx) and drop the Gene fields the hub does not define, so the local wire schema and the hub spec are compatible instead of mutually exclusive. Better, generate the local schemas from the same source the hub serves at/a2a/skill?topic=structure. - Stop reporting
queued: true / stored: truebefore the hub accepts. Either return the hub's decision, or expose the queue state so a caller can tell a real queue entry from a permanent failure, and surfacedlq/lastErrorinstead ofstored: true.
Scope note
This is reported against EvoMap/evolver because proxyClient.js, the MCP tool surface and the bundled @evomap/gep-sdk schemas all ship here. Related but distinct: #620 (publish returns success but assets never become visible) and #621 (moved to evolver-codex-plugin).
- Dominant language
- JavaScript
- Stars
- 9.1k
- Forks
- 848
- Avg merge
- 14h 39m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EvoMap/evolver
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Windows] fdatasyncSync on read-only fd throws EPERM, blocks node credential snapshot (canonicalIdentityLock.js)Possibly taken @scui73414-bot claimed this 64 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Similar issues
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Possibly taken @goranai claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
NL-BioImaging/OMERO.biomero#92 ·
Maintainers usually reply within 1 day
-
bug: juros do parcelamento travados em 1x no gateway Rede Débito e Crédito 3DS (woo-rede 5.6.0)Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
LinkNacional/woo-rede#367 ·
-
Docs: 1 broken linkOpen
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
bug Next.js
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
getsentry/sentry-wizard#1397 · 1 comment ·
Maintainers usually reply within 1 day