Class SchemaBuilder

java.lang.Object
io.github.apexdevtools.apexls.mcp.tools.SchemaBuilder

public class SchemaBuilder extends Object
Utility class for building JSON schemas for MCP tools in a maintainable way. Replaces hardcoded JSON strings with programmatic schema construction.
  • Constructor Details

    • SchemaBuilder

      public SchemaBuilder()
  • Method Details

    • createApexPositionSchema

      public static String createApexPositionSchema()
      Creates a standard Apex position schema used by find definition and find usages tools. Includes path, line (1-based), and offset (0-based) parameters.
    • createWorkspaceSchema

      public static String createWorkspaceSchema()
      Creates a workspace schema with optional parameters for diagnostics tools.
    • createImpactedTestsSchema

      public static String createImpactedTestsSchema()
      Creates a schema for impacted tests tool that takes changed file paths.