UNPKG

@smartsheet/smar-mcp

Version:

A Model Context Protocol (MCP) server for interacting with the Smartsheet API. This server provides tools for searching, retrieving, and updating Smartsheet sheets through the MCP protocol.

29 lines (28 loc) 613 B
export class SmartsheetUserAPI { api; constructor(api) { this.api = api; } /** * Get user by ID * @param userId ID of the user to get * @returns User data */ async getUserById(userId) { return this.api.request('GET', `/users/${userId}`); } /** * Gets the current user * @returns Current user data */ async getCurrentUser() { return this.api.request('GET', '/users/me'); } /** * List Users * @returns List of users */ async listUsers() { return this.api.request('GET', '/users'); } }