Skip to main content
Glama
ratheesh-aot

Clockify MCP Server

by ratheesh-aot

delete_project

Remove a project from your Clockify workspace by specifying the workspace and project IDs to clean up outdated or completed projects.

Instructions

Delete a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceIdYesWorkspace ID
projectIdYesProject ID

Implementation Reference

  • The main handler function for the 'delete_project' tool. It performs a DELETE request to the Clockify API endpoint `/workspaces/{workspaceId}/projects/{projectId}` and returns a success message.
    private async deleteProject(workspaceId: string, projectId: string) { await this.makeRequest( `/workspaces/${workspaceId}/projects/${projectId}`, "DELETE" ); return { content: [ { type: "text", text: `Project ${projectId} deleted successfully!`, }, ], isError: false, }; }
  • src/index.ts:460-471 (registration)
    Tool registration in the listTools response, defining the name, description, and input schema for 'delete_project'.
    { name: "delete_project", description: "Delete a project", inputSchema: { type: "object", properties: { workspaceId: { type: "string", description: "Workspace ID" }, projectId: { type: "string", description: "Project ID" }, }, required: ["workspaceId", "projectId"], }, },
  • Input schema definition for the 'delete_project' tool, specifying required workspaceId and projectId parameters.
    inputSchema: { type: "object", properties: { workspaceId: { type: "string", description: "Workspace ID" }, projectId: { type: "string", description: "Project ID" }, }, required: ["workspaceId", "projectId"], },
  • src/index.ts:763-765 (registration)
    Dispatch logic in the CallToolRequestSchema handler that routes calls to the deleteProject method.
    case "delete_project": if (!args?.workspaceId || !args?.projectId) throw new McpError(ErrorCode.InvalidParams, 'workspaceId and projectId are required'); return await this.deleteProject(args.workspaceId as string, args.projectId as string);

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/ratheesh-aot/clockify-mcp'

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