Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `mcp/sdk` will be documented in this file.

0.4.0
-----

* Rename `Mcp\Server\Session\Psr16StoreSession` to `Mcp\Server\Session\Psr16SessionStore`

0.3.0
-----

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ By default, the SDK uses in-memory sessions. You can configure different session
```php
use Mcp\Server\Session\FileSessionStore;
use Mcp\Server\Session\InMemorySessionStore;
use Mcp\Server\Session\Psr16StoreSession;
use Mcp\Server\Session\Psr16SessionStore;
use Symfony\Component\Cache\Psr16Cache;
use Symfony\Component\Cache\Adapter\RedisAdapter;

Expand Down Expand Up @@ -220,7 +220,7 @@ $redisAdapter = new RedisAdapter(
);

$server = Server::builder()
->setSession(new Psr16StoreSession(
->setSession(new Psr16SessionStore(
cache: new Psr16Cache($redisAdapter),
prefix: 'mcp-',
ttl: 3600
Expand Down
4 changes: 2 additions & 2 deletions docs/server-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Configure session storage and lifecycle. By default, the SDK uses `InMemorySessi
```php
use Mcp\Server\Session\FileSessionStore;
use Mcp\Server\Session\InMemorySessionStore;
use Mcp\Server\Session\Psr16StoreSession;
use Mcp\Server\Session\Psr16SessionStore;
use Symfony\Component\Cache\Psr16Cache;
use Symfony\Component\Cache\Adapter\RedisAdapter;

Expand Down Expand Up @@ -178,7 +178,7 @@ $redisAdapter = new RedisAdapter(
);

$server = Server::builder()
->setSession(new Psr16StoreSession(
->setSession(new Psr16SessionStore(
cache: new Psr16Cache($redisAdapter),
prefix: 'mcp-',
ttl: 3600
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @author luoyue <[email protected]>
*/
class Psr16StoreSession implements SessionStoreInterface
class Psr16SessionStore implements SessionStoreInterface
{
public function __construct(
private readonly CacheInterface $cache,
Expand Down