Use the capability manifest before an agent constructs a BC Atlas command.
bca capabilitiesThe command writes versioned JSON to standard output. It defines command IDs, argument templates, options, output contracts, and exit codes.
- Pass each argument as a separate array item.
- Do not construct a shell command string.
- Use
inspector--format jsonfor machine reads. - Check for exit code
0before you parse standard output. - Run
docs setanddocs unsetwith--dry-runfirst. - Pass
--expected-hashwhen you write AL metadata.
AL source is authoritative. JSON, Markdown, D2, and SVG files are generated outputs.
Read the generated capability summary for the current command list. Use bca capabilities for the complete machine contract.
BC Atlas includes a local MCP server. Install the package, then configure your MCP host to start bca-mcp.
Copy the MCP JSON example to the configuration location for your MCP host.
Architecture tools accept projectRoot separately from path. Set path to
the folder that the agent should render and projectRoot to the app or
multi-app workspace that it should analyze.
{
"mcpServers": {
"bc-atlas": {
"command": "npx",
"args": ["--yes", "--package", "bc-atlas", "bca-mcp"]
}
}
}This configuration uses npx to get BC Atlas and start its bca-mcp executable.
If BC Atlas is installed globally, use this shorter configuration:
{
"mcpServers": {
"bc-atlas": {
"command": "bca-mcp"
}
}
}For a repository checkout, use an absolute source path:
{
"mcpServers": {
"bc-atlas": {
"command": "node",
"args": ["C:/path/to/ALD2Tree/src/mcp.js"]
}
}
}The server uses stdio. It writes protocol messages to standard output and logs to standard error.
bc_atlas_capabilitiesreads the command contract.bc_atlas_inspectreturns an architecture model.bc_atlas_generate_diagramwrites D2, JSON, or SVG.bc_atlas_docs_listlists documented scenarios.bc_atlas_docs_showreads one scenario and its source hash.bc_atlas_docs_validatevalidates a documentation corpus.bc_atlas_docs_generatewrites Markdown from AL UI tests.bc_atlas_docs_editpreviews or applies one metadata change.bc_atlas_docs_glossaryreads supported documentation tags.
bc_atlas_docs_edit uses preview mode by default. A real write requires dryRun: false and the latest expectedFileHash.
Run the Inspector through npx:
npx @modelcontextprotocol/inspector bca-mcpFor a checkout, use this command:
npx @modelcontextprotocol/inspector node src/mcp.js