kibela_get_users
Fetch the complete list of users from Kibela to manage team members and access profiles.
Instructions
Get list of users
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/kibela.ts:561-583 (handler)The case handler for 'kibela_get_users' that executes a GraphQL query to fetch users and returns their id, account, and realName fields.
case "kibela_get_users": { const operation = ` query GetUsers { users(first: 100) { nodes { id account realName } } } `; const response = await client.request<UsersResponse>(operation); return { content: [ { type: "text", text: JSON.stringify(response.users.nodes, null, 2), }, ], }; } - src/kibela.ts:128-135 (schema)The Tool definition for 'kibela_get_users' with name, description, and an empty inputSchema (no parameters required).
const GET_USERS_TOOL: Tool = { name: "kibela_get_users", description: "Get list of users", inputSchema: { type: "object", properties: {}, }, }; - src/kibela.ts:206-221 (registration)Registration of GET_USERS_TOOL in the ListToolsRequestSchema handler, listing it as one of the available tools.
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ SEARCH_NOTES_TOOL, GET_MY_NOTES_TOOL, GET_NOTE_CONTENT_TOOL, GET_GROUPS_TOOL, GET_GROUP_FOLDERS_TOOL, GET_GROUP_NOTES_TOOL, GET_FOLDER_NOTES_TOOL, GET_USERS_TOOL, LIKE_NOTE_TOOL, UNLIKE_NOTE_TOOL, GET_RECENTLY_VIEWED_NOTES_TOOL, GET_NOTE_FROM_PATH_TOOL, ], })); - src/types.ts:1-5 (helper)The KibelaUser interface defining the shape of a user (id, account, realName), used as the return type.
export interface KibelaUser { id: string; account: string; realName: string; } - src/types.ts:115-119 (helper)The UsersResponse interface used for parsing the GraphQL response containing users.
export interface UsersResponse { users: { nodes: KibelaUser[]; }; }