Commit graph

120 commits

Author SHA1 Message Date
Kyrian Obikwelu
4c3e5e61c7
fix: use Docker PHP-FPM to support sampling in conformance tests (#219) 2026-01-02 15:59:56 +01:00
落月
96ab01712b
Add support for binary resource in conformance server example (#216) 2025-12-31 00:55:04 +01:00
Christopher Hertel
2f29b1dbe5
[Server][Conformance] Kicking off adoption of conformance testing (#181) v0.2.2 2025-12-28 07:32:37 +01:00
Tobias Nyholm
7f02285753
Use the throwable object in $context['exception'] (#207)
* Use the throwable object in $context['excpetion']

* add changelog

* remove 'exception' from context

* revert debug
2025-12-27 23:46:35 +01:00
Tobias Nyholm
abd0ddf13d
Remove ability to use parameter name _session and _request (#206)
* Remove ability to use parameter name _session and _request

These are reserved for internal use. This will fix https://github.com/modelcontextprotocol/php-sdk/issues/168

* fix cs

* add changelog

* add test
2025-12-27 23:16:44 +01:00
Tobias Nyholm
6d74dce073
be more generous with PSR versions (#202)
The only difference is return types. Since we dont implement these interfaces, it does not matter for us
2025-12-27 22:53:22 +01:00
Tobias Nyholm
0dc077892e
Normalize composer.json with ergebnis/composer-normalize (#208) 2025-12-27 22:48:48 +01:00
Tobias Nyholm
df2563fd20
make sure StdioTransport does not break BC for 0.2.1 (#201) v0.2.1
* make sure StdioTransport does not break BC for 0.2.1

* fix phpstan baseline
2025-12-27 16:05:06 +01:00
Christopher Hertel
732c552821
Add changelog entry for SF v5.4 support (#199) 2025-12-27 15:41:06 +01:00
Tobias Nyholm
6dac6f3b4a
Move examples to server directory (#198)
* move examples to server directory

This will prepare for the client implementation in https://github.com/modelcontextprotocol/php-sdk/pull/192

* fix move bootstrap too
2025-12-27 15:39:05 +01:00
Tobias Nyholm
c3244fcdd4
Allow to install with sf 5.4 (#197)
* Allow to install with sf 5.4

* fix syntax

* fix dependencies
2025-12-27 15:27:05 +01:00
Tobias Nyholm
7a8045a5ef
Add a way to stop the stdioTransport in a graceful way (#195)
* Add a way to stop the stdioTransport in a graceful way

* fix cs

* fix: minors

* move around files

* add changelog
2025-12-27 14:21:55 +01:00
Christopher Hertel
a07083a65a
House keeping in cs fixer config and makefile (#196) 2025-12-25 00:04:13 +01:00
Tobias Nyholm
3b31954ac6
Add changelog for 0.2.0 (#187) v0.2.0 2025-12-20 08:50:08 +01:00
Kyrian Obikwelu
2c9692214c
fix: use RequestContext in client-communication server example (#190) 2025-12-20 08:49:48 +01:00
Kyrian Obikwelu
3818173d2f
[Schema] Fix: correct Resource type hints in ListResourcesResult (#191)
* fix: correct Resource type hints in ListResourcesResult

* fix: phpstan errors

* fix: phpstan errors
2025-12-20 08:49:29 +01:00
Tobias Nyholm
69cd04f752
fix bug with Builder::addLoders() (#186) 2025-12-16 07:48:00 +01:00
Tobias Nyholm
a1e0f61b6b
Add RequestContext and logging (#176)
* Implemented MCP logging specification with auto-injection

* Add RequestContext

* fix tests and style

* Better deprecation

* fix: minor

* Remove ClientAwareInterface

* fix cs

* fix docs

---------

Co-authored-by: Adam Jamiu <jamiuadam120@gmail.com>
2025-12-16 00:12:02 +01:00
Antoine Bluchet
369932378f
align addLoaders with addRequestHandlers (#183) 2025-12-09 09:47:31 +01:00
Christopher Hertel
32757f6b45
Adding PHP 8.5 to pipeline (#182) 2025-12-06 15:01:35 +01:00
Tobias Nyholm
50ece31c7f
add changelog for 0.2.0 release (#173) 2025-11-30 15:49:04 +01:00
Christopher Hertel
8117f1fdc7
Extend changelog for covering 0.1 (#172) 2025-11-30 15:17:03 +01:00
落月
691e4f7d1a
fix: delete http code (#158) 2025-11-30 14:56:15 +01:00
Tobias Nyholm
b250f4ad1a
Allow users to not specify server info (#164)
* Allow users to not specify server info

* change to default name
2025-11-30 11:30:31 +01:00
落月
280e8b62be
Decouple Server from TransportInterface for reusability (#160) 2025-11-30 11:21:21 +01:00
Tobias Nyholm
532d102c4e
fix cs in main (#171) 2025-11-30 11:12:22 +01:00
Tobias Nyholm
48634bd8c0
Tell clients that they are allowed to use Mcp-Session-Id header (#165) 2025-11-30 11:00:51 +01:00
Mark Scherer
08a1e54d60
Add CakePHP integration plugin to README (#166)
* Add CakePHP integration plugin to README

* Fix link formatting for cakephp-synapse
2025-11-29 11:57:38 +01:00
Tobias Nyholm
59ab0888b1
remove redundant methods in Transport (#163) 2025-11-22 11:56:46 +01:00
Tobias Nyholm
2ea4e0b77b
fix minor typo (#162) 2025-11-22 10:55:32 +01:00
Camille Islasse
470237ad0b
Make logger nullable in Transport constructors (#152) v0.1.0
- BaseTransport: Accept ?LoggerInterface parameter and convert null to NullLogger
- StdioTransport: Change logger parameter to nullable
- StreamableHttpTransport: Change logger parameter to nullable
- InMemoryTransport: Fix missing parent::__construct() call and add logging
2025-11-20 19:48:17 +01:00
Christopher Hertel
7cd281d0c7
Rework registry to combine provider and registry interface, move capabilities out and enable Registry injection in Builder (#150) 2025-11-20 19:36:57 +01:00
Bujar Begisholli - C24
7a58ab3f5a
Add meta to addPrompt and addResourceTemplate methods and null coalesce nullable properties (#149) 2025-11-14 17:11:38 +01:00
Bujar Begisholli - C24
7a3b473c40
Add _meta to CallToolResult (#148) 2025-11-13 22:43:40 +01:00
Christopher Hertel
056c7b6103
[Server] Add support for icons on explicit builder registration and attributes (#142)
* Add support for icons on explicit builder registration and attributes

* Update docs/server-builder.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-13 22:39:18 +01:00
Christopher Hertel
7a8fbe9b20
Add tool name validation for SEP-986 (#140) 2025-11-13 21:42:30 +01:00
Bujar Begisholli - C24
63ffeed0cc
[Server] Fix wrong parameter order when creating the tool from array (#147)
Previously, the meta parameter was incorrectly passed to the icons position
due to missing icons argument. Also adds icons support to Builder::addTool()
for consistency with the Tool schema.
2025-11-12 11:34:17 +01:00
Bujar Begisholli - C24
8daca8129e
[Server] Add meta parameter to addTool and addResource methods (#144) 2025-11-12 10:36:31 +01:00
Martin Poirier Théorêt
a9cd8d550f
[Capability] Discovery fix McpTool meta parameters in place of icons (#145) 2025-11-11 21:42:50 +01:00
落月
982706851a
Change visibility of handleFiberTermination and flushOutgoingMessages to protected (#143) 2025-11-11 21:42:04 +01:00
Christopher Hertel
5804ba9773
Add support for icons and website url (#141) 2025-11-09 14:53:36 +01:00
Christopher Hertel
660f150361
Rename $_meta properties to $meta (#134) 2025-11-09 13:36:21 +01:00
Kaipi Yann
d3a07912b0
Roll out meta properties in attributes and more schema classes (#129) 2025-11-08 13:58:26 +01:00
ineersa
09596c0382
Ability to set custom protocol version (#117) 2025-11-08 00:37:01 +01:00
Antoine Bluchet
85549cb835
session save return type (#133) 2025-11-04 22:45:41 +01:00
Antoine Bluchet
9be9e38815
ability to append loaders to server builder (#132) 2025-11-04 22:44:53 +01:00
Christopher Hertel
ff26b4ff61
refactor: transport agnostic examples (#131) 2025-11-02 18:07:43 +01:00
Christopher Hertel
fb3c1e65a6
Enable servers to send sampling messages to clients (#101) 2025-11-01 09:02:24 +01:00
Christopher Hertel
67cc641247
fix(server): consistent arg name in session store impl (#127) 2025-10-31 21:02:54 +01:00
Kyrian Obikwelu
757b959bfd
[Server] Feat: Add comprehensive HTTP inspector tests with improved framework (#125)
* feat: add comprehensive HTTP inspector tests and improve test framework

* chore: remove debug flag from server configuration
2025-10-30 17:47:53 +01:00