openclaw-tools-mcp-server 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/haliphax-ai/openclaw-tools-mcp-server/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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00407 $0.00407
Sonnet 5 $0.00163 $0.00163
Haiku 4.5 $0.00081 $0.00081

Measured 4d ago against content hash 3c4b8b04e659, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 4d 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. 4d 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 5mo ago), licensed Unlicense. It adds 814 tokens to every session, about $0.0041 per session on Opus 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.