get_include
Fetch ABAP include source code from SAP systems. Provide the include name and optionally the system ID to retrieve the source code directly.
Instructions
Fetch ABAP include source code from SAP system
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Include name (e.g. LSVATF01) | |
| system_id | No | SAP system ID (e.g. DEV). Omit to use default system. |
Implementation Reference
- src/mcp-server.ts:380-387 (registration)The 'get_include' tool is registered in the ListToolsRequestSchema handler with its name, description, and input schema (requires a 'name' string property and optional system_id).
name: "get_include", description: "Fetch ABAP include source code from SAP system", inputSchema: { type: "object" as const, properties: { name: { type: "string", description: "Include name (e.g. LSVATF01)" }, ...SYSTEM_ID_PROP }, required: ["name"], }, }, - src/mcp-server.ts:382-386 (schema)Input schema for get_include: expects { name: string } as required, with optional system_id property from SYSTEM_ID_PROP.
inputSchema: { type: "object" as const, properties: { name: { type: "string", description: "Include name (e.g. LSVATF01)" }, ...SYSTEM_ID_PROP }, required: ["name"], }, - src/mcp-server.ts:1047-1053 (handler)The handler for 'get_include' tool: parses args with NameSchema, calls client.getSource() with the URI path /sap/bc/adt/programs/includes/{name}/source/main to fetch the ABAP include source code.
case "get_include": { const { name: inclName } = NameSchema.parse(args); const source = await client.getSource( `/sap/bc/adt/programs/includes/${encodeURIComponent(inclName.toUpperCase())}/source/main` ); return { content: [{ type: "text", text: source }] }; }