We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mario-andreschak/mcp-abap-adt'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { McpError, ErrorCode, AxiosResponse } from '../lib/utils';
import { makeAdtRequest, return_error, return_response, getBaseUrl } from '../lib/utils';
export async function handleGetTable(args: any) {
try {
if (!args?.table_name) {
throw new McpError(ErrorCode.InvalidParams, 'Table name is required');
}
const encodedTableName = encodeURIComponent(args.table_name);
const url = `${await getBaseUrl()}/sap/bc/adt/ddic/tables/${encodedTableName}/source/main`;
const response = await makeAdtRequest(url, 'GET', 30000);
return return_response(response);
} catch (error) {
return return_error(error);
}
}