Agents: View this page as Markdown

Set up with your coding agent

Your coding agent can do the whole setup: sign you up, create a collection, load your documents and add search to your app. You add one MCP server to your tool and approve one email, without copying a key or visiting the console first.

1. Add the MCP server

WarpSearch's MCP server is https://api.warpsearch.io/mcp (streamable HTTP). Add it without any credentials; the agent gets a key in step 2.

Run in your terminal:

claude mcp add --transport http warpsearch https://api.warpsearch.io/mcp

Check it with claude mcp list, or /mcp inside a session.

Run in your terminal:

codex mcp add warpsearch --url https://api.warpsearch.io/mcp

Check it with codex mcp list.

Run in your terminal:

gemini mcp add --transport http warpsearch https://api.warpsearch.io/mcp

Check it with gemini mcp list, or /mcp inside a session.

Add this to .vscode/mcp.json in your project:

{
  "servers": {
    "warpsearch": {
      "type": "http",
      "url": "https://api.warpsearch.io/mcp"
    }
  }
}

Start the server from the file, then use GitHub Copilot Chat in Agent mode.

Any other tool that supports remote (streamable HTTP) MCP servers works the same way: point it at the URL. The console Overview shows these commands with a copy button.

2. Ask for access and approve it

Start your tool and describe what you want, for example:

Set up WarpSearch search for the help-center articles in ./content

Without a key, the server offers the agent only two tools, which sign you up. The agent asks which email address to register (it does not use your account's address without asking), sends the request, and shows you a short code.

Claude Code asked to set up WarpSearch for RAG. It asks for an email address, then shows a confirmation code and the steps to approve access.

WarpSearch emails that address. The email names the agent that asked and repeats the code.

  1. Check that the code in the email is the one your agent showed. If it is not, stop.
  2. Choose Create account and approve. A new address creates the account first, so you confirm the email and choose a password.
  3. Choose the organization and the role the agent gets, then approve. viewer can search, writer can also load data, editor can also create collections and change schemas, and admin can also delete collections. To create the collection the agent needs at least editor; you can lower the role it asked for.
The WarpSearch email titled "Your AI agent asked to create a WarpSearch account for you", with the confirmation code and a Create account and approve button.

Tell the agent you have approved. It collects an API key for that role (shown to it only once), reconnects with it and gets the search and indexing tools. The request expires after 60 minutes, and each address can receive at most 3 sign-up emails an hour.

3. Create a collection

A collection holds your documents and their schema. The agent reads a sample of your data and creates one with create_collection. Ask it to show you the schema first if you want to review it:

Look at the articles in ./content and propose a WarpSearch collection for them.
Show me the fields before you create it.

What the agent decides, and what to check:

Choice What to check
Name Lowercase letters, digits, _ and -, starting with a letter: help_center, not Help.Center.
Class knowledge for RAG chunks and embeddings, search (the default) for site, catalog and app search, stream for logs and events. See Collection classes.
Fields text for anything people search by words (titles, bodies), string for exact values you filter or facet on (category, language, status), numbers and dates for ranges and sorting, and vector with dims and metric for embeddings. A schema is optional: fields named with a type suffix such as title_t or category_s are typed by their name. See Schemas and field types.

A typical schema for help-center articles, passed as the schema argument of create_collection:

{
  "fields": {
    "title":      {"parent": "_t"},
    "body":       {"parent": "_t"},
    "category":   "string",
    "updated_at": "date",
    "embedding":  {"type": "vector", "dims": 1024, "metric": "cosine"}
  }
}

The same fields as an Elasticsearch mapping, for a collection created through PUT /compat/es/{index} with an Elasticsearch client:

{
  "properties": {
    "title":      {"type": "text"},
    "body":       {"type": "text"},
    "category":   {"type": "keyword"},
    "updated_at": {"type": "date"},
    "embedding":  {"type": "dense_vector", "dims": 1024, "similarity": "cosine"}
  }
}

You can add fields later, but a change that would break documents already stored (a new type, different vector dimensions, a different analyzer) is refused with 409 incompatible_schema, so settle the types before a large load. Creating collections needs the editor role, and your plan sets how many you can have.

4. Load your documents

The agent turns your data into flat JSON documents, each with an id, and indexes them:

Index every article into help_center. Use the file path as the id,
and compute embeddings with the model our app already uses.

How it goes about it:

See Ingesting documents for the options and the error codes.

5. Search and wire it into your app

Once the documents are committed, the agent can query them with the search and count tools. They mirror POST /v1/search/{c}: a query in the language the agent knows best (SQL, Elasticsearch Query DSL, Solr or Lucene), plus filters, facets, sort and limit.

Run the 20 most common questions from our support tickets against help_center
and show me the top 3 results for each. Then add a /search endpoint to our app.

What to expect:

See Searching for the request and response.

Keep control

Where to go next

Cookie settings

Optional tracking stays off until you choose it. Your choice applies to this browser for 180 days. Read the details.

Essential storage keeps you signed in, protects forms, and remembers this choice. It is always available.