MCP controls

Part of StrataForge · applies to Guildmaster's Artisan tier only

Note
Ships with StrataForge, which is in release-candidate testing.

In the Artisan tier (Guildmaster's tiers), Guildmaster may consult up to two external MCP servers at a time: AWS's (AWS knowledge) and one registry server, OpenTofu's or HashiCorp's (OpenTofu and Terraform knowledge). Guildmaster reaches them only through StrataForge's gateway — its tools go nowhere else, and any network command it proposes asks the developer first — and the gateway applies the controls below to every call. The workspace's own network is the deployment's (workspace_egress_cidrs); narrow it to make the workspace itself unable to reach these servers. In the Archivist tier, for production and hardened accounts, none of them is used.

Policy and the control that implements it

PolicyControl
Allowlist the exact vendor endpoints; prohibit arbitrary MCP discovery and redirects to unapproved destinationsThe gateway calls only https://aws-mcp.<region>.api.aws/mcp (AWS's Regions), https://mcp.opentofu.org/mcp, the Terraform sidecar on http://127.0.0.1:8090/mcp, and https endpoints listed exactly in mcp_endpoint_allowlist. A configured endpoint that is not approved turns that server off, with the reason in the log and in strataforge mcp-review. Endpoints come only from the deployment's settings: nothing is discovered at run time, the IDE's own AI and MCP features are disabled by policy (chat.disableAIFeatures), and redirects are never followed — a 3xx answer is an error.
Restrict HashiCorp to its registry toolset and omit HCP tokensThe sidecar starts with exactly the nine registry tools (its own default in HTTP mode is every toolset), and the gateway passes through only those nine by name. No TFE_TOKEN or HCP credential exists in the task; the sidecar runs with ENABLE_TF_OPERATIONS=false, a read-only root file system and no Linux capabilities. HashiCorp's hosted server, which needs a token, is not used.
Disable infrastructure-changing tools in this integrationExact allow-lists of read-only tools: AWS's five knowledge tools (plus the view-only aws___run_script and aws___get_tasks with aws_mcp = "read", signed as a role with AWS's ViewOnlyAccess minus an explicit deny on value reads), OpenTofu's seven registry tools, HashiCorp's nine. A tool a server adds later is never offered.
Prevent transmission of internal source, CUI, Terraform state, credentials and sensitive architectural identifiersScreened, not guaranteed: pattern checks recognise marked CUI and identifiable content; unmarked sensitive text cannot be detected by any filter, so accounts that hold it run the Archivist. Every call's arguments are checked before they leave: at most 1,000 characters (mcp_max_argument_chars); refused if they contain credentials or key material, Terraform state, CUI or classification markings, AWS account ids or ARNs, private IP addresses or internal host names, S3 locations, or multi-line content (source code, configuration), or if they match one of the deployment's own mcp_deny_patterns (project names, internal domains). A refusal is audited (mcp.call.refused: the tool and the reason, never the content) and Guildmaster is told why. View-only account scripts (aws___run_script, which run in AWS's hosted service as this account's view-only role) may name this account's own resources, and are still refused credentials, state and CUI.
Log MCP calls and periodically review the available tools, including changes to tool descriptionsEvery call is an audit record (aws_mcp.call, iac_mcp.call: who, tool, argument and result sizes, duration, error). Every tool's name, description and input schema is fingerprinted and compared with the reviewed pins shipped in the release (overridable with mcp_tool_pins); a difference is audited once (mcp.tool.changed, mcp.tool.unpinned). With mcp_tool_review = "enforce" a changed tool is also withheld until it is pinned again. strataforge mcp-review lists every tool each server offers with its status.
Keep Terraform validation, code review and deployments within the existing approved pipelineNo MCP tool can plan, apply or run anything. Guildmaster refuses tofu / terraform apply, destroy, import, state, taint, force-unlock, login and workspace changes outright (also when wrapped in env or bash -c); the workspace has no AWS credentials. Modules reach AWS only as packages through StrataCI (strataforge sandbox deploy, stratactl). tofu fmt and tofu validate stay local checks.
If running local MCP executables, pin and scan versions rather than automatically fetching latestThe only local MCP executable is the Terraform sidecar. Its image is pinned by digest — iac_mcp_image refuses a tag without @sha256: — and each pinned version is scanned before release and recorded in Shaleio's security register (findings, accepted risks, review dates). Mirror the image into your own registry by the same digest. OpenTofu's and AWS's servers are hosted: nothing runs locally.
Allow users to disableThe deployment: guildmaster_mode = "archivist" turns every external server off, or aws_mcp / iac_mcp = "off" turns off one of them. Each developer: the badge in Guildmaster's header — work as the Archivist, or turn off single sources and tools (Guildmaster's tiers).

Settings

SettingDefault
guildmaster_modeartisanarchivist turns every external MCP server off (production and hardened accounts)
mcp_endpoint_allowlist[]exact https endpoints approved besides the vendors' (a mirror, your own server)
mcp_deny_patterns[]regular expressions no argument may match (checked case-insensitively)
mcp_tool_pins{}{ server = { tool = fingerprint } } after a review, overriding the shipped pins
mcp_tool_reviewwarnenforce withholds changed or new tools until they are pinned (recommended in regulated environments)
mcp_max_argument_chars1000the largest arguments a call may carry
iac_mcp_imagethe pinned release imagemust be by digest; the default is shown below
text
hashicorp/terraform-mcp-server:1.4.1@sha256:11dd418bba6003dd5777e9d0979b68de59929a155b355f338f407947e00e9d80

The periodic review

bash
strataforge mcp-review            # every tool, per server: ok / CHANGED / NEW / blocked
strataforge --json mcp-review     # with each tool's full description, to read what changed
strataforge mcp-review --pins     # the pins for mcp_tool_pins once you approve them

It exits non-zero when anything differs from its pin, so it can run on a schedule. To approve a change: read the new description, put the --pins output into mcp_tool_pins, and deploy through the pipeline. To update the sidecar: scan the new image, record it in your security register, set iac_mcp_image to the new digest, run the review, pin, deploy.

What still leaves the account (Artisan)

Short search terms and public resource or provider names, to the approved endpoints; with aws_mcp = "read", view-only inspection scripts, which run in AWS's hosted service as this account's view-only role (where it runs). Answers are capped and treated as data, never as instructions: every command or edit Guildmaster proposes afterwards still needs the developer's approval. In a hardened account, use the Archivist. Separately from the MCP servers, a model an administrator adds with the deployment's own API key sends its prompts to that provider under either tier (own-key models).