Skip to main content
Glama
users.test.ts637 B
import { after, describe, it } from "node:test"; import { createMcpClient, TEST_WORKSPACE_ID, TEST_USER_ID } from "./setup"; import assert from "node:assert"; import { ClockifyUser, McpResponse } from "../src/types"; describe("Users MCP Tests", async () => { const client = await createMcpClient(); after(async () => { await client.close(); }); it("Retrieve current user info", async () => { const response = (await client.callTool({ name: "get-current-user", })) as McpResponse; const user: ClockifyUser = JSON.parse(response.content[0].text as string); assert(user.id === TEST_USER_ID); }); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/https-eduardo/clockify-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server