Skip to content

Connect Codex, Cursor, Gemini CLI, VS Code and Claude Desktop

Applies to OML v0.9.x · Status: Stable · Last verified 2026-11-06

Every tool here reaches the same /mcp endpoint with the same three tools. The configuration for each comes from the agent kit, oml-agent-kit-X.Y.Z.tar.gz (or .zip), attached to each release and signed with cosign. The kit's README names each file, where it goes and the tool's documentation with its fetch date.

An agent key (get one) is required. The tools run against a live client are listed under Limits.

1. Export the key

Export the agent's key in the shell that starts the tool:

export OML_API_KEY="$(cat "$HOME/.config/oml/keys/crew-agent-7")"

The key file is the one oml keys issue-agent --out wrote. Without one, export the key that was issued. None of the kit's files holds a key.

2. Copy the tool's file

Tool Copy
Cursor cursor/.cursor/mcp.json to .cursor/mcp.json
Gemini CLI merge gemini/.gemini/settings.json into .gemini/settings.json; also wires the session-start hook
OpenAI Codex CLI add codex/config.toml's [mcp_servers.oml] to ~/.codex/config.toml
VS Code vscode/.vscode/mcp.json to .vscode/mcp.json; the header's ${env:OML_API_KEY} is unverified
Claude Desktop claude-desktop/claude_desktop_config.json to the app's config directory; runs the mcp-remote bridge, unverified on Windows

No file names a server. Cursor and Gemini CLI read OML_URL, so export it beside the key:

export OML_URL=<server address>      # without /mcp; the server that issued the key

OpenAI Codex CLI, VS Code and Claude Desktop read no variable in a URL, so their files carry https://oml-server.invalid/mcp: replace https://oml-server.invalid with the server's address, keeping /mcp. Left unedited, the name never resolves and the key goes nowhere. A key sent to the wrong server is refused there with 401 auth.invalid, and that server's operator has seen it. Gemini CLI's session-start hook reads the same OML_URL.

Paste the kit's AGENTS.md block into the project's AGENTS.md. It says when to search and when to save.

3. Check the connection

Ask the agent what OML holds about the project. It calls oml_read; a refusal names its reason, such as auth.invalid. A save answers held. The agent reads it back at once, and others find it after a reviewer approves it. If it fails, see client troubleshooting.

What these tools get

The three tools and the AGENTS.md guidance. Gemini CLI also gets the session-start context through oml hook session-start, when oml is on PATH. Cursor's session-start hook uses a different output field, so the kit wires none. No tool here gets the librarian or failure recall.

Claude Code without the plugin

claude mcp add --transport http oml <server address>/mcp --header "Authorization: Bearer $OML_API_KEY"

This gives the three tools and nothing else: no skill, no hooks, no librarian. The shell expands the key into the command line, and Claude Code stores the header in its own configuration file, not the keychain. The plugin, through oml setup claude-code, keeps the key in the keychain (Claude Code guide).

Cursor can install a server from a link, and a link carries its configuration in the URL. The kit offers none, because that configuration would carry the key. A link becomes possible when a connection can open with the connect code instead of a key. Whether Cursor completes that flow is untested.