list_systems
Retrieve a list of all configured SAP systems with their IDs, hostnames, and client numbers to view available connections for development tasks.
Instructions
List all configured SAP systems with their IDs, hostnames, and client numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-server.ts:182-190 (registration)The 'list_systems' tool is registered as part of the tool definitions returned by ListToolsRequestSchema handler. It has no required input parameters and is described as listing all configured SAP systems.
{ name: "list_systems", description: "List all configured SAP systems with their IDs, hostnames, and client numbers.", inputSchema: { type: "object" as const, properties: {}, required: [], }, }, - src/mcp-server.ts:975-980 (handler)The handler for 'list_systems' tool call. It calls pool.getSystems(), formats the output as lines showing id: hostname (client, auth) with [default] marker, and returns as text content.
if (name === "list_systems") { const systemList = pool.getSystems() .map((s) => `${s.id}: ${s.hostname} (client ${s.client}, auth: ${s.authType})${s.isDefault ? " [default]" : ""}`) .join("\n"); return { content: [{ type: "text", text: systemList }] }; } - src/client-pool.ts:56-64 (helper)The getSystems() method on ClientPool returns an array of system objects (id, hostname, client, authType, isDefault) from the stored systems configuration.
getSystems(): { id: string; hostname: string; client: string; authType: string; isDefault: boolean }[] { return this.systems.map(({ id, hostname, client, authType }) => ({ id, hostname, client, authType: authType ?? "basic", isDefault: id === this.defaultId, })); }