Lister les APIs du catalogue
api_listList all configured APIs in the MCP SFTP Orchestrator catalogue to monitor API health and manage remote server connections.
Instructions
Affiche toutes les APIs configurées dans le catalogue.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:149-160 (registration)Full registration of the 'api_list' MCP tool, including schema (empty input), description, and handler that delegates to apis.listApis() and formats as JSON response.
server.registerTool( "api_list", { title: "Lister les APIs du catalogue", description: "Affiche toutes les APIs configurées dans le catalogue.", inputSchema: z.object({}) }, async () => { const apiList = await apis.listApis(); return { content: [{ type: "text", text: JSON.stringify(apiList, null, 2) }] }; } ); - apis.js:70-74 (helper)Core implementation of listApis(): ensures APIs are loaded/initialized and returns the apis object containing all configured APIs.
// Lister toutes les APIs async function listApis() { await ensureInitialized(); return apis; }