CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

adobe/adobe-for-developers

Search the developer.adobe.com docs. Manage Adobe Developer Console projects, workspaces, APIs, and credentials. Create and test I/O Events registrations and subscriber defined filters. Set up, create, deploy, and troubleshoot App Builder apps.

Quality

93%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

High

Do not use without reviewing

Overview
Quality
Evals
Security
Files

requireApproval.ps1hooks/

PreToolUse hook for compatible AI agent clients on Windows: requests approval

before the Adobe for Developers plugin's destructive tools run, even if

allow-listed. Clients differ on matcher support (some harnesses ignore matchers),

so this script re-checks the tool name itself.

Needs only the Windows PowerShell 5.1 that ships with Windows. requireApproval.sh is

the macOS/Linux twin; keep both in sync with the tools the server marks

destructiveHint: true and with the matcher in hooks.json

(tests/mcp_server/destructiveTools.test.ts enforces both).

$ErrorActionPreference = 'Stop'

A failed approval check must not let a guarded operation proceed silently.

trap { Console::Out.Write('{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"ask","permissionDecisionReason":"The approval check could not run. Review the Adobe resource changes or Developer Terms before approving."}}') exit 0 }

$destructiveTools = @( 'accept_developer_terms', 'delete_credential', 'delete_event_registration', 'delete_project', 'delete_subscriber_filter', 'delete_workspace', 'edit_project', 'patch_event_registration', 'subscribe_admin_enterprise_credential_to_services', 'subscribe_credential_to_services', 'unsubscribe_admin_enterprise_credential_from_service', 'unsubscribe_credential_from_service', 'update_admin_enterprise_credential', 'update_event_registration', 'update_subscriber_filter' )

$ask = '{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"ask","permissionDecisionReason":"This changes, overwrites, or removes Adobe resources or settings. Deletions cannot be undone; configuration changes have no automatic undo. Review the resource and changes before approving."}}' $askTerms = '{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"ask","permissionDecisionReason":"This records your agreement to the Adobe Developer Terms and cannot be undone by this connector. Review https://www.adobe.com/go/developer-terms and approve only if you agree."}}' $pass = '{"continue":true}'

The tool name must end with a destructive tool, preceded by a separator so that

look-alikes such as "undelete_project" do not match.

$toolSuffix = '(?:^|[^A-Za-z0-9])(?:' + ($destructiveTools -join '|') + ')\z'

function Test-DestructiveConnectorTool([string] $Name) { $suffixMatch = [regex]::Match($Name, $toolSuffix) if (-not $suffixMatch.Success) { return $false }

Checking if the tool call came from the Adobe for Developers plugin based on

standard tool name formats.

if ($Name.StartsWith('mcp__', [System.StringComparison]::Ordinal)) { $end = $Name.LastIndexOf('__', [System.StringComparison]::Ordinal) $server = if ($end -gt 5) { $Name.Substring(5, $end - 5) } else { '' } return $server -match 'adobe.*for.*developers' } if ($suffixMatch.Value.StartsWith('-', [System.StringComparison]::Ordinal)) { $server = $Name.Substring(0, $Name.Length - $suffixMatch.Value.Length) return $server -ieq 'adobe-for-developers' } return $true }

Read stdin as UTF-8 so the client never sees a broken pipe. Every "tool_name" string

value in the payload is checked, so a stray nested key can only add a prompt, never

suppress one.

$reader = New-Object System.IO.StreamReader(Console::OpenStandardInput(), (New-Object System.Text.UTF8Encoding($false))) $payload = $reader.ReadToEnd()

foreach ($match in [regex]::Matches($payload, '"tool_name"\s*:\s*"([^"\]*)"')) { if (Test-DestructiveConnectorTool $match.Groups[1].Value) { if ($match.Groups[1].Value.EndsWith('accept_developer_terms', [System.StringComparison]::Ordinal)) { Console::Out.Write($askTerms) } else { Console::Out.Write($ask) } exit 0 } }

exit 0

.mcp.json

README.md

tile.json