davinci_cfg5_generate
Generates code for DaVinci Configurator 5 .dpa projects, targeting all or selected AUTOSAR modules with optional exclusions, save-back, and background polling for long runs.
Instructions
用 DaVinci Configurator 5 生成代码(DVCfgCmd -p ... -g)。
不传 modules 时生成全部生成器。生成通常较慢:超过 wait_seconds 会转后台, 用 davinci_job_status 轮询。
Args: project: .dpa 工程文件。 modules: 模块短名或 /MICROSAR/... 定义路径;缺省全部。 exclude_modules: 排除的模块。 generation_type: REAL 或 VTT。 ext_steps: 外部生成步骤,逗号分隔;"from-project" 表示按工程设置。 swcs: --swcsToGenerate 的值(None 表示不传该选项)。 gen_args: 每个元素对应一个 --genArg,例如 "Rte:DoSomething=true"。 save_project: 是否加 --saveProject,把生成期间的变化写回 .dpa。 keep_temp_files: 保留生成临时文件。 report_dir: 报告目录;缺省 <工程>/Log/davinci-mcp。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>"
},
"name": "davinci_cfg5_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swcs | No | ||
| modules | No | ||
| project | Yes | ||
| gen_args | No | ||
| ext_steps | No | ||
| timeout_s | No | ||
| report_dir | No | ||
| save_project | No | ||
| wait_seconds | No | ||
| exclude_modules | No | ||
| generation_type | No | ||
| keep_temp_files | No |