ibmi-mcp-server 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

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/ibm/ibmi-mcp-server/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.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.svg" alt="Measured on agentmods" 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. 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 $0.00892 $0.00892
Opus 5 $0.00446 $0.00446
Sonnet 5 $0.00178 $0.00178
Haiku 4.5 $0.00089 $0.00089

Measured 4d ago against content hash 7717ad6024dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 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. 4d 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 (78 stars, last pushed 8d ago), licensed Apache-2.0. It adds 892 tokens to every session, about $0.0045 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-30.