%% AMPscript Studio MCP: proposed design %% Proposed design: to be validated for each implementation flowchart TB subgraph z0["GeekMidst-hosted (proposed)"] studio["Studio MCP server
proposed, read-only"] docs["Documentation index
approved sources"] analyser["Static analyser
parse only, no execution"] tests["Test-case generator
suggestions only"] end subgraph z1["Salesforce-hosted"] mcemcp["Engagement MCP Server
vendor-run, optional"] mce["Engagement tenant
not reached by Studio"] end dev["AMPscript developer
works in an AI client"] host["MCP host
AI client or IDE"] dev -->|"requests"| host host -->|"read-only tool calls"| studio host -.->|"optional, confirmed writes"| mcemcp studio -->|"search"| docs studio -->|"parse"| analyser studio -->|"suggest tests"| tests mcemcp -->|"user OAuth access"| mce classDef salesforce stroke:#125BD8,fill:#e8f0fd class mcemcp,mce salesforce classDef data stroke:#2f8a3a,fill:#e9f6ea class docs data classDef ai stroke:#5747AF,fill:#f6f4fd class host ai classDef integration stroke:#334155,fill:#eef2f6 class studio,tests integration classDef security stroke:#1f2937,fill:#f3f4f6 class analyser security classDef people stroke:#125BD8,fill:#ffffff class dev people