list_buckets
Retrieve available storage buckets from Huawei OBS, including names, creation dates, and locations, for managing cloud object storage resources.
Instructions
List all storage buckets available in the 'huawei_obs' source. Returns bucket names, creation dates, and locations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:170-178 (handler)The async handler function for the list_buckets tool, which currently returns a placeholder response indicating implementation is pending. Uses closure variables sourceId and storage.endpoint from the registration loop.async () => { // TODO: Implement actual bucket listing with storage provider return createToolSuccessResponse({ message: `Bucket listing from '${sourceId}' not yet implemented`, source_id: sourceId, endpoint: storage.endpoint, note: "Storage provider integration pending", }); }
- src/server.ts:166-179 (registration)Registration of the list_buckets tool using McpServer.tool(), dynamically suffixed per storage source. Includes description, empty Zod input schema, and inline handler.server.tool( `list_buckets${toolSuffix}`, `List all storage buckets available in the '${sourceId}' source. Returns bucket names, creation dates, and locations.`, {}, async () => { // TODO: Implement actual bucket listing with storage provider return createToolSuccessResponse({ message: `Bucket listing from '${sourceId}' not yet implemented`, source_id: sourceId, endpoint: storage.endpoint, note: "Storage provider integration pending", }); } );
- src/types/config.ts:43-48 (schema)TypeScript interface defining ListBucketsToolConfig for configuration of list_buckets tool in TOML files (though built-in tools are hardcoded).* Built-in storage tool configuration for list_buckets */ export interface ListBucketsToolConfig { name: "list_buckets"; source: string; }
- src/types/config.ts:255-261 (helper)Constant array of built-in storage tool names, including "list_buckets", used for validation and checks.export const BUILTIN_STORAGE_TOOLS = [ "list_buckets", "list_objects", "get_object", "get_object_metadata", "search_objects", ] as const;
- src/server.ts:288-288 (registration)Console log confirming successful registration of the list_buckets tool.console.error(` - list_buckets${toolSuffix} registered`);