Version Packages - #31
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
June 23, 2026 14:41
0bb189c to
b54b131
Compare
5 tasks
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@iqai/defillama-mcp@1.0.7
Patch Changes
#26
f9dc3a8Thanks @Aliiiu! - Fix the upstream defect where everyexampleCallin the endpoint catalog hard-coded a protocol slug, chain name, stablecoin id, pool UUID, or token address — values the model would copy verbatim fromsearch_docsoutput and pass to the endpoint, often hitting null responses. The reported case wasdefillama.fees.getFeesSummary({ protocol: 'uniswap' })failing because the fees catalog has no unversioneduniswapslug (onlyuniswap-v2,uniswap-v3,uniswap-labs, etc.).Every
exampleCallinsrc/mcp/catalog/tool-metadata.tsnow demonstrates the discovery flow before the call:getProtocol,getDexSummary,getFeesSummary,getOptionsSummary):const slug = await defillama.resolveProtocol(name); await defillama.<...>({ protocol: slug })getHistoricalChainTvl,getDexsOverview,getFeesOverview,getOptionsOverview):const {name} = await defillama.resolveChain(input); await defillama.<...>({ chain: name })getBlockAtTimestamp, allprice.*):const {slug} = await defillama.resolveChain(input); ...getLatestPools()firstcoinsparameter: built as`${slug}:${tokenAddress}`from the resolved chain slug plus a caller-supplied address (no DefiLlama-side address discovery exists, so the description documents the user/wallet/explorer source)Parameter
.describe()strings updated in parallel: dropped the "(e.g. 'lido', 'uniswap', 'aave-v3')" format-by-example pattern and replaced it with explicit pointers todefillama.resolveProtocol(name)/defillama.resolveChain(input)/defillama.resolveStablecoin(symbol)and the relevant enumerate-via-get*Overviewfallback. Each description now says explicitly: "never construct it by transforming a display name."Cookbook recipes touched for the same hazard:
instructions.md— "Price coin format" section now shows the template-string form with a resolver-first code block; drops the literal WETH address.02-dex-volume-leaderboard.md,05-token-price-history.md,06-block-at-timestamp-tvl.md— take achainInput(andtokenAddresswhere relevant) parameter on therunfunction instead of hard-coding"Ethereum"and a USDT address.08-resolve-names.md— resolver demonstrations now take{ chainInput, protocolInput, stablecoinInput }parameters.09-find-protocol-slug.md— resolver call takesprotocolInput; the "Once you have the canonical slug" follow-up bullets now show endpoint calls using theslugvariable instead of literal"aave-v3"/"uniswap-v3"/"lyra"; also adds a note that fees / DEX / options each have a distinct slug namespace (which is why an unversioned guess against the fees catalog fails).Equivalent class of bug to debank-mcp issue #89. The regenerated
embedded-index.tsandinstructions.generated.tsship the new examples to the agent surface.