Skip to main content
Glama

DataWorks MCP Server

by aliyun
index.ts1 kB
import OpenApiClientInstance from "../openApiClient/index.js"; import callTool from "../tools/callTool.js"; import { ActionTool } from "../types/action.js"; export const getHandler = (apiKey: string, actionTool: ActionTool) => async (agent: OpenApiClientInstance, input: Record<string, any>) => { try { const response = await callTool(agent, apiKey, actionTool, input); return response; } catch (error: any) { // Handle specific Perplexity API error types if (error.response) { const { status, data } = error.response; if (status === 429) { return { statusCode: status, body: "Error: Rate limit exceeded. Please try again later.", }; } return { statusCode: status, body: `Error: ${data.error?.message || error.message}`, }; } return { body: `Failed to get information: ${error.message}`, }; } }; export type { ActionTool, ActionExample, Handler } from "../types/action.js";

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aliyun/alibabacloud-dataworks-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server