siigo_get_users
Retrieve the users catalog from Siigo accounting software to access and manage user information within the system.
Instructions
Get users catalog
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1091-1094 (handler)MCP tool handler that invokes SiigoClient.getUsers() and returns JSON-formatted response.private async handleGetUsers(args: any) { const result = await this.siigoClient.getUsers(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/index.ts:155-156 (registration)Dispatch registration in the tool switch statement.case 'siigo_get_users': return await this.handleGetUsers(args);
- src/index.ts:697-701 (schema)Tool registration including schema (empty input schema).{ name: 'siigo_get_users', description: 'Get users catalog', inputSchema: { type: 'object', properties: {} }, },
- src/siigo-client.ts:226-228 (helper)SiigoClient method that performs the GET request to /v1/users endpoint.async getUsers(): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', '/v1/users'); }
- src/siigo-client.ts:41-58 (helper)Generic HTTP request helper used by getUsers, handles auth and API calls.private async makeRequest<T>(method: string, endpoint: string, data?: any, params?: any): Promise<SiigoApiResponse<T>> { await this.authenticate(); try { const response: AxiosResponse<SiigoApiResponse<T>> = await this.httpClient.request({ method, url: endpoint, data, params, }); return response.data; } catch (error: any) { if (error.response?.data) { return error.response.data; } throw new Error(`API request failed: ${error.message}`); }