
logiscape/mcp-sdk-php
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
logiscape/mcp-sdk-phpは、[[T0]からインポートされたMCPサーバー候補です。
概要
logiscape/mcp-sdk-phpは、[[T0]からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
このパッケージはModel Context Protocol用のPHP SDKを提供します。このプロジェクトの主な目標は、純粋なPHPを用いたMCPサーバーとMCPクライアントの両方を提供し、典型的なサーバー構成のPHP/Apache/cPanelホスティング環境で簡単に利用できるようにすることです。
概要
このPHP SDKはMCP仕様を完全に実装しており、以下を簡単に行えます:
- 任意のMCPサーバーに接続可能なMCPクライアントを構築する
- リソース、プロンプト、ツールを公開するMCPサーバーを作成する
- 標準的なトランスポート(stdioやHTTPなど)を使用
2024-11-05から2026-07-28までの仕様改訂においてピアと相互運用 — バージョン交渉機能が組み込まれています
このSDKはMCPおよびPHP開発者コミュニティに2つの大きな利点を提供します。
-
このSDKは、該当するMCP準拠テストで100%の合格率を誇ります(安定トラックベースラインは空)。さらに、
2026-07-28仕様更新を検証するドラフトトラックスイートも実行します。適合性テストを参照してください。 -
SDKは単一のComposerコマンドで機能するMCPクライアントとMCPサーバーの両方を実証できます。Webclientの例を参照してください。
v2の新規登場
v2は2つの主要な特徴を中心に構築されています — MCPの初日サポート
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Model Context Protocol SDK for PHP
This package provides a PHP SDK for the Model Context Protocol. The primary goal of this project is to provide both an MCP server and an MCP client using pure PHP, making it easy to use in PHP/Apache/cPanel hosting environments with typical server configurations.
Overview
This PHP SDK implements the full MCP specification, making it easy to:
- Build MCP clients that can connect to any MCP server
- Create MCP servers that expose resources, prompts and tools
- Use standard transports like stdio and HTTP
- Interoperate with peers on any spec revision from
2024-11-05through2026-07-28— version negotiation is built in
This SDK offers two major advantages for the MCP and PHP developer communities:
-
This SDK features a 100% pass rate on the applicable required MCP Conformance Tests — the stable-track baseline is empty — and additionally runs the draft-track suite validating the
2026-07-28spec update. See Conformance Testing. -
The SDK can demonstrate both a functional MCP client and MCP server with a single Composer command. See the Webclient Example.
New in v2
v2 is built around two headline features — day-one support for the MCP
2026-07-28 “stateless core” spec revision, and full support for the MCP
Apps extension — delivered without giving up compatibility with any
earlier revision:
2026-07-28stateless core — noinitializehandshake, no session ids: every request is self-contained, which is exactly the model that fits typical PHP web hosting (a fresh process per request). Includesserver/discover, caching hints, request-metadata headers,subscriptions/listenstreams, and multi-round-trip input gathering.- Dual-era negotiation — servers detect each request’s era and clients
probe-then-fall-back automatically, so one codebase serves both modern
(
2026-07-28) and legacy (2024-11-05…2025-11-25) peers concurrently. - Tasks extension (SEP-2663) — long-running tool calls return a task handle that clients poll, cancel, and feed input to; backed by a file-based store that works on shared hosting. See the Tasks guide.
- MCP Apps extension (SEP-1865) — attach a host-rendered HTML UI to a
tool with one
->ui(...)call. See the Apps guide.
The complete inventory — including OAuth 2.1 hardening, typed errors, and the feature-lifecycle deprecation registry — is in the CHANGELOG; API differences from v1 are covered in the
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →