boscli_module_list
List all BOS modules with their enabled or disabled status to manage module availability.
Instructions
List all BOS modules with their enabled/disabled status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/module.ts:4-10 (registration)The tool 'boscli_module_list' is defined and exported in the moduleTools array along with other module tools. It is registered as an McpTool with name, description, schema (empty object), and handler.
export const moduleTools: McpTool[] = [ { name: 'boscli_module_list', description: 'List all BOS modules with their enabled/disabled status', schema: {}, handler: async (_, client) => client.get('/boscli/modules'), }, - src/tools/module.ts:5-9 (handler)The handler function that executes the tool logic: it makes a GET request to '/boscli/modules' using the BosApiClient client.
{ name: 'boscli_module_list', description: 'List all BOS modules with their enabled/disabled status', schema: {}, handler: async (_, client) => client.get('/boscli/modules'), - src/tools/module.ts:8-8 (schema)The input schema is an empty object (no parameters required) for boscli_module_list.
schema: {}, - src/index.ts:55-76 (registration)The tool is registered with the MCP server via a loop that calls server.tool() with the tool's name, description, Zod schema, and a wrapper handler.
for (const tool of allTools) { const zodSchema = toZodSchema(tool.schema); server.tool( tool.name, tool.description, zodSchema.shape, async (args: any) => { try { const result = await tool.handler(args, client); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }], }; } catch (error: any) { return { content: [{ type: 'text' as const, text: JSON.stringify({ error: error.message || 'Unknown error' }) }], isError: true, }; } } ); }