Koskamo

Generate Algolia API client code for app integration

The agent produces version-specific, working code snippets for initializing the Algolia client, configuring index settings, saving records, and performing searches, tailored to the project's language and dependencies.

How it works

Changes data in your accountsSoftware development

The agent first identifies the programming language and specific Algolia API client version installed in the user's project. It then uses the DevEx MCP server to fetch precise code snippets for required operations such as client initialization, updating index settings (e.g., searchable attributes), saving objects, and executing searches. The agent adapts these snippets to the user's codebase, ensuring correct import statements and credential handling (using environment variables for API keys). It verifies that the generated code matches the installed client version to avoid deprecated method errors.

Prompt

Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.

Prompt for Generate Algolia API client code for app integration
Add Algolia search to this app. 1. Read the algoliasearch version from the package manifest. If the package isn't installed, install JavaScript API client v5. 2. Use DevEx MCP for every Algolia client method. 3. Load ALGOLIA_APPLICATION_ID, ALGOLIA_WRITE_API_KEY, and ALGOLIA_SEARCH_API_KEY from the environment. 4. Update index settings before saving records. 5. Save records with saveObjects and wait until indexing finishes. 6. Add a server-side search with searchSingleIndex and the Search API key. 7. Keep the Write API key off the client.

MCP servers it needs

Source

The vendor page this playbook is drawn from, and the passage that supports it.

DevEx MCP is a remote MCP server for coding agents. It returns Algolia API client snippets that match the client version installed in your project, so the agent uses methods and parameters that exist in that release.
Add Algolia to your app with DevEx MCP - Algolia

Each playbook is drawn from the vendor page it cites and reviewed by Koskamo before it is published. Koskamo does not run these servers or your agent: check what each tool will do before you let it act on your accounts.