Telegram Group & Telegram Channel
🐉 MCP сервер на PHP

https://github.com/pronskiy/mcp

Anthropic недавно анонсировали поддержку удаленных MCP серверов, и вообще экосистема растет как на дрожжах.

Но большинство серверов пишут на Python и TS/JS. Хоть для PHP есть неофициальный SDK: https://github.com/logiscape/mcp-sdk-php, интерфейс у него отвратительный.

Хочется просто и быстро поднимать MCP-серверы на PHP, а не разбираться в кишках протокола.

Поэтому я сделал свою обертку:
https://github.com/pronskiy/mcp

Вот так теперь выглядит простейший MCP сервер:

(new \Pronskiy\Mcp\Server('echo-server'))
->tool(
'echo',
'Echoes text',
fn(string $text) => $text
)
->run();


Форкайте, ставьте ⭐️, кидайте ваши MCP серверы!
🔥46👍28🤔1😢1



tg-me.com/phpdigest/333
Create:
Last Update:

🐉 MCP сервер на PHP

https://github.com/pronskiy/mcp

Anthropic недавно анонсировали поддержку удаленных MCP серверов, и вообще экосистема растет как на дрожжах.

Но большинство серверов пишут на Python и TS/JS. Хоть для PHP есть неофициальный SDK: https://github.com/logiscape/mcp-sdk-php, интерфейс у него отвратительный.

Хочется просто и быстро поднимать MCP-серверы на PHP, а не разбираться в кишках протокола.

Поэтому я сделал свою обертку:
https://github.com/pronskiy/mcp

Вот так теперь выглядит простейший MCP сервер:

(new \Pronskiy\Mcp\Server('echo-server'))
->tool(
'echo',
'Echoes text',
fn(string $text) => $text
)
->run();


Форкайте, ставьте ⭐️, кидайте ваши MCP серверы!

BY PHP Digest




Share with your friend now:
tg-me.com/phpdigest/333

View MORE
Open in Telegram


PHP Digest Telegram | DID YOU KNOW?

Date: |

Telegram auto-delete message, expiring invites, and more

elegram is updating its messaging app with options for auto-deleting messages, expiring invite links, and new unlimited groups, the company shared in a blog post. Much like Signal, Telegram received a burst of new users in the confusion over WhatsApp’s privacy policy and now the company is adopting features that were already part of its competitors’ apps, features which offer more security and privacy. Auto-deleting messages were already possible in Telegram’s encrypted Secret Chats, but this new update for iOS and Android adds the option to make messages disappear in any kind of chat. Auto-delete can be enabled inside of chats, and set to delete either 24 hours or seven days after messages are sent. Auto-delete won’t remove every message though; if a message was sent before the feature was turned on, it’ll stick around. Telegram’s competitors have had similar features: WhatsApp introduced a feature in 2020 and Signal has had disappearing messages since at least 2016.

The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.

PHP Digest from tw


Telegram PHP Digest
FROM USA