pascal-mcp-sdk AGENTS.md

pascal-mcp-sdk AGENTS.md is an instructions file for Codex, OpenCode from frostney/pascal-mcp-sdk. It costs 2,569 tokens per session, scanned A, original, MIT.

A contributor guide for a FreePascal SDK that implements the Model Context Protocol (MCP), a standard way for tools and AI applications to communicate. It defines the compiler, dependency, build, layout, and testing rules.

In plain words
What is it for?
Use it when adding or changing SDK units, updating the lwpt project manifest, formatting code, or building and testing the library.
Why use it?
It prevents incompatible languages, dependencies, compiler settings, or build commands from being introduced. It also clarifies which files are generated and which are maintained by hand.

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/frostney/pascal-mcp-sdk/agents-md
Clone the repo
git clone --depth 1 https://github.com/frostney/pascal-mcp-sdk

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 pascal-mcp-sdk AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/frostney/pascal-mcp-sdk/agents-md.svg)](https://agentmods.dev/instructions/frostney/pascal-mcp-sdk/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/frostney/pascal-mcp-sdk/agents-md"><img src="https://agentmods.dev/badge/instructions/frostney/pascal-mcp-sdk/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,569 This file is loaded in full into every session.
When invoked 2,569 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.02569 $0.02569
Opus 5 $0.01285 $0.01285
Sonnet 5 $0.00514 $0.00514
Haiku 4.5 $0.00257 $0.00257

Measured 3d ago against content hash 91c5fcff03b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pascal-mcp-sdk 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 3d 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 · 148 lines

How it starts

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

Agent Instructions

Hard Constraints

  • FreePascal only. FPC 3.2.2, Delphi mode, flags centralised in source/units/Shared.inc. Do not introduce another compiled language or repeat compiler directives per unit.
  • Zero third-party runtime dependencies. The library is RTL + fpjson only. Packages that ship inside FPC 3.2.2 are not third-party: fcl-web is admitted on the same footing as fcl-json (fpjson), and stays confined to MCP.Transport.HTTP. lwpt's testing package is dev-time; anything beyond that needs explicit maintainer approval with a recorded justification.
  • lwpt is the only toolchain entry point — install, build, test, format all go through it. Do not add another build system (no Make/CMake for builds) and do not invoke fpc directly except as fpc @lwpt.cfg.
  • lwpt.cfg and lwpt.lock are generated by lwpt install; never hand-edit them. lwpt.toml is the manifest you edit.
  • The units array in lwpt.toml lists only source/units — lwpt (0.2.0+) discovers dep units through nested manifests. Keep [format] exclude = [".lwpt/**"] so the formatter never rewrites fetched modules.
  • Layout is fixed: library units in source/units/ (namespaced MCP.*.pas, tests co-located as MCP.*.Test.pas), program entry points in source/apps/, self-contained run-script wrappers in scripts/ (InstantFPC-executed, so no Shared.inc and no MCP.* units there).
  • build/ is generated — never commit it.
  • MCP.Server owns the protocol surface. Dispatch rules, error codes, and result shapes must not leak into transports; transports move lines only. MCP.Protocol owns the per-request _meta model; MCP.JSONRPC owns the JSON-RPC 2.0 profile.
  • Spec facts are verified, never recalled. Any change to protocol behaviour cites the official spec page (modelcontextprotocol.io) it implements, with the verification date — see the unit headers and docs/internals/architecture.md for the pattern.

Read the full file on GitHub · 148 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. 3d ago First seen · 148 lines · 2,569 tokens per session scan A 91c5fcff03b6

Subscribe to this mod's changes

pascal-mcp-sdk AGENTS.md is an instructions file published in the GitHub repository frostney/pascal-mcp-sdk (2 stars, last pushed 8d ago), licensed MIT. It adds 2,569 tokens to every session, about $0.0128 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.