We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tamago-labs/sui-butler'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { executeSuiCommand } from './executor';
export const publishPackage = async (path: string, gasBudget?: string) => {
const args = ['publish', path];
if (gasBudget) args.push('--gas-budget', gasBudget);
return executeSuiCommand('client', args);
};
export const callMoveFunction = async (
packageId: string,
module: string,
func: string,
typeArgs?: string,
args?: string[],
gasBudget?: string
) => {
const cmdArgs = ['call', '--package', packageId, '--module', module, '--function', func];
if (typeArgs) cmdArgs.push('--type-args', typeArgs);
if (args && args.length > 0) {
cmdArgs.push('--args');
cmdArgs.push(...args);
}
if (gasBudget) cmdArgs.push('--gas-budget', gasBudget);
return executeSuiCommand('client', cmdArgs);
};