get_transport_info
Check transport info and lock status for an ABAP object. Provide the object URI and development class to retrieve available transports and lock details.
Instructions
Check transport info for an ABAP object. Returns available transports and lock status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | Object URI (e.g. /sap/bc/adt/programs/programs/ztest) | |
| devclass | Yes | Development class/package (e.g. ZPACKAGE) | |
| operation | No | Operation (default: I_CTS_OBJECT_CHECK) | |
| system_id | No | SAP system ID (e.g. DEV). Omit to use default system. |
Implementation Reference
- src/adt-client.ts:121-138 (handler)The actual implementation of getTransportInfo — the method on AdtClient that constructs an XML payload with OPERATION, DEVCLASS, and URI, then POSTs to /sap/bc/adt/cts/transportchecks to check transport info for an ABAP object.
async getTransportInfo(uri: string, devclass: string, operation = "I_CTS_OBJECT_CHECK"): Promise<string> { const xml = `<?xml version="1.0" encoding="UTF-8"?> <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> <asx:values> <DATA> <OPERATION>${this.escapeXml(operation)}</OPERATION> <DEVCLASS>${this.escapeXml(devclass)}</DEVCLASS> <URI>${this.escapeXml(uri)}</URI> </DATA> </asx:values> </asx:abap>`; return (await this.postWithCsrf( "/sap/bc/adt/cts/transportchecks", xml, "*/*", "application/vnd.sap.as+xml; charset=UTF-8; dataname=com.sap.adt.transport.service.checkData" )).data as string; } - src/mcp-server.ts:1100-1104 (handler)The tool handler in the CallToolRequestSchema switch case that parses args with TransportInfoSchema and calls client.getTransportInfo(uri, devclass, operation).
case "get_transport_info": { const { uri, devclass, operation } = TransportInfoSchema.parse(args); const result = await client.getTransportInfo(uri, devclass, operation); return { content: [{ type: "text", text: result }] }; } - src/mcp-server.ts:65-69 (schema)The TransportInfoSchema Zod schema defining input validation for get_transport_info (uri, devclass, optional operation).
const TransportInfoSchema = z.object({ uri: z.string(), devclass: z.string(), operation: z.string().optional(), }); - src/mcp-server.ts:447-460 (registration)Registration of the get_transport_info tool in the ListToolsRequestSchema handler, with description and input schema.
{ name: "get_transport_info", description: "Check transport info for an ABAP object. Returns available transports and lock status.", inputSchema: { type: "object" as const, properties: { uri: { type: "string", description: "Object URI (e.g. /sap/bc/adt/programs/programs/ztest)" }, devclass: { type: "string", description: "Development class/package (e.g. ZPACKAGE)" }, operation: { type: "string", description: "Operation (default: I_CTS_OBJECT_CHECK)" }, ...SYSTEM_ID_PROP, }, required: ["uri", "devclass"], }, },