How ADK connects to FileMaker

The Agentic Development Kit (ADK) is a developer-focused utility used while coding agents inspect and author FileMaker applications. Developers require ADK and a coding agent installed locally; end users interact with the deployed FileMaker solution without requiring ADK or AI subscriptions.

All database modifications—tables, fields, relationships, scripts, layouts, and security settings—are native FileMaker objects created directly in your file. Once deployed, the FileMaker file operates independently using standard FileMaker licensing and hosting infrastructure.

Note  Development environment: ADK, coding agents, and local development bridges reside exclusively on the developer's workstation. Removing ADK does not affect deployed custom apps.

Warning  Agent workspace requirement: ADK requires coding agents that operate with local workspace access (such as Claude, Cursor, or Codex). Standard chat interfaces cannot access local project files or database connections.

Dual client architecture

ADK interacts with FileMaker files through two distinct client connections operating under independent account credentials:

Native schema authoring: Schema, script, and layout operations route through the filemaker CLI. Acting as an independent headless client, the CLI connects to local or hosted files directly and authenticates using a designated [Full Access] account. FileMaker Pro does not need to be running for CLI operations.

Runtime and data operations: Script execution, SQL queries, Data API calls, layout metadata inspection, and application deployments route through Agent Access in FileMaker Pro 26.1.2 or later (choose Tools > Agentic Development Kit > Manage Agentic Access). Operations execute within the active FileMaker Pro process using the credentials of the currently authenticated user. See FileMaker credentials.

Web Viewer app components

Web Viewer applications incorporate several coordinated components during development:

  • Project workspace: The root directory containing adk.json, tracking connected files and registered web applications. See Projects, connected files, and apps.

  • Connected files: Registered database entries in adk.json referencing local file paths or hosted fmnet:// URLs.

  • Target FileMaker file: The database containing your schema, business logic, and Web Viewer layout objects.

  • ADK file components: Custom functions, layouts, and scripts provisioned in the database using adk components apply. See Install ADK components in a file.

  • Agent Access: Built-in FileMaker Pro interface listening locally on port 19080 (or configured via FM_DEV_SERVER_PORT) that executes authorized script requests.

  • The filemaker CLI: Command-line tool on system PATH that performs schema modifications independently of Agent Access.

  • Agent plugin: The integration installed in your coding agent providing skills and MCP tools to inspect and author solutions.

  • Web Viewer app: The React application in webviewer-apps/<app>/, compiled into a single-file bundle (dist/index.html) and deployed to FileMaker persistent data.

Development-time communication

Development architecture: agent and browser calls use the localhost bridge

During development, both the coding agent and the browser preview communicate through FileMaker Pro's Agent Access on 127.0.0.1:19080 (or the custom port defined by FM_DEV_SERVER_PORT):

Agent communication: Coding agents invoke ADK plugin tools to inspect files and execute scripts through FileMaker Pro when authorized (using stored credentials or when session authorization is granted). See Agent workflow.

Browser preview: The fmBridge() Vite plugin provides a mock window.FileMaker.PerformScriptAsync interface in the browser. Browser calls route through the Vite development server to FileMaker Pro's Agent Access endpoint. If FileMaker Pro is closed, the dev server injects stub methods that report explicit connection errors. See Preview and edit an app.

Runtime communication

Deployed runtime architecture: the Web Viewer app calls FileMaker directly

Deploying an application compiles the web app and stores the HTML in FileMaker persistent data. Agent Access is not used at runtime; deployed applications operate entirely within the native Web Viewer engine.

The native Web Viewer supplies window.FileMaker directly. Applications interact with FileMaker through two paths provided by @adk/fmdapi:

  • WebViewerAdapter: Used by generated Data API clients to execute CRUD operations via a dedicated FileMaker script (ADK_execute_data_api by default). Requests can be batched to optimize throughput.

  • fmFetch() / callFMScript(): Executes arbitrary FileMaker scripts for complex transactions, business logic, container handling, or PDF generation. fmFetch returns a promise resolving with the Exit Script result; callFMScript provides asynchronous fire-and-forget execution.

Operational considerations

  • State caching: Applications typically use TanStack Query to manage caching, background refetching, and cache invalidation after data mutations.

  • Explicit saving: Web Viewer interfaces rely on explicit user actions (such as save buttons) rather than auto-committing on field exit.

  • Record locking: Editing fields within a Web Viewer does not hold an active FileMaker record lock. Validate modification counts or route updates through scripts to handle conflicts.

  • Container fields: Binary container data must be Base64-encoded to pass across the JavaScript bridge.