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.
npx agentmods add instructions/logiscape/mcp-sdk-php/agents-mdgit clone --depth 1 https://github.com/logiscape/mcp-sdk-phpWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.03027 | $0.03027 |
| Opus 5 | $0.01514 | $0.01514 |
| Sonnet 5 | $0.00605 | $0.00605 |
| Haiku 4.5 | $0.00303 | $0.00303 |
Grade A, and why
mcp-sdk-php 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Project Overview
This is a PHP implementation of the Model Context Protocol (MCP), allowing applications to provide context for LLMs in a standardized way. The SDK implements both MCP clients and servers with support for stdio and HTTP transports.
Key characteristics:
- Designed for native PHP with easy installation via Composer
- Targets PHP 8.1+ with type safety (strict_types=1)
- Supports both traditional CLI/stdio and web hosting environments
- Speaks every MCP spec revision from
2024-11-05through2026-07-28(the "stateless core"); servers detect each request's era and clients probe-then-fall-back, so one codebase serves modern and legacy peers concurrently - Implements the Tasks (SEP-2663) and MCP Apps (SEP-1865) extensions — see docs/tasks.md and docs/apps.md
- Includes McpServer convenience wrapper for building fully functional MCP servers with just a few lines of PHP code
User-facing documentation is indexed in docs/README.md; the two deep guides are docs/server-dev.md and docs/client-dev.md, and the v1 → v2 changes are in docs/migration-v2.md.
Contributor-facing documentation
For non-trivial work, please also consult the governance and process docs at
the repository root: CONTRIBUTING.md (coding standards,
test stack, versioning policy), ROADMAP.md (direction and tier
self-assessment), SECURITY.md (vulnerability reporting),
GOVERNANCE.md, and the deeper guides under docs/ —
docs/testing.md,
docs/compatibility.md
(the cPanel/Apache compatibility rules), docs/dependency-policy.md,
and conformance/README.md (including the
no-shortcuts-for-conformance rule).
Development Process
The main branch carries v2 of the SDK (stable v1 lives on the 1.x
branch). v2 development is complete; ongoing direction — including the
embedding and web-integration batteries planned for the v2.x minor
line — is set by ROADMAP.md. Key rules for agents working on
the SDK:
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.
- 2d ago First seen · 232 lines · 3,027 tokens per session scan A d90e23c4f5da
mcp-sdk-php AGENTS.md is an instructions file published in the GitHub repository logiscape/mcp-sdk-php (369 stars, last pushed 13d ago), licensed MIT. It adds 3,027 tokens to every session, about $0.0151 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.
Other instructions, from other repositories
symfony-flex-backend CLAUDE.md
Instructions for tarlepp/symfony-flex-backend, covering what is this?, table of contents ᐞ, ai documentation map ᐞ, version sources of truth ᐞ and project architecture ᐞ.
FreshRSS php.instructions.md
Instructions for FreshRSS/FreshRSS, covering php files and autoloader.
LarAgent AGENTS.md
Instructions for MaestroError/LarAgent, covering purpose, key principles, planning, executing plan and testing.
phpClickHouse CLAUDE.md
Instructions for smi2/phpClickHouse, covering claude.md — phpclickhouse, project overview, principles, architecture and key notes.
real-estate-laravel copilot-instructions.md
Instructions for liberusoftware/real-estate-laravel, covering lerd, a local php development environment, architecture, dns modes, mcp tools and key conventions.
native-php-matrix CLAUDE.md
Instructions for lisachenko/native-php-matrix, covering working on native-php-matrix, running tests, quality gates (all enforced in ci), anatomy of a .phpt test and repository map.