buildmcpserversandclientsforphpapplicationswiththeofficialphpsdk

Use the official Model Context Protocol PHP SDK to expose PHP application functionality as MCP tools, resources, and prompts to support agent workflows.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "buildmcpserversandclientsforphpapplicationswiththeofficialphpsdk" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c6b823dc060e2e60e835ca363b7e00632481127f5bdf8d109414dfd94bda665d. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/build-mcp-servers-and-clients-for-php-applications-with-the-official-php-sdk before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use the official Model Context Protocol PHP SDK to expose PHP application functionality as MCP tools, resources, and prompts to support agent workflows.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "Build MCP servers and clients for PHP applications with the official PHP SDK"
slug: "build-mcp-servers-and-clients-for-php-applications-with-the-official-php-sdk"
version: "1.0.0"
displayName: "Build MCP servers and clients for PHP applications with the official PHP SDK"
summary: "使用官方Model Context Protocol PHP SDK将PHP应用程序功能暴露为MCP工具、资源和提示,用于代理工作流。"
license: "MIT"
description: "使用官方Model Context Protocol PHP SDK将PHP应用程序功能暴露为MCP工具、资源和提示,用于代理工作流。"
github_stars: 1479
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Library & API Reference"
framework: "MCP"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 1479

使用官方PHP SDK为PHP应用程序构建MCP服务器和客户端

使用官方Model Context Protocol PHP SDK将PHP应用程序功能暴露为MCP工具、资源和提示,用于代理工作流。

先决条件

PHP,Composer,MCP兼容的主机/客户端

安装

使用与您的环境匹配的上游安装或设置路径:

  • composer require mcp/sdk

基本用法或入门说明:

文档

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供使用官方 MCP PHP SDK 构建服务器和客户端的能力,具有明确的实用价值
  • 面向 PHP 开发者,受众广泛,能有效支持代理工作流集成
Trigger Precision95/100

Highlights

  • description 明确描述了核心功能,触发词精准完整
  • 覆盖了使用官方 PHP SDK 构建 MCP 服务器和客户端的关键场景
Structure and Standards75/100

Areas to improve

  • 缺少具体端到端示例 Reported severity: Minor

    文档缺少具体的端到端示例,用户可能难以理解完整实现流程

    Recommendation: 建议添加一个完整的端到端示例,展示如何从安装到实际使用 MCP PHP SDK

  • 缺少明确的 Phase/步骤划分 Reported severity: Minor

    文档结构基本完整,但缺少明确的 Phase 或步骤划分,执行流程不够清晰

    Recommendation: 建议将文档划分为更清晰的 Phase 或步骤,如 '环境准备'、'安装 SDK'、'创建服务器'、'创建客户端' 等

Highlights

  • 文档包含先决条件、安装、基本用法、概述、文档等章节,结构基本完整
  • frontmatter 完整,包含了必要的元数据信息
Execution Reliability70/100

Areas to improve

  • 缺少异常处理说明 Reported severity: Minor

    文档缺少对主要异常情况的处理说明,用户遇到问题时可能无法有效解决

    Recommendation: 建议添加常见异常情况的处理说明,如 SDK 安装失败、连接问题等

  • 缺少不可逆操作的确认机制 Reported severity: Minor

    文档未提及任何不可逆操作的确认机制,可能存在误操作风险

    Recommendation: 建议在涉及不可逆操作时添加确认机制说明,提醒用户谨慎操作

Highlights

  • 提到了使用 composer require mcp/sdk 安装,工具来源明确
  • 提供了基本用法和入门说明,用户能够快速上手
Evidence Verifiability (mean of the first four)81/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.