# Function buildPlanFromAnalysis

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- buildPlanFromAnalysis(
  analysis: RepoAnalysis,
  input: BuildPlanOptions,
  data?: ScannerData,
  ): RepoSecurityPlan

  Pure function: build plan from analysis + scanner data (testable).

  #### Parameters

  - analysis: RepoAnalysis
  - input: BuildPlanOptions
  - `Optional` data: ScannerData

  #### Returns RepoSecurityPlan

  - Defined in packages/nexus-agents/src/mcp/tools/repo-security-plan.ts:450