boscli_system_info
Get BOS system information including version, PHP, Laravel, and environment details.
Instructions
Get BOS system information - version, PHP, Laravel, environment
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/system.ts:5-10 (handler)The handler for boscli_system_info - makes a GET request to /boscli/system/info endpoint via BosApiClient
{ name: 'boscli_system_info', description: 'Get BOS system information - version, PHP, Laravel, environment', schema: {}, handler: async (_, client) => client.get('/boscli/system/info'), }, - src/tools/system.ts:8-9 (schema)Empty schema (no input parameters) for boscli_system_info
schema: {}, handler: async (_, client) => client.get('/boscli/system/info'), - src/index.ts:54-76 (registration)Registration loop in index.ts - all tools (including boscli_system_info) are registered with the MCP server via server.tool()
// Register all tools with proper Zod schemas 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, }; } } ); } - src/http.ts:55-77 (registration)Registration loop in HTTP server (src/http.ts) - all tools including boscli_system_info registered with the MCP server via server.tool()
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, }; } } ); } return server; } - src/client/index.ts:90-92 (helper)BosApiClient.get() helper - the method called by the boscli_system_info handler to perform the GET request
async get<T>(path: string, params?: Record<string, any>): Promise<T> { return this.request<T>('GET', path, undefined, params); }