@b3os/cli 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/README.md +87 -7
  2. package/assets/b3os-run.py +137 -0
  3. package/assets/skill/b3os/SKILL.md +111 -0
  4. package/dist/commands/_agents.d.ts +14 -0
  5. package/dist/commands/_agents.js +33 -0
  6. package/dist/commands/_agents.js.map +1 -0
  7. package/dist/commands/_common.js +6 -2
  8. package/dist/commands/_common.js.map +1 -1
  9. package/dist/commands/_context.d.ts +49 -0
  10. package/dist/commands/_context.js +260 -0
  11. package/dist/commands/_context.js.map +1 -0
  12. package/dist/commands/_next.d.ts +39 -0
  13. package/dist/commands/_next.js +77 -0
  14. package/dist/commands/_next.js.map +1 -0
  15. package/dist/commands/agent.d.ts +42 -0
  16. package/dist/commands/agent.js +218 -0
  17. package/dist/commands/agent.js.map +1 -0
  18. package/dist/commands/app.d.ts +2 -0
  19. package/dist/commands/app.js +559 -54
  20. package/dist/commands/app.js.map +1 -1
  21. package/dist/commands/auth.d.ts +88 -2
  22. package/dist/commands/auth.js +354 -44
  23. package/dist/commands/auth.js.map +1 -1
  24. package/dist/commands/docs.d.ts +54 -0
  25. package/dist/commands/docs.js +202 -0
  26. package/dist/commands/docs.js.map +1 -0
  27. package/dist/commands/doctor.d.ts +23 -0
  28. package/dist/commands/doctor.js +313 -0
  29. package/dist/commands/doctor.js.map +1 -0
  30. package/dist/commands/init.d.ts +38 -1
  31. package/dist/commands/init.js +259 -60
  32. package/dist/commands/init.js.map +1 -1
  33. package/dist/commands/listen.d.ts +30 -0
  34. package/dist/commands/listen.js +194 -0
  35. package/dist/commands/listen.js.map +1 -0
  36. package/dist/commands/manifest.d.ts +13 -1
  37. package/dist/commands/manifest.js +81 -18
  38. package/dist/commands/manifest.js.map +1 -1
  39. package/dist/commands/mcp.d.ts +25 -2
  40. package/dist/commands/mcp.js +120 -11
  41. package/dist/commands/mcp.js.map +1 -1
  42. package/dist/commands/sandbox.d.ts +35 -6
  43. package/dist/commands/sandbox.js +208 -9
  44. package/dist/commands/sandbox.js.map +1 -1
  45. package/dist/commands/setup.d.ts +39 -0
  46. package/dist/commands/setup.js +203 -0
  47. package/dist/commands/setup.js.map +1 -0
  48. package/dist/commands/tool.d.ts +154 -0
  49. package/dist/commands/tool.js +785 -0
  50. package/dist/commands/tool.js.map +1 -0
  51. package/dist/config.d.ts +30 -6
  52. package/dist/config.js +39 -8
  53. package/dist/config.js.map +1 -1
  54. package/dist/ctx.d.ts +5 -45
  55. package/dist/ctx.js +25 -160
  56. package/dist/ctx.js.map +1 -1
  57. package/dist/docs/index.json +1 -0
  58. package/dist/docs/pages/actions/call.md +300 -0
  59. package/dist/docs/pages/actions/catalog/airtable.md +737 -0
  60. package/dist/docs/pages/actions/catalog/arxiv.md +166 -0
  61. package/dist/docs/pages/actions/catalog/chainalysis-sanctions.md +125 -0
  62. package/dist/docs/pages/actions/catalog/coingecko.md +1558 -0
  63. package/dist/docs/pages/actions/catalog/deps-dev.md +465 -0
  64. package/dist/docs/pages/actions/catalog/dexscreener.md +568 -0
  65. package/dist/docs/pages/actions/catalog/discord.md +784 -0
  66. package/dist/docs/pages/actions/catalog/finnhub.md +776 -0
  67. package/dist/docs/pages/actions/catalog/frankfurter.md +438 -0
  68. package/dist/docs/pages/actions/catalog/github.md +1853 -0
  69. package/dist/docs/pages/actions/catalog/gmail.md +575 -0
  70. package/dist/docs/pages/actions/catalog/google-calendar.md +654 -0
  71. package/dist/docs/pages/actions/catalog/google-drive.md +502 -0
  72. package/dist/docs/pages/actions/catalog/google-sheets.md +700 -0
  73. package/dist/docs/pages/actions/catalog/hacker-news.md +542 -0
  74. package/dist/docs/pages/actions/catalog/http.md +824 -0
  75. package/dist/docs/pages/actions/catalog/hyperliquid.md +942 -0
  76. package/dist/docs/pages/actions/catalog/jira.md +920 -0
  77. package/dist/docs/pages/actions/catalog/kalshi.md +917 -0
  78. package/dist/docs/pages/actions/catalog/linear.md +1030 -0
  79. package/dist/docs/pages/actions/catalog/markets.md +21 -0
  80. package/dist/docs/pages/actions/catalog/morpho.md +247 -0
  81. package/dist/docs/pages/actions/catalog/notion.md +1077 -0
  82. package/dist/docs/pages/actions/catalog/nws.md +485 -0
  83. package/dist/docs/pages/actions/catalog/open-meteo.md +559 -0
  84. package/dist/docs/pages/actions/catalog/polymarket.md +1523 -0
  85. package/dist/docs/pages/actions/catalog/pushbullet.md +220 -0
  86. package/dist/docs/pages/actions/catalog/resend.md +307 -0
  87. package/dist/docs/pages/actions/catalog/s3.md +513 -0
  88. package/dist/docs/pages/actions/catalog/sec-edgar.md +487 -0
  89. package/dist/docs/pages/actions/catalog/slack.md +2629 -0
  90. package/dist/docs/pages/actions/catalog/stripe.md +1405 -0
  91. package/dist/docs/pages/actions/catalog/wikipedia.md +379 -0
  92. package/dist/docs/pages/actions/catalog.md +46 -0
  93. package/dist/docs/pages/actions/limits.md +50 -0
  94. package/dist/docs/pages/actions/model-tools.md +225 -0
  95. package/dist/docs/pages/actions/packs.md +148 -0
  96. package/dist/docs/pages/actions/settings.md +69 -0
  97. package/dist/docs/pages/actions/tools.md +244 -0
  98. package/dist/docs/pages/actions/triggers.md +149 -0
  99. package/dist/docs/pages/actions.md +88 -0
  100. package/dist/docs/pages/compat/anthropic.md +168 -0
  101. package/dist/docs/pages/compat/e2b.md +194 -0
  102. package/dist/docs/pages/compat/firecrawl.md +138 -0
  103. package/dist/docs/pages/compat/openai.md +168 -0
  104. package/dist/docs/pages/concepts/auth.md +151 -0
  105. package/dist/docs/pages/concepts/beta.md +55 -0
  106. package/dist/docs/pages/concepts/glossary.md +71 -0
  107. package/dist/docs/pages/concepts/ids.md +98 -0
  108. package/dist/docs/pages/concepts/jobs.md +229 -0
  109. package/dist/docs/pages/concepts/latency.md +138 -0
  110. package/dist/docs/pages/concepts/limits.md +191 -0
  111. package/dist/docs/pages/concepts/stack.md +59 -0
  112. package/dist/docs/pages/concepts/timing.md +86 -0
  113. package/dist/docs/pages/concepts/usage.md +110 -0
  114. package/dist/docs/pages/design/b3os-yaml.md +370 -0
  115. package/dist/docs/pages/design/deploy-from-github.md +122 -0
  116. package/dist/docs/pages/design/observability.md +134 -0
  117. package/dist/docs/pages/errors.md +1824 -0
  118. package/dist/docs/pages/infer/chat.md +570 -0
  119. package/dist/docs/pages/infer/limits.md +55 -0
  120. package/dist/docs/pages/infer/messages.md +185 -0
  121. package/dist/docs/pages/infer/responses.md +173 -0
  122. package/dist/docs/pages/infer/settings.md +154 -0
  123. package/dist/docs/pages/infer/speech.md +323 -0
  124. package/dist/docs/pages/infer.md +154 -0
  125. package/dist/docs/pages/introduction.md +162 -0
  126. package/dist/docs/pages/platform/addresses.md +174 -0
  127. package/dist/docs/pages/platform/call-log.md +99 -0
  128. package/dist/docs/pages/platform/custom-domains.md +104 -0
  129. package/dist/docs/pages/platform/keys.md +79 -0
  130. package/dist/docs/pages/platform/limits.md +57 -0
  131. package/dist/docs/pages/platform/members.md +101 -0
  132. package/dist/docs/pages/platform/requests.md +116 -0
  133. package/dist/docs/pages/platform/settings.md +129 -0
  134. package/dist/docs/pages/platform/webhooks.md +68 -0
  135. package/dist/docs/pages/platform.md +67 -0
  136. package/dist/docs/pages/quickstart/mcp.md +94 -0
  137. package/dist/docs/pages/quickstart/sandbox-agent.md +205 -0
  138. package/dist/docs/pages/quickstart/scrape.md +134 -0
  139. package/dist/docs/pages/quickstart.md +45 -0
  140. package/dist/docs/pages/render/inspections.md +162 -0
  141. package/dist/docs/pages/render/limits.md +72 -0
  142. package/dist/docs/pages/render/screenshots.md +179 -0
  143. package/dist/docs/pages/render/settings.md +431 -0
  144. package/dist/docs/pages/render/styles.md +342 -0
  145. package/dist/docs/pages/render/videos.md +272 -0
  146. package/dist/docs/pages/render.md +118 -0
  147. package/dist/docs/pages/routines/callables.md +174 -0
  148. package/dist/docs/pages/routines/definitions.md +361 -0
  149. package/dist/docs/pages/routines/limits.md +117 -0
  150. package/dist/docs/pages/routines/runs.md +328 -0
  151. package/dist/docs/pages/routines/settings.md +104 -0
  152. package/dist/docs/pages/routines/triggers.md +339 -0
  153. package/dist/docs/pages/routines.md +216 -0
  154. package/dist/docs/pages/sandboxes/agents.md +217 -0
  155. package/dist/docs/pages/sandboxes/commands.md +272 -0
  156. package/dist/docs/pages/sandboxes/images.md +166 -0
  157. package/dist/docs/pages/sandboxes/limits.md +143 -0
  158. package/dist/docs/pages/sandboxes/ports.md +260 -0
  159. package/dist/docs/pages/sandboxes/settings.md +358 -0
  160. package/dist/docs/pages/sandboxes/snapshots.md +423 -0
  161. package/dist/docs/pages/sandboxes/swarms.md +146 -0
  162. package/dist/docs/pages/sandboxes/volumes.md +131 -0
  163. package/dist/docs/pages/sandboxes.md +231 -0
  164. package/dist/docs/pages/sdks/cli.md +121 -0
  165. package/dist/docs/pages/sdks/mcp.md +169 -0
  166. package/dist/docs/pages/sdks/python.md +146 -0
  167. package/dist/docs/pages/sdks/typescript.md +202 -0
  168. package/dist/docs/pages/sdks.md +282 -0
  169. package/dist/docs/pages/settings.md +33 -0
  170. package/dist/docs/pages/vault/limits.md +46 -0
  171. package/dist/docs/pages/vault.md +133 -0
  172. package/dist/docs/pages/vision/agent-browser.md +115 -0
  173. package/dist/docs/pages/vision/crawl.md +333 -0
  174. package/dist/docs/pages/vision/extract.md +152 -0
  175. package/dist/docs/pages/vision/fetcher.md +15 -0
  176. package/dist/docs/pages/vision/limits.md +79 -0
  177. package/dist/docs/pages/vision/profiles.md +111 -0
  178. package/dist/docs/pages/vision/proxy.md +131 -0
  179. package/dist/docs/pages/vision/scrape.md +356 -0
  180. package/dist/docs/pages/vision/sessions.md +311 -0
  181. package/dist/docs/pages/vision/settings.md +656 -0
  182. package/dist/docs/pages/vision.md +175 -0
  183. package/dist/errors.d.ts +129 -0
  184. package/dist/errors.js +326 -0
  185. package/dist/errors.js.map +1 -0
  186. package/dist/main.d.ts +1 -1
  187. package/dist/main.js +26 -13
  188. package/dist/main.js.map +1 -1
  189. package/dist/manifest/apply.d.ts +4 -0
  190. package/dist/manifest/apply.js +2 -0
  191. package/dist/manifest/apply.js.map +1 -1
  192. package/dist/manifest/domains.d.ts +50 -0
  193. package/dist/manifest/domains.js +159 -0
  194. package/dist/manifest/domains.js.map +1 -0
  195. package/dist/manifest/link.d.ts +20 -0
  196. package/dist/manifest/link.js +24 -0
  197. package/dist/manifest/link.js.map +1 -0
  198. package/dist/manifest/record.d.ts +1 -1
  199. package/dist/tool/archive.d.ts +33 -0
  200. package/dist/tool/archive.js +174 -0
  201. package/dist/tool/archive.js.map +1 -0
  202. package/dist/tool/calls.d.ts +46 -0
  203. package/dist/tool/calls.js +274 -0
  204. package/dist/tool/calls.js.map +1 -0
  205. package/dist/tool/checks.d.ts +21 -0
  206. package/dist/tool/checks.js +145 -0
  207. package/dist/tool/checks.js.map +1 -0
  208. package/dist/tool/elf.d.ts +19 -0
  209. package/dist/tool/elf.js +107 -0
  210. package/dist/tool/elf.js.map +1 -0
  211. package/dist/tool/predict.d.ts +8 -0
  212. package/dist/tool/predict.js +38 -0
  213. package/dist/tool/predict.js.map +1 -0
  214. package/dist/tool/ustar.d.ts +5 -0
  215. package/dist/tool/ustar.js +220 -0
  216. package/dist/tool/ustar.js.map +1 -0
  217. package/package.json +6 -5
@@ -0,0 +1,21 @@
1
+ # Markets
2
+
3
+ > Catalog packs for prediction markets, market data and DeFi, with the sanctions screening pack as the compliance check, generated from the packs' facets.
4
+
5
+ Source: https://docs.beta.b3os.org/actions/catalog/markets.md
6
+
7
+ Packs for prediction markets, prices and DeFi: every catalog pack whose `facets.domain` includes `prediction-markets`, `market-data` or `defi`.
8
+
9
+ | Pack | Facets | Connection | Actions |
10
+ |---|---|---|---|
11
+ | [CoinGecko](https://docs.beta.b3os.org/actions/catalog/coingecko) | `crypto`, `market-data`, `prices` | `coingecko` (api_key) | [`get-token-price`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-token-price), [`get-token-price-by-contract`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-token-price-by-contract), [`get-coin-markets`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-coin-markets), [`get-market-chart`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-market-chart), [`search`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-search), [`get-trending`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-trending), [`get-global-market`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-global-market), [`get-exchanges`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-exchanges), [`get-global-defi`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-global-defi), [`get-derivatives-exchanges`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-derivatives-exchanges), [`get-coin-tickers`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-coin-tickers), [`get-exchange-tickers`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-exchange-tickers), [`get-exchange-volume-chart`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-exchange-volume-chart), [`get-derivatives-exchanges-list`](https://docs.beta.b3os.org/actions/catalog/coingecko#coingecko-get-derivatives-exchanges-list) |
12
+ | [DEX Screener](https://docs.beta.b3os.org/actions/catalog/dexscreener) | `crypto`, `market-data`, `defi` | none | [`get-token-pairs`](https://docs.beta.b3os.org/actions/catalog/dexscreener#dexscreener-get-token-pairs), [`get-pairs-by-address`](https://docs.beta.b3os.org/actions/catalog/dexscreener#dexscreener-get-pairs-by-address), [`search-pairs`](https://docs.beta.b3os.org/actions/catalog/dexscreener#dexscreener-search-pairs), [`get-boosted-tokens`](https://docs.beta.b3os.org/actions/catalog/dexscreener#dexscreener-get-boosted-tokens), [`get-latest-profiles`](https://docs.beta.b3os.org/actions/catalog/dexscreener#dexscreener-get-latest-profiles) |
13
+ | [Finnhub](https://docs.beta.b3os.org/actions/catalog/finnhub) | `finance`, `stocks`, `market-data` | `finnhub` (api_key) | [`get-quote`](https://docs.beta.b3os.org/actions/catalog/finnhub#finnhub-get-quote), [`get-basic-financials`](https://docs.beta.b3os.org/actions/catalog/finnhub#finnhub-get-basic-financials), [`get-company-news`](https://docs.beta.b3os.org/actions/catalog/finnhub#finnhub-get-company-news), [`get-earnings-calendar`](https://docs.beta.b3os.org/actions/catalog/finnhub#finnhub-get-earnings-calendar), [`get-investment-theme`](https://docs.beta.b3os.org/actions/catalog/finnhub#finnhub-get-investment-theme), [`get-market-news`](https://docs.beta.b3os.org/actions/catalog/finnhub#finnhub-get-market-news), [`get-recommendation-trends`](https://docs.beta.b3os.org/actions/catalog/finnhub#finnhub-get-recommendation-trends), [`symbol-search`](https://docs.beta.b3os.org/actions/catalog/finnhub#finnhub-symbol-search) |
14
+ | [Hyperliquid (read-only)](https://docs.beta.b3os.org/actions/catalog/hyperliquid) | `crypto`, `market-data`, `derivatives` | none | [`get-markets`](https://docs.beta.b3os.org/actions/catalog/hyperliquid#hyperliquid-get-markets), [`get-mids`](https://docs.beta.b3os.org/actions/catalog/hyperliquid#hyperliquid-get-mids), [`get-order-book`](https://docs.beta.b3os.org/actions/catalog/hyperliquid#hyperliquid-get-order-book), [`get-candles`](https://docs.beta.b3os.org/actions/catalog/hyperliquid#hyperliquid-get-candles), [`get-funding-rates`](https://docs.beta.b3os.org/actions/catalog/hyperliquid#hyperliquid-get-funding-rates), [`get-funding-history`](https://docs.beta.b3os.org/actions/catalog/hyperliquid#hyperliquid-get-funding-history), [`get-account`](https://docs.beta.b3os.org/actions/catalog/hyperliquid#hyperliquid-get-account), [`get-open-orders`](https://docs.beta.b3os.org/actions/catalog/hyperliquid#hyperliquid-get-open-orders), [`get-fills`](https://docs.beta.b3os.org/actions/catalog/hyperliquid#hyperliquid-get-fills), [`get-transfer-history`](https://docs.beta.b3os.org/actions/catalog/hyperliquid#hyperliquid-get-transfer-history) |
15
+ | [Kalshi (read-only)](https://docs.beta.b3os.org/actions/catalog/kalshi) | `prediction-markets`, `market-data` | none | [`search`](https://docs.beta.b3os.org/actions/catalog/kalshi#kalshi-search), [`list-markets`](https://docs.beta.b3os.org/actions/catalog/kalshi#kalshi-list-markets), [`get-market`](https://docs.beta.b3os.org/actions/catalog/kalshi#kalshi-get-market), [`get-event`](https://docs.beta.b3os.org/actions/catalog/kalshi#kalshi-get-event), [`list-events`](https://docs.beta.b3os.org/actions/catalog/kalshi#kalshi-list-events), [`get-series`](https://docs.beta.b3os.org/actions/catalog/kalshi#kalshi-get-series), [`get-orderbook`](https://docs.beta.b3os.org/actions/catalog/kalshi#kalshi-get-orderbook), [`get-candlesticks`](https://docs.beta.b3os.org/actions/catalog/kalshi#kalshi-get-candlesticks), [`get-trades`](https://docs.beta.b3os.org/actions/catalog/kalshi#kalshi-get-trades) |
16
+ | [Morpho vaults](https://docs.beta.b3os.org/actions/catalog/morpho) | `defi`, `crypto`, `yield` | none | [`get-vault-apy`](https://docs.beta.b3os.org/actions/catalog/morpho#morpho-get-vault-apy), [`get-best-apy`](https://docs.beta.b3os.org/actions/catalog/morpho#morpho-get-best-apy) |
17
+ | [Polymarket (read-only)](https://docs.beta.b3os.org/actions/catalog/polymarket) | `prediction-markets`, `market-data` | none | [`search`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-search), [`list-markets`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-list-markets), [`get-market`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-market), [`get-event`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-event), [`list-events`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-list-events), [`get-price`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-price), [`get-order-book`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-order-book), [`get-price-history`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-price-history), [`get-trades`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-trades), [`get-positions`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-positions), [`get-redeemable-positions`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-redeemable-positions), [`get-top-holders`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-top-holders), [`get-leaderboard`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-leaderboard), [`get-user-activity`](https://docs.beta.b3os.org/actions/catalog/polymarket#polymarket-get-user-activity) |
18
+
19
+ ## Compliance check
20
+
21
+ Before paying or trading with an address, screen it with [Chainalysis sanctions screening](https://docs.beta.b3os.org/actions/catalog/chainalysis-sanctions): [`check-address`](https://docs.beta.b3os.org/actions/catalog/chainalysis-sanctions#chainalysis-sanctions-check-address). Screen a blockchain address against the sanctions lists Chainalysis tracks (OFAC SDN and others) with your own free Chainalysis sanctions API key. Chain-agnostic: EVM, Bitcoin, Solana and other address formats. Returns whether the address is listed, the categories and every listing with its source URL. A clean result means no listing at the time of the call, not a compliance determination.
@@ -0,0 +1,247 @@
1
+ # Morpho vaults
2
+
3
+ > The io.b3os/morpho pack: 2 actions with call snippets, fixture outputs, connection setup and error codes, generated from version 1.0.0.
4
+
5
+ Source: https://docs.beta.b3os.org/actions/catalog/morpho.md
6
+
7
+ <a id="morpho"></a>
8
+
9
+ `io.b3os/morpho` 1.0.0 · `defi`, `crypto`, `yield` · MIT
10
+
11
+ Yields of Morpho (MetaMorpho) lending vaults from Morpho's public API, no key needed: the current gross and net APY, TVL and asset of one vault, and the Morpho-listed vaults with the best net APY for a token on Ethereum, Optimism, Polygon, Base and Arbitrum. Read-only: no deposits, withdrawals or claims.
12
+
13
+ Every call's result carries `upstream_status` and `timing`: `validate_ms`, `inject_ms`, `render_ms`, `upstream_ms`, `map_ms` and `total_ms`. `upstream` is the service's time; the others are B3OS's own ([call actions](https://docs.beta.b3os.org/actions/call)). The snippets below show no timing values, because a fixture records none.
14
+
15
+ ## Connection
16
+
17
+ No credential: a keyless public API. Calls name no connection.
18
+
19
+ Hosts it reaches: `blue-api.morpho.org`.
20
+
21
+ ## Actions
22
+
23
+ | Action | Effect | MCP tool | Title |
24
+ |---|---|---|---|
25
+ | [`get-vault-apy`](https://docs.beta.b3os.org/actions/catalog/morpho#morpho-get-vault-apy) | read | `morpho__get-vault-apy` | Morpho Get Vault APY |
26
+ | [`get-best-apy`](https://docs.beta.b3os.org/actions/catalog/morpho#morpho-get-best-apy) | read | `morpho__get-best-apy` | Morpho Get Best APY |
27
+
28
+ <h3 id="morpho-get-vault-apy"><code>get-vault-apy</code></h3>
29
+
30
+ **Morpho Get Vault APY.** Get the current APY for a specific Morpho vault by its contract address. Returns gross APY, net APY (after fees), TVL, and underlying asset info. Unlike 'Morpho Get Best APY' which discovers the highest-yielding vault for a token, this action looks up a known vault directly — use it when you already know which vault to check (e.g., after a deposit or withdrawal). Supports Ethereum (1), Optimism (10), Polygon (137), Base (8453), Arbitrum (42161). Ideal for: post-deposit APY reporting, vault monitoring, Slack/Telegram notifications with accurate yield data.
31
+
32
+ Ref `io.b3os/morpho/get-vault-apy@1.0.0` · effect `read` · no connection · MCP tool `morpho__get-vault-apy`
33
+
34
+ **curl**
35
+
36
+ ```bash
37
+ curl -s https://beta-api.b3os.org/v1/actions/call \
38
+ -H "Authorization: Bearer $B3OS_API_KEY" \
39
+ -H "Content-Type: application/json" \
40
+ -d '{
41
+ "ref": "io.b3os/morpho/get-vault-apy@1",
42
+ "input": {
43
+ "vaultAddress": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB",
44
+ "chainId": 1
45
+ }
46
+ }'
47
+ ```
48
+ **TypeScript**
49
+
50
+ ```ts
51
+ import { B3OS } from "@b3os/sdk";
52
+
53
+ const b3os = new B3OS();
54
+ const result = await b3os.actions.call({
55
+ ref: "io.b3os/morpho/get-vault-apy@1",
56
+ input: {
57
+ vaultAddress: "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB",
58
+ chainId: 1,
59
+ },
60
+ });
61
+ console.log(result.output);
62
+ ```
63
+ **Python**
64
+
65
+ ```python
66
+ from b3os import B3OS
67
+
68
+ b3os = B3OS()
69
+ result = b3os.actions.call({
70
+ "ref": "io.b3os/morpho/get-vault-apy@1",
71
+ "input": {
72
+ "vaultAddress": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB",
73
+ "chainId": 1,
74
+ },
75
+ })
76
+ print(result["output"])
77
+ ```
78
+ **MCP**
79
+
80
+ ```json
81
+ {
82
+ "method": "tools/call",
83
+ "params": {
84
+ "name": "morpho__get-vault-apy",
85
+ "arguments": {
86
+ "vaultAddress": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB",
87
+ "chainId": 1
88
+ }
89
+ }
90
+ }
91
+ ```
92
+
93
+ Expose the pack as tools with `--packs morpho` on the local server or `?packs=morpho` on the remote URL, and the agent calls `morpho__get-vault-apy` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
94
+
95
+ Output, labeled `fixture`: Morpho Get Vault APY (response recorded 2026-10-26). From the bundle's `fixtures/get-vault-apy.json`, not a live call.
96
+
97
+ ```json
98
+ {
99
+ "vaultAddress": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB",
100
+ "vaultName": "Steakhouse USDC",
101
+ "chainId": 1,
102
+ "chainName": "ethereum",
103
+ "apy": 0.04529931837636922,
104
+ "netApy": 0.04298637199839875,
105
+ "apyPercent": 4.529931837636922,
106
+ "netApyPercent": 4.298637199839875,
107
+ "totalAssets": "63660977431758",
108
+ "totalAssetsUsd": 63643025.68580706,
109
+ "assetAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
110
+ "assetSymbol": "USDC",
111
+ "assetDecimals": 6
112
+ }
113
+ ```
114
+
115
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
116
+
117
+ | `pack_error.code` | Service status | Retryable | Message |
118
+ |---|---|---|---|
119
+ | `not_found` | matched on the response body | no | Morpho has no vault at that address on that chain. |
120
+ | `invalid_request` | matched on the response body | no | built from the service's response |
121
+ | `rate_limited` | 429 | yes | Morpho's API is rate limiting this address; retry shortly. |
122
+
123
+ <h3 id="morpho-get-best-apy"><code>get-best-apy</code></h3>
124
+
125
+ **Morpho Get Best APY.** Get the best vault APY for a token on Morpho Blue protocol. Only returns Morpho-curated vaults (excludes unlisted/test vaults). Requires a token contract address. Omit chainId to search all supported chains at once. Supports minApyPercent and limit filters for targeted vault discovery. Supports Ethereum (1), Optimism (10), Polygon (137), Base (8453), Arbitrum (42161). Ideal for: yield optimization, vault discovery, APY comparison, DeFi strategy selection, cross-chain yield alerts.
126
+
127
+ Ref `io.b3os/morpho/get-best-apy@1.0.0` · effect `read` · no connection · MCP tool `morpho__get-best-apy`
128
+
129
+ **curl**
130
+
131
+ ```bash
132
+ curl -s https://beta-api.b3os.org/v1/actions/call \
133
+ -H "Authorization: Bearer $B3OS_API_KEY" \
134
+ -H "Content-Type: application/json" \
135
+ -d '{
136
+ "ref": "io.b3os/morpho/get-best-apy@1",
137
+ "input": {
138
+ "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
139
+ "chainId": 1,
140
+ "limit": 3
141
+ }
142
+ }'
143
+ ```
144
+ **TypeScript**
145
+
146
+ ```ts
147
+ import { B3OS } from "@b3os/sdk";
148
+
149
+ const b3os = new B3OS();
150
+ const result = await b3os.actions.call({
151
+ ref: "io.b3os/morpho/get-best-apy@1",
152
+ input: {
153
+ tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
154
+ chainId: 1,
155
+ limit: 3,
156
+ },
157
+ });
158
+ console.log(result.output);
159
+ ```
160
+ **Python**
161
+
162
+ ```python
163
+ from b3os import B3OS
164
+
165
+ b3os = B3OS()
166
+ result = b3os.actions.call({
167
+ "ref": "io.b3os/morpho/get-best-apy@1",
168
+ "input": {
169
+ "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
170
+ "chainId": 1,
171
+ "limit": 3,
172
+ },
173
+ })
174
+ print(result["output"])
175
+ ```
176
+ **MCP**
177
+
178
+ ```json
179
+ {
180
+ "method": "tools/call",
181
+ "params": {
182
+ "name": "morpho__get-best-apy",
183
+ "arguments": {
184
+ "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
185
+ "chainId": 1,
186
+ "limit": 3
187
+ }
188
+ }
189
+ }
190
+ ```
191
+
192
+ Expose the pack as tools with `--packs morpho` on the local server or `?packs=morpho` on the remote URL, and the agent calls `morpho__get-best-apy` with the action's input. The tool needs no connection. Without exposing the pack, `actions_call` takes the same input with `ref`.
193
+
194
+ Output, labeled `fixture`: Morpho Get Best APY (response recorded 2026-10-26). From the bundle's `fixtures/get-best-apy.json`, not a live call.
195
+
196
+ ```json
197
+ {
198
+ "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
199
+ "tokenSymbol": "USDC",
200
+ "chainId": 1,
201
+ "bestVault": {
202
+ "address": "0xbeEF346d7099865208Ff331e4f648f4154DDAa05",
203
+ "name": "Waterline Reservoir USDC",
204
+ "state": {
205
+ "apy": 0.08019315771107231,
206
+ "netApy": 0.07603488380906098,
207
+ "totalAssets": "580969291127",
208
+ "totalAssetsUsd": 580805.4637159178
209
+ },
210
+ "chainId": 1,
211
+ "chainName": "ethereum"
212
+ },
213
+ "allVaults": [
214
+ {
215
+ "address": "0xbeEF346d7099865208Ff331e4f648f4154DDAa05",
216
+ "name": "Waterline Reservoir USDC",
217
+ "state": {
218
+ "apy": 0.08019315771107231,
219
+ "netApy": 0.07603488380906098,
220
+ "totalAssets": "580969291127",
221
+ "totalAssetsUsd": 580805.4637159178
222
+ },
223
+ "chainId": 1,
224
+ "chainName": "ethereum"
225
+ },
226
+ {
227
+ "address": "0xF9bdDd4A9b3A45f980e11fDDE96e16364dDBEc49",
228
+ "name": "Yearn OG USDC",
229
+ "state": {
230
+ "apy": 0.06232364521884255,
231
+ "netApy": 0.06457036690612555,
232
+ "totalAssets": "10208638915106",
233
+ "totalAssetsUsd": 10205760.183115035
234
+ },
235
+ "chainId": 1,
236
+ "chainName": "ethereum"
237
+ ```
238
+
239
+ The first 40 of 56 lines; the fixture file has the rest.
240
+
241
+ When the service answers with an error, the call fails with [`upstream_error`](https://docs.beta.b3os.org/errors#upstream_error) and `pack_error.code` is one of:
242
+
243
+ | `pack_error.code` | Service status | Retryable | Message |
244
+ |---|---|---|---|
245
+ | `not_found` | matched on the response body | no | Morpho has no vault at that address on that chain. |
246
+ | `invalid_request` | matched on the response body | no | built from the service's response |
247
+ | `rate_limited` | 429 | yes | Morpho's API is rate limiting this address; retry shortly. |