ANSWERS · AGENT ACCESS AND MEMORY

Search tool for a Codex agent, on the files you have

AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-10-20 · UPDATED · 2026-10-28
SHORT ANSWER · UPDATED 2026-10-28

A search tool for a Codex agent starts with xerj init. The command writes the MCP entry for Claude Code, and it writes Cursor and Codex only when those folders already exist. Codex reads the entry in trusted projects only. On main xerj mcp serves 23 tools from a running node.

Key number: On main xerj mcp serves 23 tools, or 20 in a build with no hub key. (as of 2026-10-28 · source: landing/docs/agents/schemas/mcp-tools.json)

TL;DR: A search tool for a Codex agent starts with xerj init. The command writes the MCP entry for Claude Code, and it writes Cursor and Codex only when those folders already exist. Codex reads the entry in trusted projects only. On main xerj mcp serves 23 tools from a running node.

PASTE THIS TO YOUR AI AGENT — IT DOES THE REST Read https://xerj.org/llms.txt. Start one local node. In a project that already has .codex and .cursor, run xerj init with the node URL. Restart the agent. Call xerj_search only after tools/list shows it. xerj mcp does not start a node.
RUN THIS XERJ COMMAND xerj --insecure --data-dir /tmp/xerj-aq-2026-10-20/node --bind 127.0.0.1 --port 9217 Start the node first. xerj mcp does not start one.
RUN THIS XERJ COMMAND xerj init --url http://127.0.0.1:9217 --disable-feedback Run inside a project that already has .codex and .cursor. The capture wrote both configs.
RUN THIS XERJ COMMAND xerj mcp --url http://127.0.0.1:9217 --disable-feedback stdio MCP. On main it serves 23 tools, or 20 with no hub key.

XERJ is a new way for AI to search for data.

Run init where the folders already are

The capture made an empty project with .codex/ and .cursor/, put model = "gpt-5" in .codex/config.toml, and ran init against http://127.0.0.1:9217.

wrote    .mcp.json
wrote    .cursor/mcp.json
wrote    .cursor/rules/xerj.mdc
wrote    .cursor/rules/xerj-hub.mdc
appended .codex/config.toml
wrote    AGENTS.md

.mcp.json and .cursor/mcp.json both got mcpServers.xerj with command, args ["mcp"], and XERJ_URL. Codex got [mcp_servers.xerj] appended under the model line. Init did not create .codex/. On a project without that directory, the Codex file is not written.

The printed lines for Windsurf, Claude Desktop and Cline say to copy the entry. They are instructions, not files written.

This binary also printed a hub line and wrote xerj-hub.mdc. A build without a hub signing key does not. Read what your binary printed.

Start the node, then the MCP server

xerj --insecure --data-dir /tmp/xerj-node --bind 127.0.0.1 --port 9217
xerj mcp --url http://127.0.0.1:9217 --disable-feedback

xerj mcp talks to the node. It does not start one. Agents that read https://xerj.org/llms.txt before the first call get the field names and the caveats in that file.

The capture sent MCP initialize and tools/list to xerj mcp. The server named itself xerj-mcp version 1.0.0-rc.97 and returned 17 tools. The first is xerj_search. On main the server serves 23. Codex itself was not installed on the capture machine, so this is the tool list Codex would be handed, not a Codex session.

Measured on 2026-10-20

CheckResult
xerj init with .cursor/ and .codex/Wrote both MCP configs and appended Codex
Windsurf, Claude Desktop, ClinePrinted only. No config file written
tools/list17 tools, version 1.0.0-rc.97 (23 on main)
Codex processNot run. No Codex install on the machine

When not to use XERJ

If the agent only needs one file it already has open, a search server is extra machinery. Init is for the agent that will call a tool instead of reading the tree.

FAQ

Search tool for a Codex agent?

Run xerj init in a project that already has .codex/. It appends [mcp_servers.xerj]. Codex reads that file in trusted projects only.

Plug search into Cursor?

If .cursor/ exists, init writes .cursor/mcp.json with the same mcpServers.xerj entry. Restart Cursor.

Does init configure Windsurf and Cline?

It prints the entry and tells you to copy it. It does not write their config files.

How many tools does xerj mcp serve?

23 on main, or 20 in a build with no hub key. The count includes the 3 hub tools. The rc.97 capture on this page returned 17, so read tools/list from your own binary.

Does xerj mcp start the node?

No. Start the node, then run xerj mcp. The handshake can succeed and every tool call can still fail if nothing is listening.

Evidence

Related