lex-mcp-local

v0.2.4
lex-mcp-local Checked 1 hour ago Published 6 months ago

Local wrapper MCP for a remote Lex MCP server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_plan_step Get Plan Step

Load a planning/implementation step by index (0–18). Returns step instructions, the step agent to invoke, and coordinator instructions. You are the COORDINATOR — do NOT do the step work yourself. Instead: 1. Invoke the corresponding lex-step-NN agent with the returned context. 2. Let the agent complete the step work. 3. Use the agent's summary to call notify_step_complete(step=N, process='planning', summary=...). 4. IMMEDIATELY call get_plan_step(step=N+1) after notify_step_complete succeeds. DO NOT stop, summarize, or deviate between steps. Skipping or stopping causes workflow FAILURE.

ParameterTypeDescription
step *integer

get_deployment_step Get Deployment Step

Load a deployment step by index. Returns step instructions and response template. For step N > 0, provide summary/completion_notes from the user about the previous step to complete it. Use ONLY information the user provides — never fabricate details.

ParameterTypeDescription
step *integer
artifacts_producedKey files, components, or deliverables created or modified in the previous step. Use ONLY what the user tells you.
completion_notesDetailed notes about what was accomplished in the previous step. Use ONLY what the user tells you. Never fabricate details.
lessons_learnedRetrospective insights or recommendations from the previous step. Use ONLY what the user tells you.
summaryA short summary of what was accomplished in the previous step. Required when the previous step's review is still pending. Use ONLY what the user tells you.

notify_step_complete Notify Step Complete

Call this after a step agent finishes its work to commit and push changes to the workflow branch. Pass the agent's summary as the 'summary' parameter — it becomes the git commit message. ⚠️ COORDINATOR — YOUR NEXT CALL IS NON-NEGOTIABLE: After this tool succeeds, you MUST IMMEDIATELY call get_plan_step(step=N+1) to get the next agent. DO NOT stop. DO NOT summarize. DO NOT assume you are finished. The ONLY exception is when ALL steps are done — then call finalize_workflow(). You are the coordinator — your job is to keep the loop running, not to do step work.

ParameterTypeDescription
process *stringWhether this is a planning or deployment step.
step *integerThe step number you just completed.
summary *stringA clear description of what was accomplished in this step. This becomes the git commit message — be specific and descriptive.

finalize_workflow Finalize Workflow

FINAL CALL — Merges the workflow branch into main and closes the run. Commits any uncommitted changes, creates and squash-merges a PR, checks out main, and closes the tracking issue. Must be the last tool called in every workflow.

kickstart_workflow Kickstart Workflow

START a NEW project. Creates a GitHub repo, initializes git, creates a workflow branch, and sets up tracking. For existing repos, use kickstart_run instead. If 'organization' is omitted and multiple accounts are available, returns action_required='select_organization' — present the list to the user and retry with their choice. Provide project_overview to ground the workflow in context.

ParameterTypeDescription
repo_name *stringName for the new GitHub repository
local_project_pathLocal filesystem path for the consumer project where git operations run
organizationGitHub organization or personal account login to create the repo under. If omitted and multiple accounts are available, the tool returns the list for user selection.
privatebooleanWhether the repository should be private
project_overviewA high-level overview of the project, its goals, and what you aim to achieve in this workflow. Strongly encouraged — this grounds the entire workflow in context and creates a clear record of intent…
repo_descriptionRepository description

kickstart_run Kickstart Run

START a workflow run on an EXISTING project. Creates a new workflow branch and tracking issue without creating a repo or running git init. The repository owner is derived from your GitHub token — never supply a username manually. For new repos, use kickstart_workflow instead. If 'organization' is omitted and multiple accounts are available, returns action_required='select_organization' — present the list to the user and retry with their choice.

ParameterTypeDescription
repo *stringGitHub repository name
local_project_pathLocal filesystem path for the consumer project where git operations run
organizationGitHub organization or personal account login that owns the repo. If omitted and multiple accounts are available, the tool returns the list for user selection.
run_descriptionA description of what this workflow run aims to accomplish. This becomes the body of the tracking issue and helps document the run's purpose.

inspect_github_repository Inspect Github Repository

Diagnose GitHub repository visibility and publish state. Returns repo metadata, default branch, branch list, and whether the default branch ref exists.

ParameterTypeDescription
repoGitHub repository name

resume_workflow Resume Workflow

Resume a workflow from a previous session or different device. Reconstructs project context: completed steps, active branch, folder structure. The repository owner is derived from your GitHub token — never supply a username manually. After resuming, call get_plan_step(step=0) to review the project conventions before continuing work.

ParameterTypeDescription
repo *stringGitHub repository name
local_project_pathLocal filesystem path for the project. Required if LEX_MCP_PROJECT_DIR is not set.
organizationGitHub organization or personal account login that owns the repo. If omitted and multiple accounts are available, the tool returns the list for user selection.

get_workflow_status Get Workflow Status

Lightweight status check. Returns current workflow state: active project, branch, completed steps, and suggested next action. Use this to orient yourself cheaply without the full context of resume_workflow.

switch_to_backward_mode Switch To Backward Mode

⚠️ DESTRUCTIVE-INTENT TOOL — switch this MCP server from FORWARD (project-creation) mode to BACKWARD (documentation/migration) mode. Calling this tool TERMINATES the current MCP server process. The IDE will auto-restart it in BACKWARD mode with a completely different tool surface. All forward workflow tools (kickstart_workflow, get_plan_step, notify_step_complete, finalize_workflow, etc.) will DISAPPEAR and only the backward toolset (reverse_kickstart, scanner, wiki, questionnaire, doc generation) will be visible. ONLY CALL THIS TOOL when the user has UNAMBIGUOUSLY requested to stop cr…

ParameterTypeDescription
confirm_abandon_forward *booleanMust be set to True. Confirms the LLM understands this abandons active forward project creation. Set this only after the user has unambiguously requested the switch.
user_request *stringQuote the user's exact words that authorize this switch. Used as an audit trail and as a forcing function so the LLM cannot trigger this tool without a concrete user instruction.
forcebooleanBypass the completion guardrail. Set True ONLY if the user explicitly said to switch even though forward planning is incomplete. Defaults to False.