PM

pronskiy/mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

125 stars 8 forks 品質 37 トレンド 16MIT

🐉 MCPサーバーを構築するための高速でPHPの方法です

概要

モデルコンテキストプロトコル(MCP)は、LLMにコンテキストとツールを提供する新しく標準化された方法であり、pronskiy/mcpはMCPサーバーの構築を簡単かつ直感的にします。 ツールの作成、リソースの公開、プロンプトの定義、クリーンなPHPコードでコンポーネントの接続。 - https://github.com/logiscape/mcp-sdk-php MITライセンス(MIT)。詳細についてはライセンスファイルをご覧ください。

概要(AI 翻訳)

モデルコンテキストプロトコル(MCP)は、LLMにコンテキストとツールを提供する新しく標準化された方法であり、pronskiy/mcpはMCPサーバーの構築を簡単かつ直感的にします。

ツールの作成、リソースの公開、プロンプトの定義、クリーンなPHPコードでコンポーネントの接続。

設置

作曲者と共に:

使用法

クレジット

ライセンス

MITライセンス(MIT)。詳細についてはライセンスファイルをご覧ください。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

🐉 The fast, PHP way to build MCP servers

The Model Context Protocol (MCP) is a new, standardized way to provide context and tools to your LLMs, and pronskiy/mcp makes building MCP servers simple and intuitive.

Create tools, expose resources, define prompts, and connect components with clean PHP code.

Installation

With composer:

composer require pronskiy/mcp

Usage

require 'vendor/autoload.php';

$server = new \Pronskiy\Mcp\Server('simple-mcp-server');

$server
    ->tool(
        'add-numbers',
        'Adds two numbers together',
        fn(float $num1, float $num2) => "The sum of {$num1} and {$num2} is " . ($num1 + $num2)
    )
    ->tool(
        'multiply-numbers',
        'Multiplies two numbers',
        fn(float $num1, float $num2) => "The product of {$num1} and {$num2} is " . ($num1 * $num2)
    )
;

$server->run();

Credits

License

The MIT License (MIT). Please see License File for more information.

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →