Skip to main content
Glama
handleGetStructure.ts716 B
import { McpError, ErrorCode, AxiosResponse } from '../lib/utils'; import { makeAdtRequest, return_error, return_response, getBaseUrl } from '../lib/utils'; export async function handleGetStructure(args: any) { try { if (!args?.structure_name) { throw new McpError(ErrorCode.InvalidParams, 'Structure name is required'); } const encodedStructureName = encodeURIComponent(args.structure_name); const url = `${await getBaseUrl()}/sap/bc/adt/ddic/structures/${encodedStructureName}/source/main`; const response = await makeAdtRequest(url, 'GET', 30000); return return_response(response); } catch (error) { return return_error(error); } }

Latest Blog Posts

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/mario-andreschak/mcp-abap-adt'

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