ibmi-mcp-server: Instructions file for Codex

AGENTS.md

ibmi-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from IBM/ibmi-mcp-server. It costs 892 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for an MCP server that connects coding agents to IBM i systems and Db2 for i databases. They describe the project structure, development rules, database access, security, and logging.

In plain words
What is it for?
Use them when developing, reviewing, or extending the IBM i MCP server, including its packages, SQL tools, authentication, transports, and monitoring.
Why use it?
They give an agent the project context it needs to make changes consistently and safely, especially when working with IBM i and database tools.

Instructions file for CodexOpenCode ✓ vendor

Written for Codex and OpenCode: the file is AGENTS.md.

This is IBM/ibmi-mcp-server's own configuration. It tells Codex and OpenCode how to work on ibmi-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 ibmi-mcp-server configures →

About the project

IBM/ibmi-mcp-server is an MCP server and command-line tool that lets AI agents interact with IBM i systems through YAML-defined SQL tools. It provides access to Db2 for i databases for querying system information, monitoring performance, and performing database operations, while the companion CLI uses the same tool definitions. The catalogue instructions support working with this server and its tools.

IBM/ibmi-mcp-server · 89 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to IBM/ibmi-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/IBM/ibmi-mcp-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/IBM/ibmi-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 ibmi-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ibm/ibmi-mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/ibm/ibmi-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ibm/ibmi-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/ibm/ibmi-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 ibmi-mcp-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ibm/ibmi-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/ibm/ibmi-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 892 This file is loaded in full into every session.
When invoked 892 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.00892 $0.00892
Opus 5.5 $0.00357 $0.00357
Sonnet 5.5 $0.00178 $0.00178
Haiku 4.5 $0.00089 $0.00089

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

Security

Grade A, and why

ibmi-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 · 35 lines

How it starts

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

Repository Guidelines

Mission & Outcomes

This project exists to make it easy to build MCP tools and agents for IBM i systems. Prioritize ergonomics, observability, and safe Db2 for i defaults. Every change should simplify tool creation, expand IBM i coverage, or harden reliability for downstream agent builders.

Architecture & Modules

npm workspaces monorepo. Two published packages:

  • @ibm/ibmi-mcp-server (packages/server/) — MCP server runtime. Bootstraps from packages/server/src/index.ts, wiring the core server in packages/server/src/mcp-server/server.ts and IBM i extensions in packages/server/src/ibmi-mcp-server/. Transports live in packages/server/src/mcp-server/transports/ (stdio plus streamable HTTP via Hono). Each tool follows the mandate: pure logic in logic.ts, registration and error handling in registration.ts. YAML-driven data access flows through packages/server/src/ibmi-mcp-server/services/ where SourceManager builds Mapepire pools and SqlSecurityValidator enforces read-only guardrails. Observability is centralized in packages/server/src/utils/telemetry/ and context-aware logging helpers under packages/server/src/utils/internal/. A public exports surface lives at packages/server/src/public/ (tools, services, context, formatting) and is the stable contract consumed by the CLI.
  • @ibm/ibmi-cli (packages/cli/) — the ibmi command-line interface. Depends on @ibm/ibmi-mcp-server at an exact-pinned version, imports tool logic via the @ibm/ibmi-mcp-server/{tools,services,context,formatting} subpaths, and invokes .logic() directly (no MCP protocol overhead for local use).

Both packages co-version: a single v* git tag releases a matched pair. See RELEASING.md.

SQL Tooling Workflow

Declare SQL tools in YAML under tools/ (performance.yaml, sys-admin.yaml) with sources, tools, and toolsets. The server hydrates them via TOOLS_YAML_PATH, validates queries, and loads requested toolsets (--toolsets). Prefer YAML statements for standard IBM i services like QSYS2.SYSTEM_STATUS; use dynamic executeSql only when strictly necessary and document it. Mirror new toolsets in docs/ and seed mocks in packages/server/tests/fixtures/.

Read the full file on GitHub · 35 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 · 35 lines · 892 tokens per session scan A 7717ad6024dd

Subscribe to this mod's changes

ibmi-mcp-server AGENTS.md is an instructions file published in the GitHub repository IBM/ibmi-mcp-server (89 stars, last pushed yesterday), licensed Apache-2.0. It adds 892 tokens to every session, about $0.0036 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-30.

Related

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

ibmi-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ibmi-mcp-server AGENTS.mdIBM/ibmi-mcp-serverInstructions file89yesterdayApache-2.0A892Codex, OpenCode
plan-forge caching.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA733GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot