MCP tools¶
pdk-mcp is an MCP server over standard input/output (see Using PDK from an agent to register it). Each tool
mirrors a command of the command line and returns the same text report. Tools are annotated for the
client: read-only, writes (signed, non-destructive) or destructive. pdk_open and pdk_screenshot
add the preview page to the sandbox’s page-config (additive and idempotent); pdk_inspect is destructive because
its act steps run the view’s own event scripts on the gateway, which can write tags or databases.
Tool |
Kind |
Arguments and behavior |
|---|---|---|
|
read-only |
|
|
read-only |
|
|
writes locally |
|
|
writes |
|
|
destructive |
|
|
destructive |
|
|
destructive |
|
|
writes (preview) |
|
|
destructive |
|
|
destructive |
|
|
writes |
|
The server’s instructions describe the whole cycle (catalog, write, validate, deploy, inspect, fix), so a client
learns the workflow from the server itself. The browser used by pdk_open, pdk_inspect and
pdk_screenshot stays open between calls and closes after PDK_EYES_IDLE_S seconds without use, closing its
Perspective sessions on the gateway too.