Class SchemaBuilder
java.lang.Object
io.github.apexdevtools.apexls.mcp.tools.SchemaBuilder
Utility class for building JSON schemas for MCP tools in a maintainable way. Replaces hardcoded
JSON strings with programmatic schema construction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringCreates a standard Apex position schema used by find definition and find usages tools.static StringCreates a schema for impacted tests tool that takes changed file paths.static StringCreates a workspace schema with optional parameters for diagnostics tools.
-
Constructor Details
-
SchemaBuilder
public SchemaBuilder()
-
-
Method Details
-
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
Creates a workspace schema with optional parameters for diagnostics tools. -
createImpactedTestsSchema
Creates a schema for impacted tests tool that takes changed file paths.
-