-
Notifications
You must be signed in to change notification settings - Fork 0
fix: mcp output structure #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| return result; | ||
| return { | ||
| status: 'success', | ||
| data: result, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this returns a toolResult wrapped inside another toolResult
Same behavior exists in withdrawService.ts
| params: WithdrawParams, | ||
| env: onchainWrite | ||
| ): Promise<WithdrawResult> { | ||
| async withdrawEarnTransaction(params: WithdrawParams, env: onchainWrite) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a return type Promise<toolResult>
| } from '../../lib/types/index.js'; | ||
| import { apiGet } from '../../lib/utils/api.js'; | ||
| import { GetUserAccountInfoSchema } from '../../schemas/index.js'; | ||
| import { toolResult } from '@kasarlabs/ask-starknet-core'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead import the same dead import also exists in packages/mcps/extended/src/tools/read/
| import { ERC20_ABI } from '../lib/abis/erc20Abi.js'; | ||
| import { Router } from 'fibrous-router-sdk'; | ||
| import { BigNumber } from '@ethersproject/bignumber'; | ||
| import { toolResult } from '@kasarlabs/ask-starknet-core'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead import the same dead import also exists in packages/mcps/fibrous/src/tools/fetchRoute.ts & packages/mcps/fibrous/src/tools/fetchTokens.ts
No description provided.