Skip to main content
Glama

run-bridge-test

Verify communication and apply test effects by executing the bridge test script for Adobe After Effects via the MCP server.

Instructions

Run the bridge test effects script to verify communication and apply test effects

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'run-bridge-test' MCP tool. It clears any stale results, queues a 'bridgeTestEffects' command by writing to the command file in the temp directory, and returns instructions for the user to check results using the 'get-results' tool.
    server.tool( "run-bridge-test", "Run the bridge test effects script to verify communication and apply test effects", {}, async () => { try { // Clear any stale result data clearResultsFile(); // Write command to file for After Effects to pick up writeCommandFile("bridgeTestEffects", {}); return { content: [ { type: "text", text: `Bridge test effects command has been queued.\n` + `Please ensure the "MCP Bridge Auto" panel is open in After Effects.\n` + `Use the "get-results" tool after a few seconds to check for the test results.` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error queuing bridge test command: ${String(error)}` } ], isError: true }; } } );
  • src/index.ts:955-989 (registration)
    Registration of the 'run-bridge-test' tool using server.tool(), including its description, empty input schema, and inline handler function.
    server.tool( "run-bridge-test", "Run the bridge test effects script to verify communication and apply test effects", {}, async () => { try { // Clear any stale result data clearResultsFile(); // Write command to file for After Effects to pick up writeCommandFile("bridgeTestEffects", {}); return { content: [ { type: "text", text: `Bridge test effects command has been queued.\n` + `Please ensure the "MCP Bridge Auto" panel is open in After Effects.\n` + `Use the "get-results" tool after a few seconds to check for the test results.` } ] }; } catch (error) { return { content: [ { type: "text", text: `Error queuing bridge test command: ${String(error)}` } ], isError: true }; } } );
  • Helper function used by the handler to write the 'bridgeTestEffects' command and empty args to ae_command.json in the system's temp directory for the After Effects bridge panel to detect and execute.
    function writeCommandFile(command: string, args: Record<string, any> = {}): void { try { const commandFile = path.join(process.env.TEMP || process.env.TMP || '', 'ae_command.json'); const commandData = { command, args, timestamp: new Date().toISOString(), status: "pending" // pending, running, completed, error }; fs.writeFileSync(commandFile, JSON.stringify(commandData, null, 2)); console.error(`Command "${command}" written to ${commandFile}`); } catch (error) { console.error("Error writing command file:", error); } }
  • Helper function used by the handler to reset the ae_mcp_result.json file to a waiting state before queuing a new command, preventing stale data.
    function clearResultsFile(): void { try { const resultFile = path.join(process.env.TEMP || process.env.TMP || '', 'ae_mcp_result.json'); // Write a placeholder message to indicate the file is being reset const resetData = { status: "waiting", message: "Waiting for new result from After Effects...", timestamp: new Date().toISOString() }; fs.writeFileSync(resultFile, JSON.stringify(resetData, null, 2)); console.error(`Results file cleared at ${resultFile}`); } catch (error) { console.error("Error clearing results file:", error); } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dakkshin/after-effects-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server