Commit c628eaa
feat(mcp): add evolver_report_reuse tool + fetch reuse nudge (#4)
Agents fetch assets via evolver_fetch_asset but have had no way to report
which ones they actually reused, so the reuse-reward attribution loop
never closes for MCP clients -- the network sees the fetch but never the
"I built on this" signal.
Add evolver_report_reuse: the agent declares the asset_ids it genuinely
reused; the bridge forwards them to the Proxy (POST /asset/report-reuse),
which records the reuse against the author on the hub. Nudge it from
evolver_fetch_asset's description and an additive _reuse_hint on the fetch
result (does not alter the returned assets). Declaration model -- the hub
verifies the claim against the node's own prior fetches.
Requires the @evomap/evolver Proxy with the /asset/report-reuse route; on
older Proxy builds the tool degrades gracefully (route returns an error,
nothing breaks). Bridge version 0.1.0 -> 0.2.0.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 66a53b5 commit c628eaa
1 file changed
Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
118 | 140 | | |
119 | 141 | | |
120 | 142 | | |
| |||
0 commit comments