# MCP and agent tooling

2ot exposes one routed execution model to automation scripts and LLM harnesses. The engineer chooses the harness; 2ot provides the structured operations underneath it.

## Dynamic MCP discovery

`2ot --mcp-dump-schema` asks compatible routed executables for their schemas, normalizes command names and arguments, and emits one machine-readable tool surface.

`2ot mcp` exposes that surface to an MCP-capable harness.

## Same model for automation and agents

The CLI router and MCP surface describe the same underlying operations instead of maintaining a separate agent-only API. A correctly configured workspace can infer the vendor for common commands, while explicit Siemens TIA Portal, CODESYS and TwinCAT routes remain available for vendor-specific operations.

## Diagnostics in repair loops

`2ot check --fast` supplies a low-latency compiler feedback loop. Structured diagnostic mappings and compiler/semantic context make the result suitable for LLM-assisted diagnosis and repair.

The public website's WebMCP tools are informational and read-only. Operational engineering actions run locally through the engineer-selected harness.
