get_workflow
Retrieve structured workflow information for Stylus development, including step-by-step commands for build, deploy, and test operations to guide development processes.
Instructions
Get structured workflow information for Stylus development. Returns step-by-step commands for build, deploy, test operations. Use this when the user needs guidance on development workflows.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_type | Yes | Type of workflow information to retrieve | |
| network | No | Target network for deploy workflow (default: arbitrum_sepolia) | arbitrum_sepolia |
| include_troubleshooting | No | Include common errors and solutions (default: true) |
Implementation Reference
- src/mcp/tools/get_workflow.py:57-95 (handler)The execute method contains the primary handler logic for the get_workflow tool, which routes to specific workflow retrieval methods based on the input parameters.
def execute( self, workflow_type: str, network: Optional[str] = "arbitrum_sepolia", include_troubleshooting: bool = True, **kwargs ) -> dict: """ Execute the workflow retrieval. Args: workflow_type: Type of workflow (build, deploy, test, cli_reference, networks, all) network: Target network for deploy workflow include_troubleshooting: Whether to include error solutions Returns: Structured workflow information with commands and steps """ result = { "workflow_type": workflow_type, "network": network if workflow_type == "deploy" else None, } if workflow_type == "build" or workflow_type == "all": result["build"] = self._get_build_workflow(include_troubleshooting) if workflow_type == "deploy" or workflow_type == "all": result["deploy"] = self._get_deploy_workflow(network, include_troubleshooting) if workflow_type == "test" or workflow_type == "all": result["test"] = self._get_test_workflow(include_troubleshooting) if workflow_type == "cli_reference" or workflow_type == "all": result["cli_reference"] = self._get_cli_reference() if workflow_type == "networks" or workflow_type == "all": result["networks"] = self._get_network_configs() return result - src/mcp/tools/get_workflow.py:35-55 (schema)The input_schema definition for the get_workflow tool.
input_schema = { "type": "object", "properties": { "workflow_type": { "type": "string", "enum": ["build", "deploy", "test", "cli_reference", "networks", "all"], "description": "Type of workflow information to retrieve", }, "network": { "type": "string", "enum": ["arbitrum_sepolia", "arbitrum_one", "arbitrum_nova", "local"], "description": "Target network (for deploy workflow)", }, "include_troubleshooting": { "type": "boolean", "default": True, "description": "Include common errors and solutions", }, }, "required": ["workflow_type"], } - src/mcp/tools/get_workflow.py:22-22 (registration)The registration of the tool name as 'get_workflow'.
name = "get_workflow"