Skip to main content
Glama
users.ts732 B
import { TOOLS_CONFIG } from "../config/api"; import { usersService } from "../clockify-sdk/users"; import { ClockifyUser, McpResponse, McpToolConfigWithoutParameters, } from "../types"; export const getCurrentUserTool: McpToolConfigWithoutParameters = { name: TOOLS_CONFIG.users.current.name, description: TOOLS_CONFIG.users.current.description, handler: async (): Promise<McpResponse> => { const response = await usersService.getCurrent(); const user: ClockifyUser = { id: response.data.id, name: response.data.name, email: response.data.email, }; return { content: [ { type: "text", text: JSON.stringify(user), }, ], }; }, };

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