openclaw-tools-mcp-server: Instructions file for Codex

AGENTS.md

openclaw-tools-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from haliphax-ai/openclaw-tools-mcp-server. It costs 814 tokens per session, scanned A, original, Unlicense.

An MCP server that connects ACP agents to the OpenClaw Gateway. MCP lets an AI agent use external tools, while ACP agents are software agents that communicate through an agent protocol.

In plain words
What is it for?
Registering tools such as web search, web fetching, browser actions, PDFs, messages, canvases, and agent-to-agent messages.
Why use it?
It lets the agent invoke OpenClaw tools through the gateway instead of implementing each connection itself.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; built for openclaw.

This is haliphax-ai/openclaw-tools-mcp-server's own configuration. It tells Codex and OpenCode how to work on openclaw-tools-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openclaw-tools-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to haliphax-ai/openclaw-tools-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/haliphax-ai/openclaw-tools-mcp-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/haliphax-ai/openclaw-tools-mcp-server

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openclaw-tools-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/haliphax-ai/openclaw-tools-mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/haliphax-ai/openclaw-tools-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/haliphax-ai/openclaw-tools-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/haliphax-ai/openclaw-tools-mcp-server/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openclaw-tools-mcp-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/haliphax-ai/openclaw-tools-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/haliphax-ai/openclaw-tools-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 814 This file is loaded in full into every session.
When invoked 814 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00814 $0.00814
Opus 5.5 $0.00326 $0.00326
Sonnet 5.5 $0.00163 $0.00163
Haiku 4.5 $0.00081 $0.00081

Measured 2mo ago against content hash 3c4b8b04e659, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openclaw-tools-mcp-server AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — openclaw-tools-mcp

Instructions for AI agents working on this codebase.

What this is

An MCP (Model Context Protocol) server that proxies OpenClaw tool calls from ACP agents to the OpenClaw Gateway's HTTP API. It runs as a stdio child process spawned by the ACP agent.

Project structure

src/
  index.ts            Entry point — creates McpServer, registers tools, connects stdio
  config.ts           Configuration loading (env vars + optional JSON config file)
  gateway.ts          HTTP client for POST /tools/invoke on the OpenClaw Gateway
  custom-tools.ts     Loads additional tool definitions from JSON files on disk
  tools/
    index.ts          Tool registry — registers enabled tools on the McpServer
    web-search.ts     web_search tool schema
    web-fetch.ts      web_fetch tool schema
    browser.ts        browser tool schema (action-based, many sub-actions)
    pdf.ts            pdf tool schema
    message.ts        message tool schema (action-based)
    canvas.ts         canvas tool schema (action-based)
    sessions-send.ts  sessions_send tool schema (agent-to-agent messaging)
tools/
  rooms.json          Custom tool definition for the rooms plugin (5 tools)

How it works

  1. ACP agent spawns the server via stdio
  2. Agent sends MCP tools/call requests
  3. Server proxies each call to POST http://<gateway>/tools/invoke with bearer auth
  4. Gateway executes the tool and returns the result
  5. Server wraps the result and returns it via MCP JSON-RPC

Key patterns

  • Built-in tools are defined in src/tools/*.ts as Zod schemas. Each exports a ToolDef with name, description, schema.
  • Custom tools are loaded from JSON files at paths specified in config. They use JSON Schema format (same as OpenClaw's registerTool()).
  • sessionKey handling: Most tools get an auto-injected sessionKey param for gateway routing (stripped before forwarding as args). Tools that define their own sessionKey in their schema (like sessions_send) keep it as a tool argument — it's not stripped.
  • Result unwrapping: Gateway results may be wrapped in { content, details }. The handler extracts details when present for cleaner output.

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 92 lines · 814 tokens per session scan A 3c4b8b04e659

Subscribe to this mod's changes

openclaw-tools-mcp-server AGENTS.md is an instructions file published in the GitHub repository haliphax-ai/openclaw-tools-mcp-server (0 stars, last pushed 7mo ago), licensed Unlicense. It adds 814 tokens to every session, about $0.0033 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

openclaw-tools-mcp-server AGENTS.md compared with instructions from other repositories

openclaw-tools-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openclaw-tools-mcp-server AGENTS.mdhaliphax-ai/openclaw-tools-mcp-serverInstructions file07mo agoUnlicenseA814Codex, OpenCode
runtm copilot-instructions.mdruntm-ai/runtmInstructions file3032d agononeA297GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot