Class AnalyzeFileTool

java.lang.Object
com.github._1c_syntax.bsl.languageserver.mcp.tools.AnalyzeFileTool

@Component @Profile("mcp") public class AnalyzeFileTool extends Object
MCP-инструмент: вычислить диагностики для одного файла.

Переиспользует DocumentContext.getDiagnostics() — тот же путь, что и LSP-режим.

  • Constructor Details

  • Method Details

    • analyzeFile

      @McpTool(name="analyze_file", description="Run BSL diagnostics for a single 1C/OneScript file and return the list of issues.", generateOutputSchema=false, annotations=) public AnalyzeFileTool.Result analyzeFile(@McpToolParam(required=true,description="Path to the .bsl/.os file (absolute or relative to the working directory). The file must lie inside a registered workspace folder \u2014 see the `list_workspace_folders` and `register_workspace_folder` tools.") String file)