Class McpExecutorBuilder

java.lang.Object
dev.architectury.loom.mcpconfig.McpExecutorBuilder

public final class McpExecutorBuilder extends Object
Builds an McpExecutor's options from the project state and enqueued steps.
  • Constructor Details

  • Method Details

    • addConfig

      public void addConfig(String key, String value)
    • enqueue

      public McpExecutorBuilder enqueue(String step)
      Enqueues a step and its dependencies to be executed.
      Parameters:
      step - the name of the step
      Returns:
      this builder
    • hasStep

      public boolean hasStep(String step)
      判断当前 MCP 配置是否声明了指定步骤.
      Parameters:
      step - 步骤名称
      Returns:
      配置中存在该步骤时为 true
    • build

      public org.gradle.api.provider.Provider<McpExecutor.Options> build() throws IOException
      Builds options for an executor that runs all queued steps and their dependencies.
      Returns:
      the options
      Throws:
      IOException
    • setStepLogicProvider

      public void setStepLogicProvider(@Nullable StepLogic.StepLogicProvider stepLogicProvider)
      Sets the custom step logic provider of this executor.
      Parameters:
      stepLogicProvider - the provider, or null to disable