Get the policy of an MCP Gateway connector
Return the policy of a connector (connectorId from getMcpGatewayConnectors): who may use its approved tools, by kind. A setting is access (allowed or blocked: the connector itself) and readTools, writeTools and destructiveTools (allowed or blocked; destructiveTools null follows writeTools). rules, in order, each give their setting to the employees their filter matches: the first that matches applies, and defaultSetting to everyone else. A filter holds teamIds, employeeIds or both, each { operationType: INCLUDE | EXCLUDE, values } with the ids getEmployees returns, and every clause must match. With none stored (source credential_mode_default, version null), every tool is allowed on a per_employee connector, the read tools only on a shared one. Change it with setMcpGatewayConnectorPolicy, sending back version. A 404 means the company has no such connector. The MCP Gateway serves employees, through their one Primo connection, the tools of the MCP servers (connectors) IT added. No credential is ever sent or returned here: a shared account is connected, and the address or authentication of a custom connector changed, in the cockpit, at cockpitUrl. A company without the MCP Gateway gets a 403 McpGatewayNotEnabledError; a 503 means Primo could not check it, try again in a minute.