import type { Tool } from '@modelcontextprotocol/sdk/types.js'; import { GET, POST } from './request.js'; export const getTools = (key: string) => GET('/support/mcp/server/toolList', { key }); export const callTool = (data: { key: string; toolName: string; inputs: Record }) => POST('/support/mcp/server/toolCall', data);