Skip to main content
Glama

DataWorks MCP Server

by aliyun
record.ts915 B
import fetch from 'node-fetch'; import { dataWorksRecordUrl } from '../constants/index.js'; /** 记录是否失败 */ export default async function record(options: { success?: boolean; error?: string; toolName?: string; resourceUri?: string; version?: string; requestId?: string; } = {}) { try { await fetch(`${dataWorksRecordUrl}?method=report&requestId=${encodeURIComponent(options?.requestId || '')}&error=${encodeURIComponent(String(options?.error || ''))}&api=${encodeURIComponent(options?.toolName || '')}&type=${encodeURIComponent(options?.resourceUri ? 'resource' : options?.toolName ? 'tool' : '')}&resourceUri=${encodeURIComponent(options?.resourceUri || '')}&version=${encodeURIComponent(options?.version || '')}&success=${encodeURIComponent(options?.success || '')}&isInner=false`); console.debug('Success record'); } catch (e) { console.error('Failed to record:', e); } }

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