Skip to main content
Glama
kunwarVivek

mcp-github-project-manager

enable_automation_rule

Activate a disabled automation rule in GitHub Projects to resume automated workflows for task management and sprint planning.

Instructions

Enable a disabled automation rule

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ruleIdYes

Implementation Reference

  • Core handler implementation that enables an automation rule by calling the repository's enable method after verifying the rule exists.
    async enableAutomationRule(data: { ruleId: string }): Promise<{
      id: string;
      name: string;
      enabled: boolean;
    }> {
      try {
        const rule = await this.automationRepo.findById(data.ruleId);
        if (!rule) {
          throw new ResourceNotFoundError(ResourceType.RELATIONSHIP, data.ruleId);
        }
    
        const updated = await this.automationRepo.enable(data.ruleId);
    
        return {
          id: updated.id,
          name: updated.name,
          enabled: updated.enabled
        };
      } catch (error) {
        throw this.mapErrorToMCPError(error);
      }
    }
  • Tool definition including input schema (expects 'ruleId' string), description, and example usage.
    export const enableAutomationRuleTool: ToolDefinition<EnableAutomationRuleArgs> = {
      name: "enable_automation_rule",
      description: "Enable a disabled automation rule",
      schema: enableAutomationRuleSchema as unknown as ToolSchema<EnableAutomationRuleArgs>,
      examples: [
        {
          name: "Enable rule",
          description: "Re-enable a disabled automation rule",
          args: {
            ruleId: "AR_kwDOLhQ7gc4AOEbH"
          }
        }
      ]
    };
  • Registers the enableAutomationRuleTool in the central ToolRegistry during initialization.
    this.registerTool(enableAutomationRuleTool);
  • MCP request handler dispatch that routes 'call_tool' requests for 'enable_automation_rule' to the ProjectManagementService.
    case "enable_automation_rule":
      return await this.service.enableAutomationRule(args);
Install Server

Other Tools

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/kunwarVivek/mcp-github-project-manager'

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