Skip to main content
Glama

status

Check deployment status of n8n workflows to identify which are deployed and which require deployment.

Instructions

Show deployment status of workflows (which are deployed, which need deployment)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP server registration: handles ListToolsRequest (returns tool definitions including 'status') and CallToolRequest (delegates to ToolHandler.handleTool)
    // Tools handler this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions(), })); this.server.setRequestHandler(CallToolRequestSchema, async (request) => { return await this.toolHandler.handleTool( request.params.name, request.params.arguments ); });
  • Tool schema/definition for 'status': no input params required
    { name: 'status', description: 'Show deployment status of workflows (which are deployed, which need deployment)', inputSchema: { type: 'object', properties: {}, }, },
  • ToolHandler.handleTool switch case for 'status': instantiates ChangeTracker and calls getChangeDetails() to produce the status output
    case 'status': const changeTracker = new ChangeTracker(this.workflowsPath); await changeTracker.initialize(); const statusDetails = await changeTracker.getChangeDetails(); return { content: [{ type: 'text', text: statusDetails }] };
  • ChangeTracker.getChangeDetails(): formats the deployment status text based on getDeploymentStatus() results, listing deployed/pending workflows with details
    async getChangeDetails(): Promise<string> { const status = await this.getDeploymentStatus(); let output = 'šŸ“Š Workflow Deployment Status\n\n'; output += `Total Workflows: ${status.total}\n`; output += `āœ… Deployed: ${status.deployed}\n`; output += `ā³ Pending: ${status.pending}\n\n`; if (status.pending > 0) { output += 'šŸ“ Workflows Needing Deployment:\n'; for (const workflow of status.workflows) { if (workflow.status !== 'deployed') { const icon = workflow.status === 'modified' ? 'šŸ“' : 'šŸ†•'; output += ` ${icon} ${workflow.name}\n`; output += ` Modified: ${new Date(workflow.lastModified).toLocaleString()}\n`; if (workflow.deployedAt) { output += ` Last deployed: ${new Date(workflow.deployedAt).toLocaleString()}\n`; } } } output += '\nšŸ’” Run "McFlow deploy" to deploy pending changes\n'; } else { output += '✨ All workflows are up to date!\n'; } return output; }

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/mckinleymedia/mcflow-mcp'

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